Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927028 - dev-java/openjdk-11.0.20.1_p1 requires autoconf to build
Summary: dev-java/openjdk-11.0.20.1_p1 requires autoconf to build
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 15:33 UTC by Esteve Varela Colominas
Modified: 2024-12-31 13:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,6.09 KB, text/plain)
2024-03-14 15:33 UTC, Esteve Varela Colominas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Esteve Varela Colominas 2024-03-14 15:33:39 UTC
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
Comment 1 Esteve Varela Colominas 2024-03-14 16:55:23 UTC
this applies to openjdk-17 as well, possibly openjdk-21 too.
Comment 2 Esteve Varela Colominas 2024-03-14 18:40:42 UTC
confirmed on openjdk-21 as well
Comment 3 Larry the Git Cow gentoo-dev 2024-05-17 09:28:23 UTC
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(-)
Comment 4 Volkmar W. Pogatzki 2024-12-31 12:04:40 UTC
(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.
Comment 5 Esteve Varela Colominas 2024-12-31 13:43:27 UTC
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.
Comment 6 Esteve Varela Colominas 2024-12-31 13:51:27 UTC
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...