commit: 79f5e43b082be50980dca802e5e6877f69e71aba Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Feb 4 22:00:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 4 22:00:49 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f5e43b
sys-devel/binutils: add USE=xxhash to >=2.44 See upstream commit 2299dfd4ba96c6852db862f6ec1b96880ecd6c0c. Signed-off-by: Sam James <sam <AT> gentoo.org> sys-devel/binutils/binutils-2.44.9999.ebuild | 8 ++++++-- sys-devel/binutils/binutils-2.44.ebuild | 8 ++++++-- sys-devel/binutils/binutils-9999.ebuild | 8 ++++++-- sys-devel/binutils/metadata.xml | 1 + 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/sys-devel/binutils/binutils-2.44.9999.ebuild b/sys-devel/binutils/binutils-2.44.9999.ebuild index f9a5e117e92b..57401c0bb097 100644 --- a/sys-devel/binutils/binutils-2.44.9999.ebuild +++ b/sys-devel/binutils/binutils-2.44.9999.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla zstd" +IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla xxhash zstd" # Variables that can be set here (ignored for live ebuilds) # PATCH_VER - the patchset version @@ -60,7 +60,10 @@ RDEPEND=" ) zstd? ( app-arch/zstd:= ) " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + xxhash? ( dev-libs/xxhash ) +" BDEPEND=" doc? ( sys-apps/texinfo ) pgo? ( @@ -269,6 +272,7 @@ src_configure() { --with-bugurl="$(toolchain-binutils_bugurl)" --with-pkgversion="$(toolchain-binutils_pkgversion)" $(use_enable static-libs static) + $(use_with xxhash) $(use_with zstd) # Disable modules that are in a combined binutils/gdb tree, bug #490566 diff --git a/sys-devel/binutils/binutils-2.44.ebuild b/sys-devel/binutils/binutils-2.44.ebuild index f9a5e117e92b..57401c0bb097 100644 --- a/sys-devel/binutils/binutils-2.44.ebuild +++ b/sys-devel/binutils/binutils-2.44.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla zstd" +IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla xxhash zstd" # Variables that can be set here (ignored for live ebuilds) # PATCH_VER - the patchset version @@ -60,7 +60,10 @@ RDEPEND=" ) zstd? ( app-arch/zstd:= ) " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + xxhash? ( dev-libs/xxhash ) +" BDEPEND=" doc? ( sys-apps/texinfo ) pgo? ( @@ -269,6 +272,7 @@ src_configure() { --with-bugurl="$(toolchain-binutils_bugurl)" --with-pkgversion="$(toolchain-binutils_pkgversion)" $(use_enable static-libs static) + $(use_with xxhash) $(use_with zstd) # Disable modules that are in a combined binutils/gdb tree, bug #490566 diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild index f9a5e117e92b..57401c0bb097 100644 --- a/sys-devel/binutils/binutils-9999.ebuild +++ b/sys-devel/binutils/binutils-9999.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="Tools necessary to build programs" HOMEPAGE="https://sourceware.org/binutils/" LICENSE="GPL-3+" -IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla zstd" +IUSE="cet debuginfod doc gprofng hardened multitarget +nls pgo +plugins static-libs test vanilla xxhash zstd" # Variables that can be set here (ignored for live ebuilds) # PATCH_VER - the patchset version @@ -60,7 +60,10 @@ RDEPEND=" ) zstd? ( app-arch/zstd:= ) " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + xxhash? ( dev-libs/xxhash ) +" BDEPEND=" doc? ( sys-apps/texinfo ) pgo? ( @@ -269,6 +272,7 @@ src_configure() { --with-bugurl="$(toolchain-binutils_bugurl)" --with-pkgversion="$(toolchain-binutils_pkgversion)" $(use_enable static-libs static) + $(use_with xxhash) $(use_with zstd) # Disable modules that are in a combined binutils/gdb tree, bug #490566 diff --git a/sys-devel/binutils/metadata.xml b/sys-devel/binutils/metadata.xml index 3cc106863437..88560e418c0e 100644 --- a/sys-devel/binutils/metadata.xml +++ b/sys-devel/binutils/metadata.xml @@ -14,6 +14,7 @@ <flag name="plugins">Enable plugin support in tools</flag> <flag name="multitarget">Adds support to binutils for cross compiling (does not work with gas)</flag> <flag name="debuginfod">Enable debuginfod support via <pkg>dev-libs/elfutils</pkg> libdebuginfod</flag> + <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> for --build-id=xx support</flag> </use> <upstream> <remote-id type="cpe">cpe:/a:gnu:binutils</remote-id>
