diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-20 08:05:51 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-03-20 08:06:02 +0000 |
commit | d3d153b6dd2be45da02ae2d547894c0849b6a6bf (patch) | |
tree | a908b6d22c20bcbf74aac6751766493182b9033d /dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild | |
parent | profiles/musl: mask app-emulation/firecracker (diff) | |
download | gentoo-d3d153b6dd2be45da02ae2d547894c0849b6a6bf.tar.gz gentoo-d3d153b6dd2be45da02ae2d547894c0849b6a6bf.tar.bz2 gentoo-d3d153b6dd2be45da02ae2d547894c0849b6a6bf.zip |
dev-util/ltrace: tweak for musl, bug #713428
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/713428
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild')
-rw-r--r-- | dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild b/dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild new file mode 100644 index 000000000000..8ca6b5a1233e --- /dev/null +++ b/dev-util/ltrace/ltrace-0.7.3_p4-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools + +LTRACE_V=${PV/_p*/} +DB_V=${PV/*_p/} + +DESCRIPTION="trace library calls made at runtime" +HOMEPAGE="https://gitlab.com/cespedes/ltrace" +SRC_URI=" + mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}.orig.tar.bz2 + mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}-${DB_V}.debian.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug selinux test unwind" + +RDEPEND="virtual/libelf:= + selinux? ( sys-libs/libselinux ) + unwind? ( sys-libs/libunwind:= )" +DEPEND="${RDEPEND} + sys-libs/binutils-libs + test? ( dev-util/dejagnu )" + +# under musl tests need major work upstream, half of them does not work. +RESTRICT=" + !test? ( test ) + elibc_musl? ( test ) +" + +S=${WORKDIR}/${PN}-${LTRACE_V} + +PATCHES=( + "${FILESDIR}"/${PN}-0.7.3-test-protos.patch #bug 421649 + "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch + "${FILESDIR}"/${PN}-0.7.3-ia64.patch + "${FILESDIR}"/${PN}-0.7.3-print-test-pie.patch + "${FILESDIR}"/${PN}-0.7.3-ia64-pid_t.patch + "${FILESDIR}"/${PN}-0.7.3-musl-host.patch #713428 + "${FILESDIR}"/${PN}-0.7.3-no-error.h.patch #713428 + "${FILESDIR}"/${PN}-0.7.3-no-error.h-2.patch #713428 + "${FILESDIR}"/${PN}-0.7.3-no-REG_NOERROR.patch #713428 + "${FILESDIR}"/${PN}-0.7.3-pid_t.patch #713428 +) + +src_prepare() { + eapply "${WORKDIR}"/debian/patches/[0-9]* + + default + + sed -i '/^dist_doc_DATA/d' Makefile.am || die + eautoreconf +} + +src_configure() { + ac_cv_header_selinux_selinux_h=$(usex selinux) \ + ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \ + econf \ + --disable-werror \ + $(use_enable debug) \ + $(use_with unwind libunwind) +} |