Created attachment 887648 [details] build log Runnable configure script is not present Generating runnable configure script at /var/tmp/portage/dev-java/openjdk-11.0.20.1_p1/work/jdk11u-jdk-11.0.20.1-ga/build/.configure-support/generated-configure.sh Autoconf is not found on the PATH, and AUTOCONF is not set. You need autoconf to be able to generate a runnable configure script. Error: Cannot find autoconf
this applies to openjdk-17 as well, possibly openjdk-21 too.
confirmed on openjdk-21 as well
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d57754cd3fe53161d876a8043ec720ed7f0f1d3d commit d57754cd3fe53161d876a8043ec720ed7f0f1d3d Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2024-05-15 21:13:52 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2024-05-17 09:28:04 +0000 dev-java/openjdk: drop 11.0.22_p7 Bug: https://bugs.gentoo.org/925020 Bug: https://bugs.gentoo.org/916211 Bug: https://bugs.gentoo.org/898978 Bug: https://bugs.gentoo.org/833096 Bug: https://bugs.gentoo.org/907680 Bug: https://bugs.gentoo.org/677876 Bug: https://bugs.gentoo.org/927028 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/36690 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/openjdk/Manifest | 1 - dev-java/openjdk/openjdk-11.0.22_p7.ebuild | 312 ----------------------------- 2 files changed, 313 deletions(-)
(In reply to Esteve Varela Colominas from comment #0) > Created attachment 887648 [details] > build log > > Runnable configure script is not present > Generating runnable configure script at > /var/tmp/portage/dev-java/openjdk-11.0.20.1_p1/work/jdk11u-jdk-11.0.20.1-ga/ > build/.configure-support/generated-configure.sh > > Autoconf is not found on the PATH, and AUTOCONF is not set. > You need autoconf to be able to generate a runnable configure script. > Error: Cannot find autoconf I cannot reproduce that errors. Pls provide the procedure how to reproduce it.
emerge -c --with-bdeps=n emerge -o --buildpkg=y dev-java/openjdk emerge -c --with-bdeps=n emerge -o --usepkg=y dev-java/openjdk ebuild $(portageq get_repo_path / gentoo)/dev-java/openjdk/openjdk-21.0.5_p11-r1.ebuild clean merge Something like that. Autoconf is part of @system if you enable bdeps, but if you don't, there's no guarantee that it's present during build. Autoconf should be in dev-java/openjdk's BDEPEND, or the "autotools" eclass should be inherited.
Replace those last two commands with: emerge -1 --with-bdeps=n --usepkg=y dev-java/openjdk This command will not build openjdk if it's already built, which is annoying, but if you remove it from your binary cache and run "emaint binhost -f" it will... portage doesn't have good commands to reproduce missing bdepends yet...