Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946645 - dev-lang/ada-bootstrap-14: keyword on ~loong
Summary: dev-lang/ada-bootstrap-14: keyword on ~loong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux ADA team
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks: 940472
  Show dependency tree
 
Reported: 2024-12-18 23:18 UTC by Sam James
Modified: 2025-01-10 04:21 UTC (History)
3 users (show)

See Also:
Package list:
=dev-lang/ada-bootstrap-14 ~loong
Runtime testing required: Manual
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-18 23:18:15 UTC
Please test this manually:
1) add '=dev-lang/ada-bootstrap-14 **' to package.accept_keywords
2) add 'sys-devel/gcc -ada' to profile/package.use.mask
3) add 'sys-devel/gcc ada' to package.use
4) emerge -v1 sys-devel/gcc:14 # should pull in ada-bootstrap and then build with ada

If it succeeds, please keyword. If not, logs please ;)

Thanks!
Comment 1 NATTkA bot gentoo-dev Security 2024-12-18 23:20:11 UTC
Unable to check for sanity:

> package masked: dev-lang/ada-bootstrap-14, by keywords: -loong
Comment 2 WANG Xuerui gentoo-dev 2025-01-05 07:58:59 UTC
dev-lang/ada-bootstrap binaries work fine, but emerge of sys-devel/gcc:14[ada] fails due to circular deps:

> [nomerge       ] sys-devel/gcc-14.2.1_p20241221:14::gentoo  USE="ada* (cxx) d (default-stack-clash-protection) (default-znow) fortran graphite* jit* modula2* nls openmp (pie) rust ssp zstd (-cet) (-custom-cflags) -debug (-doc) (-fixed-point) -go -hardened (-ieee-long-double) (-libssp) -lto (-multilib) -objc -objc+ -objc-gc (-pch) -pgo (-sanitize) -systemtap -test (-time64) (-valgrind) -vanilla (-vtv)" 
> [ebuild  NS    ]  sys-devel/gcc-13.3.1_p20241220:13::gentoo [14.2.1_p20241221:14::gentoo] USE="ada* (cxx) d (default-stack-clash-protection) (default-znow) fortran graphite* jit* modula2* nls openmp (pie) ssp zstd (-cet) (-custom-cflags) -debug (-doc) (-fixed-point) -go -hardened (-ieee-long-double) (-libssp) -lto (-multilib) -objc -objc++ -objc-gc (-pch) -pgo (-sanitize) -systemtap -test (-valgrind) -vanilla (-vtv) (-rust%*) (-time64%)" 82,568 KiB
> [nomerge       ] gnome-extra/gnome-browser-connector-42.1-r1::gentoo  PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11" 
> [nomerge       ]  gnome-base/gnome-shell-46.7::gentoo  USE="ibus pipewire systemd (-elogind) -gtk-doc -networkmanager -test" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13" 
> [nomerge       ]   dev-libs/gjs-1.80.2::gentoo  USE="cairo readline -examples (-sysprof) -test" 
> [nomerge       ]    dev-lang/spidermonkey-115.16.0-r1:115::gentoo  USE="clang jit lto -debug -test" LLVM_SLOT="18" 
> [nomerge       ]     dev-lang/rust-bin-1.81.0-r101:1.81.0::gentoo  USE="clippy rust-analyzer rust-src rustfmt verify-sig (-big-endian) (-doc) (-llvm-libunwin) (-prefix)" LLVM_SLOT="(18)" 
> [ebuild   R    ]      sys-devel/gcc-14.2.1_p20241221:14::gentoo  USE="ada* (cxx) d (default-stack-clash-protection) (default-znow) fortran graphite* jit* modula2* nls openmp (pie) rust ssp zstd (-cet) (-custom-cflags) -debug (-doc) (-fixed-point) -go -hardened (-ieee-long-double) (-libssp) -lto (-multilib) -objc -objc++ -objc-gc (-pch) -pgo (-sanitize) -systemtap -test (-time64) (-valgrind) -vanilla (-vtv)" 0 KiB
> 
> Total: 2 packages (1 in new slot, 1 reinstall), Size of downloads: 82,568 KiB

This is likely due to we having to prefer the sys-devel/gcc[ada] dep over the ada-bootstrap dep, which is a fallback; it seems Portage didn't exhaustively search all possible deps here before bailing out, but I don't have time to dig deeper or to fix it myself.

I'm able to manually emerge the version by directly invoking "ebuild" though.
Comment 3 Larry the Git Cow gentoo-dev 2025-01-05 08:42:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a218e4b085113b47bab3e78a569134baa73b449

commit 5a218e4b085113b47bab3e78a569134baa73b449
Author:     WANG Xuerui <xen0n@gentoo.org>
AuthorDate: 2025-01-05 06:23:52 +0000
Commit:     WANG Xuerui <xen0n@gentoo.org>
CommitDate: 2025-01-05 08:42:29 +0000

    dev-lang/ada-bootstrap: keyword 14 for ~loong
    
    Passes gcc:14 bootstrap albeit plain `emerge` of sys-devel/gcc:14
    with USE=ada failed with circular dep (not trying to satisfy the
    BDEPEND with dev-lang/ada-bootstrap at all before bailing). Direct
    `ebuild` invocation worked.
    
    Bug: https://bugs.gentoo.org/946645
    Signed-off-by: WANG Xuerui <xen0n@gentoo.org>

 dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-05 22:41:53 UTC
This is my fault for bad instructions...

Try this:
1) add '=dev-lang/ada-bootstrap-14 **' to package.accept_keywords
2) add '>=sys-devel/gcc-14 -ada' to profile/package.use.mask
3) add '>=sys-devel/gcc-14 ada' to package.use
4) emerge -v1 sys-devel/gcc:14 # should pull in ada-bootstrap and then build with ada
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-10 04:16:49 UTC
Ah, I'd missed that you confirmed bootstrap of 14 is OK in the commit message, so let me unmask. Thanks!
Comment 6 Larry the Git Cow gentoo-dev 2025-01-10 04:21:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f3baaa744c47de00d8aba54aa36846bc9174ac5

commit 8f3baaa744c47de00d8aba54aa36846bc9174ac5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-10 04:20:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-10 04:20:27 +0000

    profiles/arch/loong: ada-bootstrap is available here now
    
    * Unmask >=sys-devel/gcc-14[ada]
    * Adjust ADA_TARGETS masks + defaults accordingly
    
    Closes: https://bugs.gentoo.org/946645
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/loong/make.defaults    | 8 +++++++-
 profiles/arch/loong/package.use.mask | 4 ++++
 profiles/arch/loong/use.mask         | 6 ++++++
 3 files changed, 17 insertions(+), 1 deletion(-)