From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ada-bootstrap/
Date: Tue, 17 Dec 2024 10:53:54 +0000 (UTC) [thread overview]
Message-ID: <1734432795.cae8f6ff8f9a857ba3a07371d6b2d5d8996afb5f.sam@gentoo> (raw)
commit: cae8f6ff8f9a857ba3a07371d6b2d5d8996afb5f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 15:56:43 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 17 10:53:15 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cae8f6ff
dev-lang/ada-bootstrap: add 14
This adds bootstrap tarballs for GNAT for the following platforms:
* aarch64-unknown-linux-gnu
* armv6j-softfp-linux-gnueabi
* armv6j-unknown-linux-gnueabihf
* armv7a-softfp-linux-gnueabi
* armv7a-unknown-linux-gnueabihf
* powerpc-unknown-linux-gnu
* powerpc64-unknown-linux-gnu
* powerpc64le-unknown-linux-gnu
* sparc64-unknown-linux-gnu
More are planned (like HPPA, but I had an issue there when using the
built tarball; I don't think the tarball was to blame, rather some
deeper issue needing investigation) but this feels like a decent set
to start with.
We should also of course build a fresh one for amd64 and also x86.
They were built using a script [0] using stage3-amd64-hardened-systemd-20241214T201851Z.tar.xz
with ::gentoo state around 16th November 2024 (I say "around" as I synced
in-between to get an eclass fix).
NOTE: I've only added ~arm64 for now as I've tested the binary there
to bootstrap GNAT natively. I'll add other keywords once tested.
[0] https://github.com/thesamesam/sam-gentoo-scripts/blob/91558fb51c56a661d6f374507888ff67725ca660/build-ada-bootstraps
Bug: https://bugs.gentoo.org/940472
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-lang/ada-bootstrap/Manifest | 9 +++
dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild | 84 ++++++++++++++++++++++++++
2 files changed, 93 insertions(+)
diff --git a/dev-lang/ada-bootstrap/Manifest b/dev-lang/ada-bootstrap/Manifest
index e62b3fdcdcf7..c6210e8ad194 100644
--- a/dev-lang/ada-bootstrap/Manifest
+++ b/dev-lang/ada-bootstrap/Manifest
@@ -1,3 +1,12 @@
+DIST ada-bootstrap-14-aarch64-unknown-linux-gnu.gpkg.tar 44759040 BLAKE2B 4c3440bf35f14dc93e7d9265f90bca0cf534bbc2cd913f2d7356d674d9f4bc6a691b812c3c5f7d54d4fc63ad7f67ff06dd09afb5c3d008666e747dace5d3940a SHA512 8253ac27650398192081ebc8f352679b2e6fdad0cc8d52df176a1944a6da373e0adce6acc0bdbdbb3c6c37f1d666d2839fae06b86814e6e1ab7c6f6efea128ba
+DIST ada-bootstrap-14-armv6j-softfp-linux-gnueabi.gpkg.tar 38379520 BLAKE2B 6ad7988780d1961a5b8c743ad2bc83c8da7173b53ecae3a3d82e02e4d425cdd49555bc6bb76f17f08cb4378b13e2a98bcfbcc8ff54e6a63397893ec9a0c3b6b4 SHA512 b253218ddfaeff7216b8770f251a4ffd3fbcf6b3d487e505bab7ebc3730bb9f616ee4f46d5c77a2c6a76c2bca0257dfff6428bb75c86bb977ea1f4a49e3cb103
+DIST ada-bootstrap-14-armv6j-unknown-linux-gnueabihf.gpkg.tar 38328320 BLAKE2B 524eb8532f9daceb72ca488cdc420e2bbe48ffdcf41dfa08cff11dfa1388aa1ad165293a542a1642d3b49f1d0dec5d5a1183f02aa8dff053064d239902e77a25 SHA512 3094662de587709ec651a53b1dca6e7a9c0e648237f4c8f79e57e55cd1d9404af5027619b03f8edc71139417931215cfb6d8ff0c9a048b2c8057eec24070ad59
+DIST ada-bootstrap-14-armv7a-softfp-linux-gnueabi.gpkg.tar 38246400 BLAKE2B 3a01cc22cdc6b6bf313e9d6b3793e4cea157213e20360403813fd92d20d47438bade8fc1f9d7034e582086784bba0258d283920910f850c5764e670b1e0343e5 SHA512 4455d0ce18ff5b7563f74dee2cc75938ec2f02c417a3a9d256a8877d6b52bf486bbd5de5a9dc4fa5bbb85716a0e3f0c8f1901defe6594e446ac19d39519605de
+DIST ada-bootstrap-14-armv7a-unknown-linux-gnueabihf.gpkg.tar 38174720 BLAKE2B 1eac250bee1cf48b3371dea8d724e788f4b3a7cd1885043884a368ab44cbbdcd851ee624b272fd53a276174e0ff693f94ac45b513da0b25c55811346c4bab8f6 SHA512 224d89ec809663702fffb4651c7c5d3accd7603f78d2ef9f6b52299fb5119e0e1d6a57a2837f69d93829fe750804bb4e9e19435f3b7a86e046a4f96dd7339c40
+DIST ada-bootstrap-14-powerpc-unknown-linux-gnu.gpkg.tar 33228800 BLAKE2B b530ff260c23449788544d4b4118c402d4ac91eeab1f3e4d426c0e18eb8632d9af01703294b5e092997f81a371e626f9c5694d389849227df7e1981b5e2244c5 SHA512 71305c7b3cd132eaf31b321f8d323c25de73bccfbb487bc0c2ed4796082551ed37fa575a2ad97dfac3c579aeb1c89e934ec950131d13f76246896c8dfa77c52a
+DIST ada-bootstrap-14-powerpc64-unknown-linux-gnu.gpkg.tar 35809280 BLAKE2B 4438f33b518660a9341f2f04e939b937e41afdb740a1fcc46920a3a0d653cdffe20fee916369cfc8e2e5a0708466ccb666954739f6ccabcff2b5170ad9b20ecd SHA512 13c5df10a86a02c1a17887072a851b3ff84baebb8f5ad6b4d41f37d3d364be0b836146d4464f7907128500469d861628b433b8bff316672a7324d65f146b9bfd
+DIST ada-bootstrap-14-powerpc64le-unknown-linux-gnu.gpkg.tar 37027840 BLAKE2B f2e78244a1db120a526c35cfb7a786b917de569750dad2032e35ad4926e8bf9c233c9b3b4ba53f2e7f56059e74d1d26842617c72e3732939331c6b6d913cd4ff SHA512 bcc9f21f88927a29fbeb40e3c5f87c1a064913a2fe961a959e6e3293d7f39fcbb46055def6d5dfaa9521c83ee65c5e636b8098ec7faf8a991b996fc54e7d1cba
+DIST ada-bootstrap-14-sparc64-unknown-linux-gnu.gpkg.tar 29941760 BLAKE2B 720e816c0f3672d277ba40140a2ec39a86caca1e8bfd344476b703941159386656d9955d3878839c1cad80eb8528ee0eaa3dda2bc3bf8f73b39fce9d9cb90c05 SHA512 a13b2444e15cfadb2a10bb96d7357e65001bb72d18f33eb32ac56c703cafd81b6e0da9f1a9ae96d0124a0135e161c7a6e5bfd7c50c9b4e8f32ab3675670c5b99
DIST gcc-10-2021-20210519-19A74-src.tar.gz 109157702 BLAKE2B 8ec307e4fde35c8726bc7b9702717329695bad928d5222a7bb691cce47500de31a60bcfcbb925129a57cb81d3d7ea92e60599aa7383d5358e63cc087b0482550 SHA512 2e2cc0ec9a3a82816a5d399d2db261c356e106b82a44efd54a1ac882b96549ab8de79c69858127c4397de6e9e9463ce6fb9994fc2e426e7d3d2f98d5efa2edb6
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
diff --git a/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild b/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild
new file mode 100644
index 000000000000..a6dd8124af93
--- /dev/null
+++ b/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+BINPKG=gcc-14.2.1_p20241116-1
+
+# 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="
+ 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
+ )
+ 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
+ )
+ sparc? (
+ https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-sparc64-unknown-linux-gnu.gpkg.tar
+ )
+"
+S=${WORKDIR}
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="-* ~arm64"
+
+RDEPEND="
+ >=dev-libs/gmp-4.3.2:=
+ >=dev-libs/mpfr-2.4.2:=
+ >=dev-libs/mpc-0.8.1:=
+ sys-libs/zlib
+ virtual/libiconv
+"
+
+src_install() {
+ local chost=${A/${P}-}
+ chost=${chost%%.gpkg.tar}
+
+ 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?
next reply other threads:[~2024-12-17 10:54 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 10:53 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-24 7:35 [gentoo-commits] repo/gentoo:master commit in: dev-lang/ada-bootstrap/ Sam James
2025-01-23 21:16 Sam James
2025-01-23 6:36 Sam James
2025-01-23 3:02 Sam James
2025-01-22 23:44 Sam James
2025-01-22 19:46 Sam James
2025-01-07 20:09 Sam James
2025-01-05 8:42 WANG Xuerui
2025-01-01 20:09 Sam James
2025-01-01 19:33 Sam James
2025-01-01 19:33 Sam James
2025-01-01 19:33 Sam James
2025-01-01 10:25 Sam James
2025-01-01 10:25 Sam James
2025-01-01 5:15 Sam James
2024-12-31 19:34 Sam James
2024-12-31 19:34 Sam James
2024-12-31 8:12 Sam James
2024-12-31 8:12 Sam James
2024-12-31 8:12 Sam James
2024-12-31 3:18 Jakov Smolić
2024-12-18 23:17 Sam James
2024-12-18 3:15 Sam James
2024-12-18 1:49 Sam James
2024-12-17 19:07 Sam James
2024-12-17 19:00 Sam James
2024-12-17 18:08 Sam James
2024-12-17 12:22 Sam James
2024-12-17 10:57 Sam James
2024-10-02 1:01 Sam James
2024-10-01 8:03 Sam James
2024-10-01 8:03 Sam James
2024-10-01 7:44 Sam James
2024-10-01 7:37 Sam James
2024-10-01 7:32 Sam James
2024-10-01 7:10 Sam James
2024-10-01 6:58 Sam James
2024-10-01 2:06 Sam James
2024-10-01 1:46 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1734432795.cae8f6ff8f9a857ba3a07371d6b2d5d8996afb5f.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox