commit: eec2d6772909cbb8485691b1f94cc7218ebc9946 Author: Patrick Steinhardt <ps <AT> pks <DOT> im> AuthorDate: Tue Jan 23 11:23:07 2018 +0000 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> CommitDate: Tue Jan 23 11:27:44 2018 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=eec2d677
sys-apps/iucode_tool: link against argp-standalone on musl systems iucode_tool makes use of the argp header, which is not part of musl, causing the build to fail on such systems. To fix that, add a dependency on argp-standalone on musl-based systems and explicitly link against the argp library. sys-apps/iucode_tool/files/iucode_tool-2.2-argp.patch | 13 +++++++++++++ sys-apps/iucode_tool/iucode_tool-2.2.ebuild | 14 +++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/sys-apps/iucode_tool/files/iucode_tool-2.2-argp.patch b/sys-apps/iucode_tool/files/iucode_tool-2.2-argp.patch new file mode 100644 index 0000000..78acf0d --- /dev/null +++ b/sys-apps/iucode_tool/files/iucode_tool-2.2-argp.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.am b/Makefile.am +index 415a241..06e6872 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -2,6 +2,8 @@ + ## Toplevel Makefile.am for iucode_tool + ## + ++AM_LDFLAGS = -largp ++ + sbin_PROGRAMS = iucode_tool + man_MANS = iucode_tool.8 + diff --git a/sys-apps/iucode_tool/iucode_tool-2.2.ebuild b/sys-apps/iucode_tool/iucode_tool-2.2.ebuild index f40fc0c..2e65da0 100644 --- a/sys-apps/iucode_tool/iucode_tool-2.2.ebuild +++ b/sys-apps/iucode_tool/iucode_tool-2.2.ebuild @@ -3,6 +3,8 @@ EAPI="6" +inherit autotools eutils + DESCRIPTION="tool to manipulate Intel X86 and X86-64 processor microcode update collections" HOMEPAGE="https://gitlab.com/iucode-tool/" SRC_URI="https://gitlab.com/iucode-tool/releases/raw/master/${PN/_/-}_${PV}.tar.xz" @@ -12,6 +14,16 @@ SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" -PATCHES=( "${FILESDIR}"/${P}-limits.patch ) +DEPEND="elibc_musl? ( sys-libs/argp-standalone )" +RDEPEND=${DEPEND} S="${WORKDIR}/${PN/_/-}-${PV}" + +src_prepare() { + eapply "${FILESDIR}/${P}-limits.patch" + use elibc_musl && eapply "${FILESDIR}/${P}-argp.patch" + + eapply_user + + eautoreconf +}
