From f61d8811e916303cabe9fafdefbe188ba9b500d5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 5 Mar 2024 13:06:03 +0000 Subject: gentoo auto-resync : 05:03:2024 - 13:06:02 --- dev-lang/gnat-gpl/Manifest | 4 +- dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch | 8 +- dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild | 160 --------------------- dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild | 160 +++++++++++++++++++++ 4 files changed, 167 insertions(+), 165 deletions(-) delete mode 100644 dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild create mode 100644 dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild (limited to 'dev-lang/gnat-gpl') diff --git a/dev-lang/gnat-gpl/Manifest b/dev-lang/gnat-gpl/Manifest index c4453b6eba68..47a901e9a8f8 100644 --- a/dev-lang/gnat-gpl/Manifest +++ b/dev-lang/gnat-gpl/Manifest @@ -1,11 +1,11 @@ AUX gcc-configure-LANG.patch 2052 BLAKE2B 28c36f4992e41305ee421dade5eaaac34e3bdc523665b03f360f2bc01e8f69e9dc48052edb80dece63ab561e80325b4f125502482eb16f7324f1c03670021550 SHA512 a694c7ac2f45cc657097ff5b0cf1356ac88a9c06035c9ba15167e9d444844d0d8a478eb1b9b62195dd063774f79697b9148b9cdb6c261640b472c291061b2129 AUX gcc-configure-texinfo.patch 341 BLAKE2B d2ea3b2ea08f5d3a498ba27d0fb95e325097e2104e55caa28b66515cb48662649140d90b639369aedc54b2b1178fa4b49cda442f5f504e09d88a2efa45a5057c SHA512 e8d34c5077409df5495cf0c5fbf5e77f841c5698108fa6a5fde33eb28202c685603bdefd8368918e55f30c4b995e895d71d64c715c1ec2b017e09eb2c54c09ff -AUX gnat-gpl-2021-gentoo.patch 3422 BLAKE2B e25e90fdf06ead7103dbb5f236a826bc51075305fd1c9f88fb5a4b2801526641dc4b1696396ee7f9baf57d6327e29d8768f41d5083c23bf2d881034c8dbb7b36 SHA512 d1d85b3298c102bf0caf922cd17cccb9f6bc7fbd79afef26ada931b99196c5482f64e1dab6dbf6358c46ae66f40f6478b48355a763ea2336b60522dd90cb3aa2 +AUX gnat-gpl-2021-gentoo.patch 3563 BLAKE2B ab3e1e1f5c53e662bf985ea9e343c26ab1d462942d18e67916290c25e32a3a4d9eb1c2819d9734e7dfdc189307eb8634d2e3a1a1210a41cb7b6266662a89c677 SHA512 983d6ed00668a106ab0ddf5e7db091b23183ce37315c0f65db4f82e365ea800d0541841828ce846118855de5952ff7f763e4a1f2b3d06b6dc78f92bd021b629e DIST gcc-10-2021-20210519-19A74-src.tar.gz 109157702 BLAKE2B 8ec307e4fde35c8726bc7b9702717329695bad928d5222a7bb691cce47500de31a60bcfcbb925129a57cb81d3d7ea92e60599aa7383d5358e63cc087b0482550 SHA512 2e2cc0ec9a3a82816a5d399d2db261c356e106b82a44efd54a1ac882b96549ab8de79c69858127c4397de6e9e9463ce6fb9994fc2e426e7d3d2f98d5efa2edb6 DIST gcc-10.3.0-patches-4.tar.xz 18460 BLAKE2B 7c4b91c3beebc5fd91c0fdbeec6512c141bd78759a02aa7fff32dd30025ef41db1d57280e50db575f46cc0061a480ced9259410e9875b1dc0048886df469c4c9 SHA512 3befbcdec84e583966aad37d1a08c1863f39eb877296c5991348db9d37cc8359197f23cb3b8fa1b0f4d01497dfd2ebaa393e1a459267c19a0976fb535e463ec8 DIST gcc-interface-10-2021-20210519-19A75-src.tar.gz 359085 BLAKE2B 75f941a7635f2880cc0192acb49d8e7f567baca7530fb981be14dc6cb1bf46fda0e3c043c8703cdbeeb242b548894e0bc6787adfff0f27198354d150e6e36386 SHA512 0251a93d20c59cc4705963438880fe265e2e0bb94a35b7ddaaf03e9efae60e044e585a2204d0773a46f17b3b774e4d0c73adf852f5d06ba17373d26ed580ca8d DIST gnat-2021-20210519-19A70-src.tar.gz 8765762 BLAKE2B ef48f54c6109566e37bfa5dee9262305d0529b3dfd333ee28bc4e66f4709a0673f673d742bc04deb15dc145404f7618d350dbdf3f2a7ab37c861e57d011946fa SHA512 3cb79be024fdd9b738d99ffc8e224d32bb382b5da2d02b97b2061a5ea58456f33d4564c92e224af2713ce15fd5481edd715e5b9a52abc74fdc142f27e103c201 DIST gnat-gpl-2014-x86-linux-bin.tar.gz 233049287 BLAKE2B 2e8bab113f6a319533ec12fdf71c481f72aee227c22bd0cc42a53bd727b323caba1e7b6298053db8b4d3016236b31649b0b255f4ebcbb81a08a69f29f78f13fc SHA512 ac7f53fb4bd71b0e8fbd62abc45de76f7f8f2f405b80e9b60b4b65a6cef6ee98e3b06848e4b752af3c8268237e5a0529cf6145ebc5b33cd6e5cf4928d85f5be2 DIST gnat-gpl-2014-x86_64-linux-bin.tar.gz 236253400 BLAKE2B c1db70db9442ba24688b8e323d5a02e2e9707ba1f02835ea551038d0a09aafede93a224091e5186f2f2a9d0f96144027af2184ee05ca1c19cc997a6cf3902df7 SHA512 5e40a251baac3d0ace78352956ca21a7d294d902d344a9ed7a8d376e900468c283721ebfb773adfedbf4d623ace02536505c0147815a0c1908933ad611ea085e -EBUILD gnat-gpl-2021-r4.ebuild 4743 BLAKE2B 7ff29f5870fbeb0ee21930178445ae080a6637b2a7a36ab53d6f4aa6b30896cfef963310305ac71e1053672e98cdcb73bab8f0cdb58b8c610d299ac3241db438 SHA512 64d5dd6e0b21057811838cf477a5ac27cc25b0538912ad7aa1655b3dff438f1431933ca8ad2afee3f34284f6fa2b3c6928cf13eb505dd8bf5df79febe1468dd1 +EBUILD gnat-gpl-2021-r5.ebuild 4743 BLAKE2B 7ff29f5870fbeb0ee21930178445ae080a6637b2a7a36ab53d6f4aa6b30896cfef963310305ac71e1053672e98cdcb73bab8f0cdb58b8c610d299ac3241db438 SHA512 64d5dd6e0b21057811838cf477a5ac27cc25b0538912ad7aa1655b3dff438f1431933ca8ad2afee3f34284f6fa2b3c6928cf13eb505dd8bf5df79febe1468dd1 MISC metadata.xml 2032 BLAKE2B dc586b249016754d460c828f51021cca5fc88276894a3bff8481891373070e6876f5c42348959b2af223c081436557150e21799d05aa54955844225caa44a77d SHA512 7059d2fcf63ad1a9fce407703b9101c6e536fd5a42f21aea90a241b9d822fff6f37c198f2bd66f6235a79d328ca85a0ab14c6257974a4cb5bde636d8bacae689 diff --git a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch index 485626c03569..6e26ad680043 100644 --- a/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch +++ b/dev-lang/gnat-gpl/files/gnat-gpl-2021-gentoo.patch @@ -56,17 +56,19 @@ ac_cv_c_stack_direction=0 else + cat >>confdefs.h <<_ACEOF -+#include ++extern void exit(int status); +_ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ find_stack_direction () -@@ -7539,6 +7542,9 @@ +@@ -7539,6 +7542,11 @@ if test "$cross_compiling" = yes; then : ac_cv_func_strncmp_works=yes else + cat >>confdefs.h <<_ACEOF -+#include ++ extern int strlen(const char *s); ++ extern char *strcpy(char *dst, const char *src); ++ extern int strncmp(const char *s1, const char *s2, size_t n); +_ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild deleted file mode 100644 index 002368b2c0c0..000000000000 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r4.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PATCH_GCC_VER=10.3.0 -PATCH_VER="4" - -TOOLCHAIN_GCC_PV=10.3.1 - -REL=10 -MYP=gcc-${REL}-${PV}-20210519-19A74-src -GNATDIR=gnat-${PV}-20210519-19A70-src -INTFDIR=gcc-interface-${REL}-${PV}-20210519-19A75-src - -BTSTRP_X86=gnat-gpl-2014-x86-linux-bin -BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin -BASE_URI=https://community.download.adacore.com/v1 -# we provide own tarball below -GCC_TARBALL_SRC_URI=" - ${BASE_URI}/005d2b2eff627177986d2517eb31e1959bec6f3a?filename=${GNATDIR}.tar.gz - -> ${GNATDIR}.tar.gz - ${BASE_URI}/44cd393be0b468cc253bf2cf9cf7804c993e7b5b?filename=${MYP}.tar.gz - -> ${MYP}.tar.gz - ${BASE_URI}/8ace7d06e469d36d726cc8badb0ed78411e727f3?filename=${INTFDIR}.tar.gz - -> ${INTFDIR}.tar.gz - bootstrap? ( - amd64? ( - ${BASE_URI}/6eb6eef6bb897e4c743a519bfebe0b1d6fc409c6?filename=${BTSTRP_AMD64}.tar.gz&rand=1193 - -> ${BTSTRP_AMD64}.tar.gz - ) - x86? ( - ${BASE_URI}/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=${BTSTRP_X86}.tar.gz&rand=436 - -> ${BTSTRP_X86}.tar.gz - ) - )" - -inherit toolchain-funcs toolchain - -DESCRIPTION="GNAT Ada Compiler - GPL version" -HOMEPAGE="http://libre.adacore.com/" - -LICENSE+=" GPL-2 GPL-3" -KEYWORDS="amd64 x86" -IUSE="+ada +bootstrap" -RESTRICT="test" - -RDEPEND="!=sys-devel/gcc-${TOOLCHAIN_GCC_PV}*" -BDEPEND=sys-devel/binutils - -S="${WORKDIR}"/${MYP} - -pkg_pretend() { - toolchain_pkg_pretend - if tc-is-clang; then - die "${P} does not build with clang. It is bootstrapped." - fi -} - -src_prepare() { - if use amd64; then - BTSTRP=${BTSTRP_AMD64} - else - BTSTRP=${BTSTRP_X86} - fi - - if use bootstrap; then - GCC="${WORKDIR}"/${BTSTRP}/bin/gcc - else - GCC=${ADA:-$(tc-getCC)} - fi - - gnatbase=$(basename ${GCC}) - gnatpath=$(dirname ${GCC}) - - GNATMAKE=${gnatbase/gcc/gnatmake} - if [[ ${gnatpath} != "." ]] ; then - GNATMAKE="${gnatpath}/${GNATMAKE}" - fi - - if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then - eerror "You need a gcc compiler that provides the Ada Compiler:" - eerror "1) use gcc-config to select the right compiler or" - eerror "2) set the bootstrap use flag or" - eerror "3) set ADA to a working gcc ada compiler" - die "ada compiler not available" - fi - - local bundledchost="" - use amd64 && local bundledchost="x86_64" - use x86 && local bundledchost="i686" - if use bootstrap; then - rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/ld \ - || die - ln -s /usr/bin/$CHOST-ld \ - "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/ld \ - || die - rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/as \ - || die - ln -s /usr/bin/$CHOST-as \ - "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/as \ - || die - fi - - CC=${GCC} - CXX="${gnatbase/gcc/g++}" - GNATBIND="${gnatbase/gcc/gnatbind}" - GNATLINK="${gnatbase/gcc/gnatlink}" - GNATLS="${gnatbase/gcc/gnatls}" - if [[ ${gnatpath} != "." ]] ; then - CXX="${gnatpath}/${CXX}" - GNATBIND="${gnatpath}/${GNATBIND}" - GNATLINK="${gnatpath}/${GNATLINK}" - GNATLS="${gnatpath}/${GNATLS}" - fi - mkdir bin || die - ln -s $(type -P ${GCC}) bin/gcc || die - ln -s $(type -P ${CXX}) bin/g++ || die - ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die - ln -s $(type -P ${GNATBIND}) bin/gnatbind || die - ln -s $(type -P ${GNATLINK}) bin/gnatlink || die - ln -s $(type -P ${GNATLS}) bin/gnatls || die - ln -s $(type -P ${GCC}) bin/${bundledchost}-pc-linux-gnu-gcc || die - ln -s $(type -P ${CXX}) bin/${bundledchost}-pc-linux-gnu-g++ || die - ln -s $(type -P ${GNATMAKE}) bin/${bundledchost}-pc-linux-gnu-gnatmake || die - ln -s $(type -P ${GNATBIND}) bin/${bundledchost}-pc-linux-gnu-gnatbind || die - ln -s $(type -P ${GNATLINK}) bin/${bundledchost}-pc-linux-gnu-gnatlink || die - ln -s $(type -P ${GNATLS}) bin/${bundledchost}-pc-linux-gnu-gnatls || die - - cd .. - mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die - mv ${INTFDIR} ${MYP}/gcc/ada/gcc-interface || die - eapply "${FILESDIR}"/${P}-gentoo.patch - cd - - sed -i \ - -e 's:-fcf-protection":":' \ - libiberty/configure \ - lto-plugin/configure || die - sed -i \ - -e 's:$(P) ::g' \ - gcc/ada/gcc-interface/Makefile.in \ - || die "sed failed" - toolchain_src_prepare -} - -src_configure() { - export PATH=${PWD}/bin:${PATH} - downgrade_arch_flags "$(gcc-version)" - toolchain_src_configure -} - -pkg_postinst() { - toolchain_pkg_postinst - einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more" - einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}" - einfo "Even if the c/c++ compilers are using almost the same patched" - einfo "source as the sys-devel/gcc package its use is not extensively" - einfo "tested, and not supported for updating your system, except for ada" - einfo "related packages" -} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild new file mode 100644 index 000000000000..002368b2c0c0 --- /dev/null +++ b/dev-lang/gnat-gpl/gnat-gpl-2021-r5.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PATCH_GCC_VER=10.3.0 +PATCH_VER="4" + +TOOLCHAIN_GCC_PV=10.3.1 + +REL=10 +MYP=gcc-${REL}-${PV}-20210519-19A74-src +GNATDIR=gnat-${PV}-20210519-19A70-src +INTFDIR=gcc-interface-${REL}-${PV}-20210519-19A75-src + +BTSTRP_X86=gnat-gpl-2014-x86-linux-bin +BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin +BASE_URI=https://community.download.adacore.com/v1 +# we provide own tarball below +GCC_TARBALL_SRC_URI=" + ${BASE_URI}/005d2b2eff627177986d2517eb31e1959bec6f3a?filename=${GNATDIR}.tar.gz + -> ${GNATDIR}.tar.gz + ${BASE_URI}/44cd393be0b468cc253bf2cf9cf7804c993e7b5b?filename=${MYP}.tar.gz + -> ${MYP}.tar.gz + ${BASE_URI}/8ace7d06e469d36d726cc8badb0ed78411e727f3?filename=${INTFDIR}.tar.gz + -> ${INTFDIR}.tar.gz + bootstrap? ( + amd64? ( + ${BASE_URI}/6eb6eef6bb897e4c743a519bfebe0b1d6fc409c6?filename=${BTSTRP_AMD64}.tar.gz&rand=1193 + -> ${BTSTRP_AMD64}.tar.gz + ) + x86? ( + ${BASE_URI}/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=${BTSTRP_X86}.tar.gz&rand=436 + -> ${BTSTRP_X86}.tar.gz + ) + )" + +inherit toolchain-funcs toolchain + +DESCRIPTION="GNAT Ada Compiler - GPL version" +HOMEPAGE="http://libre.adacore.com/" + +LICENSE+=" GPL-2 GPL-3" +KEYWORDS="amd64 x86" +IUSE="+ada +bootstrap" +RESTRICT="test" + +RDEPEND="!=sys-devel/gcc-${TOOLCHAIN_GCC_PV}*" +BDEPEND=sys-devel/binutils + +S="${WORKDIR}"/${MYP} + +pkg_pretend() { + toolchain_pkg_pretend + if tc-is-clang; then + die "${P} does not build with clang. It is bootstrapped." + fi +} + +src_prepare() { + if use amd64; then + BTSTRP=${BTSTRP_AMD64} + else + BTSTRP=${BTSTRP_X86} + fi + + if use bootstrap; then + GCC="${WORKDIR}"/${BTSTRP}/bin/gcc + else + GCC=${ADA:-$(tc-getCC)} + fi + + gnatbase=$(basename ${GCC}) + gnatpath=$(dirname ${GCC}) + + GNATMAKE=${gnatbase/gcc/gnatmake} + if [[ ${gnatpath} != "." ]] ; then + GNATMAKE="${gnatpath}/${GNATMAKE}" + fi + + if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then + eerror "You need a gcc compiler that provides the Ada Compiler:" + eerror "1) use gcc-config to select the right compiler or" + eerror "2) set the bootstrap use flag or" + eerror "3) set ADA to a working gcc ada compiler" + die "ada compiler not available" + fi + + local bundledchost="" + use amd64 && local bundledchost="x86_64" + use x86 && local bundledchost="i686" + if use bootstrap; then + rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/ld \ + || die + ln -s /usr/bin/$CHOST-ld \ + "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/ld \ + || die + rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/as \ + || die + ln -s /usr/bin/$CHOST-as \ + "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/as \ + || die + fi + + CC=${GCC} + CXX="${gnatbase/gcc/g++}" + GNATBIND="${gnatbase/gcc/gnatbind}" + GNATLINK="${gnatbase/gcc/gnatlink}" + GNATLS="${gnatbase/gcc/gnatls}" + if [[ ${gnatpath} != "." ]] ; then + CXX="${gnatpath}/${CXX}" + GNATBIND="${gnatpath}/${GNATBIND}" + GNATLINK="${gnatpath}/${GNATLINK}" + GNATLS="${gnatpath}/${GNATLS}" + fi + mkdir bin || die + ln -s $(type -P ${GCC}) bin/gcc || die + ln -s $(type -P ${CXX}) bin/g++ || die + ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die + ln -s $(type -P ${GNATBIND}) bin/gnatbind || die + ln -s $(type -P ${GNATLINK}) bin/gnatlink || die + ln -s $(type -P ${GNATLS}) bin/gnatls || die + ln -s $(type -P ${GCC}) bin/${bundledchost}-pc-linux-gnu-gcc || die + ln -s $(type -P ${CXX}) bin/${bundledchost}-pc-linux-gnu-g++ || die + ln -s $(type -P ${GNATMAKE}) bin/${bundledchost}-pc-linux-gnu-gnatmake || die + ln -s $(type -P ${GNATBIND}) bin/${bundledchost}-pc-linux-gnu-gnatbind || die + ln -s $(type -P ${GNATLINK}) bin/${bundledchost}-pc-linux-gnu-gnatlink || die + ln -s $(type -P ${GNATLS}) bin/${bundledchost}-pc-linux-gnu-gnatls || die + + cd .. + mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die + mv ${INTFDIR} ${MYP}/gcc/ada/gcc-interface || die + eapply "${FILESDIR}"/${P}-gentoo.patch + cd - + sed -i \ + -e 's:-fcf-protection":":' \ + libiberty/configure \ + lto-plugin/configure || die + sed -i \ + -e 's:$(P) ::g' \ + gcc/ada/gcc-interface/Makefile.in \ + || die "sed failed" + toolchain_src_prepare +} + +src_configure() { + export PATH=${PWD}/bin:${PATH} + downgrade_arch_flags "$(gcc-version)" + toolchain_src_configure +} + +pkg_postinst() { + toolchain_pkg_postinst + einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more" + einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}" + einfo "Even if the c/c++ compilers are using almost the same patched" + einfo "source as the sys-devel/gcc package its use is not extensively" + einfo "tested, and not supported for updating your system, except for ada" + einfo "related packages" +} -- cgit v1.2.3