gentoo/dev-util/fuzz/fuzz-0.6-r4.ebuild
NHOrus 1d042be2d8
dev-util/fuzz: fix compilation on musl
Missing include for string.h, glibc transitively included strcmp
Removed different getopt definition for non-glibc situation:
we are all living in POSIX-land (Somewhat. Hopefully. Mostly.) and
definitions for getopt are the same on musl and glibc.

Closes: https://bugs.gentoo.org/944111
Closes: https://bugs.gentoo.org/934059
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40514
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-13 12:41:19 +00:00

40 lines
771 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs
DESCRIPTION="Stress-tests programs by giving them random input"
HOMEPAGE="http://fuzz.sourceforge.net/"
DEB_P="${PN}_${PV}"
DEB_PR="7.3"
SRC_URI="
https://downloads.sourceforge.net/${PN}/${P}.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}-${DEB_PR}.diff.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="sys-libs/readline:="
RDEPEND="${DEPEND}"
PATCHES=(
"${WORKDIR}"/"${DEB_P}-${DEB_PR}.diff"
"${FILESDIR}"/"${P}-musl.patch"
)
src_prepare() {
default
tc-export CC
# Clang 16, bug #898764
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install
dodoc NEWS README ChangeLog AUTHORS
}