From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5C11D1581F0 for ; Thu, 23 Jan 2025 03:03:00 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 42AF0342FB4 for ; Thu, 23 Jan 2025 03:03:00 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 44C1A11042D; Thu, 23 Jan 2025 03:02:59 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 3B2B411042D for ; Thu, 23 Jan 2025 03:02:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D0B48342FA8 for ; Thu, 23 Jan 2025 03:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 25C2C1724 for ; Thu, 23 Jan 2025 03:02:57 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1737601334.5d15e04b0472c7fe9bfa3e6a7325bd04b2b6bb1e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ada-bootstrap/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/ada-bootstrap/Manifest dev-lang/ada-bootstrap/ada-bootstrap-13.ebuild X-VCS-Directories: dev-lang/ada-bootstrap/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5d15e04b0472c7fe9bfa3e6a7325bd04b2b6bb1e X-VCS-Branch: master Date: Thu, 23 Jan 2025 03:02:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2e6a1545-5726-436b-8733-459b22a69ac5 X-Archives-Hash: b6eb7883f3c896dec6fdcd60e96c9108 commit: 5d15e04b0472c7fe9bfa3e6a7325bd04b2b6bb1e Author: Sam James gentoo org> AuthorDate: Thu Jan 23 03:02:14 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 23 03:02:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d15e04b dev-lang/ada-bootstrap: add 13 Same as fd80b52f6eb59b31526f4e75e834240e60408f0a. Signed-off-by: Sam James gentoo.org> dev-lang/ada-bootstrap/Manifest | 15 +++ dev-lang/ada-bootstrap/ada-bootstrap-13.ebuild | 121 +++++++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/dev-lang/ada-bootstrap/Manifest b/dev-lang/ada-bootstrap/Manifest index 4e13472ea2d8..79c305c83f7c 100644 --- a/dev-lang/ada-bootstrap/Manifest +++ b/dev-lang/ada-bootstrap/Manifest @@ -13,6 +13,21 @@ DIST ada-bootstrap-12-riscv64-unknown-linux-gnu.gpkg.tar 35594240 BLAKE2B cf8104 DIST ada-bootstrap-12-s390-ibm-linux-gnu.gpkg.tar 24535040 BLAKE2B 5933ef5d17d5fe65e3be538e25d5a13144d5debcca1cc1346051df266065bb4d4c16ba5ea5c7206ab34fede09c1c364ce1fe5770e3b9fe37fb007e59449ebe40 SHA512 bc040b816260e6e4e6fa297ff7a595f3ecd11e49b08565f0fee6d3ce2c9ea64fda6c559506db8ebfbfc07211cff5d2386407032f1e58d408ae11db2db450ef8d DIST ada-bootstrap-12-s390x-ibm-linux-gnu.gpkg.tar 25466880 BLAKE2B 3960c1d8c5723e82257b4ebf4c154757ba7e8c4fdebde912d25b00f37304e626f2fc8d2c9cb1b8a2e6d15331a2c0828d1b004d67f2d4401613127dbb0289f261 SHA512 4c9c46055914617d46327b70b21861cefee7ffc06651aab5b3ebf64e27f11ec576bffbcf84ab64b28e0a4e0f98e8fdfea6be9896e36cee4453bd66d36711c60e DIST ada-bootstrap-12-sparc64-unknown-linux-gnu.gpkg.tar 23060480 BLAKE2B b4655c7958fe98179ab55b46b71db66caee430b27400ccb9ee8f67ae39edad0354381af2fc1c426b82870c82969d4f5b2208e4ba06dc5b161986dbacea32ecf4 SHA512 5a4f86bd8ce616c46478dd90e3c63b37c4c3838b5944afc0bb1a67d4a394b103fce037dacbdb7faee190f44f2b93f89c5f76bf7f1a4620c54afce84078fccf97 +DIST ada-bootstrap-13-aarch64-unknown-linux-gnu.gpkg.tar 39895040 BLAKE2B f76ece756dddc2cb4b776d14d088b9e9e61c6342b26d4b0fc1778b894e195a06c514678e9ae8dc448102aac2c8ec6f45ee59137bcae73beca46e12ac897f473d SHA512 6edb8b557f567bfce837063aa7eb28a420d3d7a0b7aa8c15dbb71931715ddb9c8cd890cfee072b606c8bd16371efc3aec56d9090f70dbf249e91c64c3a27349e +DIST ada-bootstrap-13-alpha-unknown-linux-gnu.gpkg.tar 40355840 BLAKE2B 054d9d6d732eea3354e5714d191a4b3f27dcdcdbcf65aebfc04b71d8833757fcef7fe4ac2bebbd414e8a5b3502eb2ef245e65dc952883781b89757438c05fa14 SHA512 2531c61b99c25c09d2b84fde1b7da7c1e0b9884d3782caec63f27c8d0a92d0e5a3873d2f5ab1a624ec0989431017e6ca32b3b855e75cb333bb7ddccd564e2c8b +DIST ada-bootstrap-13-armv6j-softfp-linux-gnueabi.gpkg.tar 33945600 BLAKE2B ab235b364db3567fb0f448414129d8983fe7f9c93e955ef86c961f481654aa09cbd9c18e2a7d31b7452da89edac74a8df2346d8a703b277ff913d955e6495f3f SHA512 3103c9b8ae3db9ef369455ac06c1f33bc7bd18e7f290c54fc4b858ff795c8cfdf5bc67bf3c2211b643f73587ce3e04b6a4617bae3d42b98e929787eee57a1d76 +DIST ada-bootstrap-13-armv6j-unknown-linux-gnueabihf.gpkg.tar 33720320 BLAKE2B 6df26999e7d6afb6eac01ad2cd271c85df2200bc85a8ec9383fd26cedbfec8cadabdf3d2c226d42594b2c0e10a7bbcbdb408adc0de06427a42dd3e28178de30e SHA512 b0c83c4f4e966ac3aaa9c1c39325e78f9a1800baf6cc5bb251f68d965316b06c74e3e174f1645769dad182866ae65db996fed23473abab3290ba44f4957a461a +DIST ada-bootstrap-13-armv7a-softfp-linux-gnueabi.gpkg.tar 33515520 BLAKE2B 7c4196c4378cb9f05d7daa6bca735828f82793ee38b4a2ca1306d871fecb7e7ed64a3bfa14eba6ad7d52e8c48dedec67e8d5ea2fb1b06cfd4583dce32deb5144 SHA512 7f2ae11d6ca32771e3c69542a62f26e61316f1cd08541ac6ea8075c487a89f4fc9b72477876b95e88baedae7f98274bab235c66360f90bfce346ca427496a372 +DIST ada-bootstrap-13-armv7a-unknown-linux-gnueabihf.gpkg.tar 33290240 BLAKE2B 457ab21565b5979c450245f10962ce157c638857bc01accb41825db93b71d213be93dfa786989ec6e5d0b9ab8e8a810b4b72e6c45d4871dd98d85a8ad2226775 SHA512 8400c4ce69a4b9576ffdf07a3473ca384b65367ed39f40169ea4773c328c6004e82c87a2365d4eb39a41ddf785a1a7708daae40b37d59f92c3f93080dec44509 +DIST ada-bootstrap-13-hppa1.1-unknown-linux-gnu.gpkg.tar 32563200 BLAKE2B 5d94fe1a243bdcd78292443ad963f41f7d4a8d08643dfbde05f87a2e7408515316ab4fe5b51a02c863dc0259f68791349d8a3a6cb84a76cbe3adf59f0814b356 SHA512 5ed875bf53bb8bbf0e57ac2a19aefaa4e9ccf26c2c63cb38b564423dac20056655d5055f6f9f72e0606a03c5eb625d098090e261b37bc911af56ee7d1fc51c9b +DIST ada-bootstrap-13-hppa2.0-unknown-linux-gnu.gpkg.tar 32368640 BLAKE2B 1c608e26b7c224617a2c3967380cb2ab74e592648c943df6bfa7dacfd0b30df089185e46620f41c3ec82f610033a5eb6202792c654d7d278259e952ccba12fdf SHA512 e9d56aee05c1a2717f54b17322b90693c36ee6b285a7c9d7837a19dcd3c434bf3ef37bb6faeb9b3b9849545db21d9e110e84c27bb4f7e9386bc32e67af414a93 +DIST ada-bootstrap-13-powerpc-unknown-linux-gnu.gpkg.tar 27207680 BLAKE2B bd9971c4e86267bfe4b45421d33eeec324392c9980dcc3fc204a0e9d5ee7856f565732de50d749c14aaba7a1c52752d31ed5a985945deb76aa22110e94ca376e SHA512 b83beafa56eda356755c2519d255ca0ff17b9511a809dc814b63263c4bfd812478e700beb25e1968e336565d0d16c754d286d65560721f9d69c4aa7e0a3921e2 +DIST ada-bootstrap-13-powerpc64-unknown-linux-gnu.gpkg.tar 32655360 BLAKE2B 6cd924dcf41884b1e895097b9e514550e421358aad5c4879423a186f17a37c7d6e8f00c10ea037dc5830101435935cfe5b29f4e3803c7b73eddc8a6dff82be6b SHA512 a36a5cb229e21018aa3ea733ae81ca86d6fe6a719ae6166ed773d5cf9b2d423b9d67c97c75e89d85e401aab85bf81eb2560c36ba88471766b60e5805c3d00a35 +DIST ada-bootstrap-13-powerpc64le-unknown-linux-gnu.gpkg.tar 33751040 BLAKE2B 5c4457c290486d2740f04e4269cc214ce8ad80c22d3416c364161b1ccf117bce11afdaa5716a89aff7b5f3f863648e753f40fb1bf107bf1b89ab04916f0107fa SHA512 5b7c715ad7cd550460e26414382c06fd154b73ffea405df64d6ea0d8a8afa3d9a3d0b61458046beea25360672096c23fa2d7d0605b2a33c0ecea43ccce8e0e3a +DIST ada-bootstrap-13-riscv64-unknown-linux-gnu.gpkg.tar 38963200 BLAKE2B 88ec358fb5b9a1dedc5bec08cc1842c58c8ac8aad6f96a6ed4c077b323c8f17643686ee5eff8e1af4044328832a739439ec5b682be7fbe63c09dccc4be5cf76c SHA512 2061fcec3b875d9b42fca13c3e355dfb5dc78abd65e757df908dabbcd62f82c752b387aad1c59f0a421b2146556511c93615e7e2a52b190763d3be751ee31b8e +DIST ada-bootstrap-13-s390-ibm-linux-gnu.gpkg.tar 26890240 BLAKE2B f1e996ab793a1ad8f0e3220ffd94beee6a573ebcc32c4956c70e289fc7183f2996e9f61fc454f9f4a2860c8a82478ade9ff5f4a40656c16f02877b38d9369fb4 SHA512 eec4cd68104dc585ce691fab76fb328bc9da65fbd4fe45db37b40b64b1a4c3c6aa14dac0a249c883956de9054a3d34c61fb716badf1e9bf9072872a1dad160a6 +DIST ada-bootstrap-13-s390x-ibm-linux-gnu.gpkg.tar 28907520 BLAKE2B 8b5aecb74be8e36e5d36ec664729350b1e9112fbcf69ce7a49120c69ff001d41e7efe814cd092dafcc24fd866ce28f9a6c1c9d80d76c841c3733cfc1d5e49332 SHA512 806b87a7022806b5c92ad3f9af1f28140ec3a36f2fe511ce281e7fb8ef05bb99f8a029c3fa308c5bd6a100b9471db4e2bccdcb26538a8e3d6a5b97d195653d39 +DIST ada-bootstrap-13-sparc64-unknown-linux-gnu.gpkg.tar 24391680 BLAKE2B 5a513a277b0d3b24184476b7fe204d1dad81bafaea430191d7b74c7cbb09602f735ee4ae3aeb138c3739179802a792d0aa5984d6c727a9a4a0d6367ace50e74b SHA512 ab0c6d416c1ea7d8239eff54422fa9cd0410ce604bfdded0c6b522dc07549267b409cb63fa8a2aaf4950c437678fdf3ab0b7afc9937ad3148dbeb5938425f853 DIST ada-bootstrap-14-aarch64-unknown-linux-gnu.gpkg.tar 44759040 BLAKE2B 4c3440bf35f14dc93e7d9265f90bca0cf534bbc2cd913f2d7356d674d9f4bc6a691b812c3c5f7d54d4fc63ad7f67ff06dd09afb5c3d008666e747dace5d3940a SHA512 8253ac27650398192081ebc8f352679b2e6fdad0cc8d52df176a1944a6da373e0adce6acc0bdbdbb3c6c37f1d666d2839fae06b86814e6e1ab7c6f6efea128ba DIST ada-bootstrap-14-alpha-unknown-linux-gnu.gpkg.tar 44359680 BLAKE2B 8ca83caa392356901fbe299c83efce9e22501e9251d4a8bac68c113630507b209e4efb4b3a094f4dcf73ff9a3714b1f881ae42ea373e02bd8d720cb02cb11427 SHA512 67ba8c0e63a69744fc34a04fa1dda34d2958fd693f4a0f1449b897a541854ef8c1f2a09a0375223392430313184a6db87b72fbee5fecb10af7ef40db7517edbe DIST ada-bootstrap-14-armv6j-softfp-linux-gnueabi.gpkg.tar 38379520 BLAKE2B 6ad7988780d1961a5b8c743ad2bc83c8da7173b53ecae3a3d82e02e4d425cdd49555bc6bb76f17f08cb4378b13e2a98bcfbcc8ff54e6a63397893ec9a0c3b6b4 SHA512 b253218ddfaeff7216b8770f251a4ffd3fbcf6b3d487e505bab7ebc3730bb9f616ee4f46d5c77a2c6a76c2bca0257dfff6428bb75c86bb977ea1f4a49e3cb103 diff --git a/dev-lang/ada-bootstrap/ada-bootstrap-13.ebuild b/dev-lang/ada-bootstrap/ada-bootstrap-13.ebuild new file mode 100644 index 000000000000..bf19bd91c1b3 --- /dev/null +++ b/dev-lang/ada-bootstrap/ada-bootstrap-13.ebuild @@ -0,0 +1,121 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# The binaries in SRC_URI are generated by the following (roughly): +# * taking an amd64 stage3 +# * adding USE=ada to make.conf +# * running `crossdev ${CHOST} --ex-gcc -S` +# * running `USE=ada ${CHOST}-emerge -v1 gcc` +# * copy /usr/${CHOST}/var/cache/binpkgs/sys-devel/gcc* into +# ada-bootstrap-${PV}-${CHOST}.gpkg.tar +# +# The full script is at https://github.com/thesamesam/sam-gentoo-scripts/blob/91558fb51c56a661d6f374507888ff67725ca660/build-ada-bootstraps. +# +# Binaries in SRC_URI are regular Gentoo binpkgs in the GPKG format. +# +# Note: of course, the used GCC on both CBUILD and CHOST +# must be the same version, correspond to ${PV} in ada-bootstrap, +# and be at most the newest stable GCC (ideally older). +inherit unpacker + +DESCRIPTION="Binary bootstrap compiler for GNAT (Ada compiler)" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Ada" +SRC_URI=" + alpha? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-alpha-unknown-linux-gnu.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-aarch64-unknown-linux-gnu.gpkg.tar + ) + arm? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-armv6j-softfp-linux-gnueabi.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-armv6j-unknown-linux-gnueabihf.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-armv7a-softfp-linux-gnueabi.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-armv7a-unknown-linux-gnueabihf.gpkg.tar + ) + hppa? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-hppa1.1-unknown-linux-gnu.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-hppa2.0-unknown-linux-gnu.gpkg.tar + ) + ppc? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-powerpc-unknown-linux-gnu.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-powerpc64le-unknown-linux-gnu.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-powerpc64-unknown-linux-gnu.gpkg.tar + ) + riscv? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-riscv64-unknown-linux-gnu.gpkg.tar + ) + sparc? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-sparc64-unknown-linux-gnu.gpkg.tar + ) + s390? ( + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-s390-ibm-linux-gnu.gpkg.tar + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-s390x-ibm-linux-gnu.gpkg.tar + ) +" +S=${WORKDIR} + +LICENSE="GPL-2 GPL-3" +SLOT="0" +KEYWORDS="-* ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc" + +RDEPEND=" + >=dev-libs/gmp-4.3.2:0/10.4 + >=dev-libs/mpfr-2.4.2:0/6 + >=dev-libs/mpc-0.8.1:0/3 + sys-libs/zlib + virtual/libiconv +" + +src_unpack() { + # We want to unpack only the appropriate tarball for CHOST (e.g. on arm). + TARBALL_TO_UNPACK= + + local archive + for archive in ${A} ; do + local tarball_chost=${archive/${P}-} + tarball_chost=${tarball_chost%%.gpkg.tar} + + if [[ ${tarball_chost} == ${CHOST} ]] ; then + TARBALL_TO_UNPACK=${archive} + break + fi + done + + if [[ -z ${TARBALL_TO_UNPACK} ]] ; then + die "No tarball found for CHOST=${CHOST}. Please file a bug at bugs.gentoo.org." + fi + + unpack_gpkg "${TARBALL_TO_UNPACK}" +} + +src_install() { + local chost=${TARBALL_TO_UNPACK/${P}-} + chost=${chost%%.gpkg.tar} + + BINPKG=$(find "${WORKDIR}"/ -type d -mindepth 1 -maxdepth 1 -iname 'gcc-*') + BINPKG="${BINPKG#${WORKDIR}}" + + dodir /usr/lib/ada-bootstrap + mv "${WORKDIR}"/${BINPKG}/image/usr/ "${ED}"/usr/lib/ada-bootstrap || die + + # Make `gcc-config`-style symlinks + insinto /usr/lib/ada-bootstrap/bin + local tool + for tool in gcc gnat{,bind,chop,clean,kr,link,ls,make,name,prep} ; do + dosym -r /usr/lib/ada-bootstrap/usr/${chost}/gcc-bin/${PV}/${tool} /usr/lib/ada-bootstrap/bin/${tool} + dosym -r /usr/lib/ada-bootstrap/usr/${chost}/gcc-bin/${PV}/${tool} /usr/lib/ada-bootstrap/bin/${chost}-${tool} + dosym -r /usr/lib/ada-bootstrap/usr/${chost}/gcc-bin/${PV}/${tool} /usr/lib/ada-bootstrap/bin/${chost}-${tool}-${PV} + done + + rm -rf "${ED}"/usr/lib/ada-bootstrap/usr/bin || die + # This gives us the same layout as older dev-lang/ada-bootstrap + dosym -r /usr/lib/ada-bootstrap/bin /usr/lib/ada-bootstrap/usr/bin + dosym -r /usr/lib/ada-bootstrap/usr/libexec /usr/lib/ada-bootstrap/libexec +} + +# TODO: pkg_postinst warning/log?