diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-06 00:10:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-06 00:10:59 +0000 |
commit | 22eaa60297c2dbc92dd1658fb7d8e46878552755 (patch) | |
tree | c3e1147cecf778a6418d736658cedc5d7f2dfa2d /sys-libs | |
parent | e019d91362a4788fe5cc5788877327b813d0f730 (diff) |
gentoo auto-resync : 06:02:2025 - 00:10:59
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/Manifest.gz | bin | 13753 -> 13752 bytes | |||
-rw-r--r-- | sys-libs/binutils-libs/Manifest | 5 | ||||
-rw-r--r-- | sys-libs/binutils-libs/binutils-libs-2.44.ebuild | 224 | ||||
-rw-r--r-- | sys-libs/binutils-libs/binutils-libs-9999.ebuild | 9 |
4 files changed, 235 insertions, 3 deletions
diff --git a/sys-libs/Manifest.gz b/sys-libs/Manifest.gz Binary files differindex 846d09f81e89..8b379b3ef34b 100644 --- a/sys-libs/Manifest.gz +++ b/sys-libs/Manifest.gz diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest index b220934fe503..9c7e7b8a4a95 100644 --- a/sys-libs/binutils-libs/Manifest +++ b/sys-libs/binutils-libs/Manifest @@ -20,6 +20,8 @@ DIST binutils-2.42.tar.xz 27567160 BLAKE2B e67a5c028fba70e70088fd11b38ec8c9c4ed5 DIST binutils-2.43-patches-2.tar.xz 35184 BLAKE2B fa35c9f182c7ae0fed28614f47618d1563a58f223fd1805f348b618c1fbf039a444e44d88f46d040b6971e481e0da882e5c4492fd167d17bf39579d87a446434 SHA512 a7e167d3f6a2c08f19af4685d90a6160a1a52f1a87f5660fb6d80ec664033829c0eacad0d77b1306620e50ff89d1f9f63a7c2b064ad9775400f0cb0eba3159a4 DIST binutils-2.43-patches-3.tar.xz 62692 BLAKE2B a189a01a6a99c4fdff124cf90ecc18f874812c17fc735376c855469c487b6a71489ad5c2f86c518d2e029cc83d65757144ff9abddbe7ec3fc06e22f9501c62f4 SHA512 99a30e18fdfd7bdce85bb903f8d61837cfbb639ead8a680ff1a85ad1d615b658e696bdf196c4a002d029f952d34aa441e09e861b22f5400c65f07cce5934cd8f DIST binutils-2.43.tar.xz 28175768 BLAKE2B 28b0a04a28273b76eab2d00e00160be889f155f77f5a9d8759ef8dce505c97e97641bf7ec70b92b731b520570a02b06e04e8215b068fcb1bb2573e9ef24732d9 SHA512 93e063163e54d6a6ee2bd48dc754270bf757a3635b49a702ed6b310e929e94063958512d191e66beaf44275f7ea60865dbde138b624626739679fcc306b133bb +DIST binutils-2.44-patches-1.tar.xz 9156 BLAKE2B c72a7d0ffdb852f8de9c18e187b5768085b3a070744a4fadef508ab0e865d3a3967ec12a0ee7a325b6b689f39e5243aacd9d3f73ceb723d53592ec6ca640161b SHA512 053de98536e92837d0a08fac26bb0f057431747fe6e82f8b9ac54dd9aed65d8de379d653c0e8a8cd31267b9769825a420db5f40957f8c4eb54a7e4a9d76fadb8 +DIST binutils-2.44.tar.xz 27285788 BLAKE2B 0eb031ace9fb5a7047b81b5a05b1760f7d332c8ed67f98899f153a45f181b83e661a484551af05c0a9b2adc422da84619103c7b1f3c9fad5327872832b5446aa SHA512 b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7 EBUILD binutils-libs-2.34-r2.ebuild 3714 BLAKE2B 705bb789483b4856e73be95f84a0651dcb8c457775ba44c54ad0403e9c27edab829276388b2f87c73c421212071e458885d60506867961e5e05d7cf830ca1558 SHA512 c62eb7d5ce03168def91d230a9c71c7bdf5946ca0f52802575e30a39b0af11495f6323bc00191d447a0c72a208f54a4f93ffeda7b9c27d33dccfbfabd5574d66 EBUILD binutils-libs-2.35.2.ebuild 4136 BLAKE2B 0cb30a63debe0aa33fca1a3fa70eff228bceeca11a9380473510cfa06359948dbef4a57ace33d1b399d2448bb9374ae609f0285830aa196e796e79c20318937a SHA512 3e0bbf6ca1d8b83683145b79839a208c2b4e5157a053661ccc7d4deff35c6b31290139f092552c0d581a7b4f87d615239a661f476675b890df410aa65a0ca67d EBUILD binutils-libs-2.36.1-r2.ebuild 4089 BLAKE2B 5f8938442abb3974ff8b845b965ab8c6edd6660f29d8d1f4dea7cf8127a17cf7a046bbf4c64b876e1657c18774f6dcf7d00c882d3f75c67174f660f91c532f53 SHA512 f89a34fbf9aa042d0210a0bf1d1332b5983b4d3bf5c46c1f73fc40dc57a23496c476687b87c1eccc22bcd53a412e38088009e3dd41c6575838c20394267a86be @@ -31,5 +33,6 @@ EBUILD binutils-libs-2.41-r5.ebuild 5267 BLAKE2B 7c955ed4e435f894a45c444ffbec7f9 EBUILD binutils-libs-2.42-r2.ebuild 5416 BLAKE2B d338164ec84b068311b3e8bb36c4d70d449072d60572ace109badccc29e0cf1f42ca913388aa9b50d4783465370ef999c039a897503d02e396a6efe0dff7559f SHA512 dd50d52faf5bba96a93caac528ef51cbba78948370ece9dd159ede7a8fc938e918f9a4c01c2214a72431ef0c95899ec0ddfdf6023b07ecc0c9fca64a29536853 EBUILD binutils-libs-2.43-r2.ebuild 5393 BLAKE2B 8a6aec7741b56fc1b1e169521eefe97ec7e783a81fdc2feca1240e37f589e86173faeda1912044fe24359d00af0b0f7ee71e6567f43122f942147e63c13a081f SHA512 361b7e48a781812807b6ebea550f3d14f71faf2c984070b3faf79870e57066e0c1aa97edd4e3f3c4269564cd0df529c804dabc610e95a14ba2a6a581446a32f0 EBUILD binutils-libs-2.43-r3.ebuild 5385 BLAKE2B 778d4b9e1092bdd27a38659d7bbdc835bd252344b1dab312e580a0a1176fed3144611c1b092154fc02b9acc17fb302fde8c130a01e183c5fb1fd5b7d2e48721d SHA512 41b26e061b65d3249a3389f616543d7887321c09a3186cf96a3017f2515df1eae71a2ad9f2e79f6e69bd990a0b534e39f148c007b72e0648851b014de3720a45 -EBUILD binutils-libs-9999.ebuild 6589 BLAKE2B 6002c7fc529836fc082214c54795be81da1352d05eddfa1ba7121586a6785f76bbdb1b8ee98a73559d1f9fba9258fa6cadf94f30f3df376656ee4e62b7165896 SHA512 72cb99f55748562a18f3b6e16e7268a012f6dd5beac357ffdf6a6237c5be0a24c31f33c775560f9afee5762d24c938418ba1ebdd6c2addf5dae57968906b9b0f +EBUILD binutils-libs-2.44.ebuild 6721 BLAKE2B 6da51ca060cdd940dc8b7698506f7e6b26cf057e7c5ddfaa80673594e3356d57087eb4b26bea19b295e41872ff99f72faa73c3643adab7ee3872e887b76663f3 SHA512 7d11a8290465893ccac375e94047933f1fcb3e0e5d6984de361ca206a7e210ea0ed27a0a5658c20c6e66d40b0f483f62b70080a1ee3fca1b3ba04f2e2a9c467d +EBUILD binutils-libs-9999.ebuild 6721 BLAKE2B 6da51ca060cdd940dc8b7698506f7e6b26cf057e7c5ddfaa80673594e3356d57087eb4b26bea19b295e41872ff99f72faa73c3643adab7ee3872e887b76663f3 SHA512 7d11a8290465893ccac375e94047933f1fcb3e0e5d6984de361ca206a7e210ea0ed27a0a5658c20c6e66d40b0f483f62b70080a1ee3fca1b3ba04f2e2a9c467d MISC metadata.xml 612 BLAKE2B ceaafd9fd1421e9f3993e003d0029c92a78054c7a2b90bd78afc05370ad19c931c6a7c150545cfb7d57165168e0fdaf3a00dde1905b328826a91cbc70d9548a8 SHA512 c8d33bb8d1c62c7e95758624ed0febbc9d40e9f141bfd280837b3207bcd771412158d71c0cb5548d60be0b236f6fe103621daf7efa8875191982859b566ffa8d diff --git a/sys-libs/binutils-libs/binutils-libs-2.44.ebuild b/sys-libs/binutils-libs/binutils-libs-2.44.ebuild new file mode 100644 index 000000000000..6b4dbbfd6979 --- /dev/null +++ b/sys-libs/binutils-libs/binutils-libs-2.44.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic libtool toolchain-funcs multilib-minimal + +DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" +HOMEPAGE="https://sourceware.org/binutils/" + +LICENSE="|| ( GPL-3 LGPL-3 )" +IUSE="64-bit-bfd cet multitarget nls static-libs test" + +# Variables that can be set here (ignored for live ebuilds) +# PATCH_VER - the patchset version +# Default: empty, no patching +# PATCH_BINUTILS_VER - the binutils version in the patchset name +# - Default: PV +# PATCH_DEV - Use download URI https://dev.gentoo.org/~{PATCH_DEV}/distfiles/... +# for the patchsets + +PATCH_VER=1 +PATCH_DEV=dilfridge + +MY_PN=binutils +MY_P=${MY_PN}-${PV} + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + SLOT="0/${PV}" +elif [[ ${PV} == *9999 ]]; then + inherit git-r3 + SLOT="0/$(ver_cut 1-2)" +else + PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} + PATCH_DEV=${PATCH_DEV:-dilfridge} + SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz + https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${MY_P}.tar.xz + https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" + SLOT="0/${PV}" + #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" +fi + +BDEPEND=" + nls? ( sys-devel/gettext ) + test? ( dev-util/dejagnu ) +" +DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" +# Need a newer binutils-config that'll reset include/lib symlinks for us. +RDEPEND="${DEPEND} + >=sys-devel/binutils-config-5 +" + +RESTRICT="!test? ( test )" + +MY_BUILDDIR=${WORKDIR}/build + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/bfd.h +) + +src_unpack() { + if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI=" + https://anongit.gentoo.org/git/proj/toolchain/binutils-patches.git + https://github.com/gentoo/binutils-patches + " + EGIT_CHECKOUT_DIR=${WORKDIR}/patches-git + git-r3_src_unpack + mv patches-git/9999 patch || die + + if [[ ${PV} != 9999 ]] ; then + EGIT_BRANCH=binutils-$(ver_cut 1)_$(ver_cut 2)-branch + fi + EGIT_REPO_URI=" + https://sourceware.org/git/binutils-gdb.git + https://git.sr.ht/~sourceware/binutils-gdb + https://gitlab.com/x86-binutils/binutils-gdb.git + " + S=${WORKDIR}/binutils + EGIT_CHECKOUT_DIR=${S} + git-r3_src_unpack + else + unpack ${MY_P}.tar.xz + + cd "${WORKDIR}" || die + unpack binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz + + # _p patch versions are Gentoo specific tarballs ... + local dir=${MY_P} + dir=${dir/-hppa64/} + + S=${WORKDIR}/${dir} + fi + + cd "${WORKDIR}" || die + mkdir -p "${MY_BUILDDIR}" || die +} + +src_prepare() { + if [[ -n ${PATCH_VER} ]] ; then + einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" + eapply "${WORKDIR}/patch"/*.patch + fi + + # Fix cross-compile relinking issue, bug #626402 + elibtoolize + + if [[ ${CHOST} == *-darwin* ]] ; then + # somehow libtool/configure is messed up and (custom patch at + # upstream?) and misdetects (basically assumes) nm can be called + # with -B arg -- can't run eautoreconf (fails), so patch up + # manually, this would break any target that needs -B to nm + sed -i -e 's/lt_cv_path_NM="$tmp_nm -B"/lt_cv_path_NM="$tmp_nm"/' \ + libctf/configure || die + fi + + # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html + # Avoid really confusing logs from subconfigure spam, makes logs far + # more legible. + export MAKEOPTS="--output-sync=line ${MAKEOPTS}" + + default +} + +pkgversion() { + printf "Gentoo ${PVR}" + [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" +} + +multilib_src_configure() { + filter-lto + + local myconf=( + # portage's econf() does not detect presence of --d-d-t + # because it greps only top-level ./configure. But not + # libiberty's or bfd's configure. + --disable-dependency-tracking + --disable-silent-rules + --enable-obsolete + --enable-shared + --enable-threads + # Newer versions (>=2.24) make this an explicit option. #497268 + --enable-install-libiberty + --disable-werror + --with-bugurl="https://bugs.gentoo.org/" + --with-pkgversion="$(pkgversion)" + $(use_enable static-libs static) + # The binutils eclass enables this flag for all bi-arch builds, + # but other tools often don't care about that support. Put it + # beyond a flag if people really want it, but otherwise leave + # it disabled as it can slow things down on 32bit arches. #438522 + $(use_enable 64-bit-bfd) + # This only disables building in the zlib subdir. + # For binutils itself, it'll use the system version. #591516 + --without-zlib + --with-system-zlib + # We only care about the libs, so disable programs. #528088 + --disable-{binutils,etc,ld,gas,gprof,gprofng} + # Disable modules that are in a combined binutils/gdb tree. #490566 + --disable-{gdb,gdbserver,libbacktrace,libdecnumber,readline,sim} + # Strip out broken static link flags. + # https://gcc.gnu.org/PR56750 + --without-stage1-ldflags + # We pull in all USE-flags that change ABI in an incompatible + # way. #666100 + # USE=multitarget change size of global arrays + # USE=64-bit-bfd changes data structures of exported API + --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)-$(usex 64-bit-bfd 64 def) + + # avoid automagic dependency on (currently prefix) systems + # systems with debuginfod library, bug #754753 + --without-debuginfod + + # Revisit if it's useful, we do have binutils[zstd] though + --without-zstd + + # Allow user to opt into CET for host libraries. + # Ideally we would like automagic-or-disabled here. + # But the check does not quite work on i686: bug #760926. + $(use_enable cet) + ) + + # mips can't do hash-style=gnu ... + if [[ $(tc-arch) != mips ]] ; then + myconf+=( --enable-default-hash-style=gnu ) + fi + + use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) + + use nls \ + && myconf+=( --without-included-gettext ) \ + || myconf+=( --disable-nls ) + + if [[ ${CHOST} == *-darwin* ]] && use nls ; then + # fix underlinking in opcodes + sed -i -e 's/@SHARED_LDFLAGS@/@SHARED_LDFLAGS@ -lintl/' \ + "${S}"/opcodes/Makefile.in || die + fi + + ECONF_SOURCE="${S}" econf "${myconf[@]}" + + # Prevent makeinfo from running as we don't build docs here. + # bug #622652 + sed -i \ + -e '/^MAKEINFO/s:=.*:= true:' \ + Makefile || die +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + # Provided by dev-debug/gdb instead + if [[ ${PV} != 9999 ]] ; then + rm "${ED}"/usr/share/info/sframe-spec.info || die + fi + + # Provide libiberty.h directly. + dosym libiberty/libiberty.h /usr/include/libiberty.h +} + +multilib_src_install_all() { + use static-libs || find "${ED}"/usr -name '*.la' -delete +} diff --git a/sys-libs/binutils-libs/binutils-libs-9999.ebuild b/sys-libs/binutils-libs/binutils-libs-9999.ebuild index 40d1c8c7987e..6b4dbbfd6979 100644 --- a/sys-libs/binutils-libs/binutils-libs-9999.ebuild +++ b/sys-libs/binutils-libs/binutils-libs-9999.ebuild @@ -81,7 +81,7 @@ src_unpack() { EGIT_CHECKOUT_DIR=${S} git-r3_src_unpack else - unpack ${P/-hppa64/}.tar.xz + unpack ${MY_P}.tar.xz cd "${WORKDIR}" || die unpack binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz @@ -158,7 +158,7 @@ multilib_src_configure() { # We only care about the libs, so disable programs. #528088 --disable-{binutils,etc,ld,gas,gprof,gprofng} # Disable modules that are in a combined binutils/gdb tree. #490566 - --disable-{gdb,gdbserver,libdecnumber,readline,sim} + --disable-{gdb,gdbserver,libbacktrace,libdecnumber,readline,sim} # Strip out broken static link flags. # https://gcc.gnu.org/PR56750 --without-stage1-ldflags @@ -210,6 +210,11 @@ multilib_src_configure() { multilib_src_install() { emake DESTDIR="${D}" install + # Provided by dev-debug/gdb instead + if [[ ${PV} != 9999 ]] ; then + rm "${ED}"/usr/share/info/sframe-spec.info || die + fi + # Provide libiberty.h directly. dosym libiberty/libiberty.h /usr/include/libiberty.h } |