Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924945 - dev-java/openjdk: cannot build on x86 without dev-java/icedtea-bin
Summary: dev-java/openjdk: cannot build on x86 without dev-java/icedtea-bin
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-02-18 19:18 UTC by David Flogeras
Modified: 2024-04-14 05:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2024-02-18 19:18:04 UTC
If you do not already have a jdk installed, you cannot emerge openjdk since on x86 the -bin variants are not available.

I think icedtea-bin was the only remaining binary to bootstrap java on x86.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-19 02:58:28 UTC
That's a good reason to keep icedtea-bin around for now.
Comment 2 Larry the Git Cow gentoo-dev 2024-02-19 09:03:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a029d81c27090909a109a3349fe7b8e3e83bbc8

commit 3a029d81c27090909a109a3349fe7b8e3e83bbc8
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-02-19 08:14:37 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-02-19 09:03:12 +0000

    dev-java/openjdk: re-add dev-java/icedtea-bin
    
    Closes: https://bugs.gentoo.org/924945
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/35421
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../openjdk/{openjdk-8.382_p05-r1.ebuild => openjdk-8.382_p05-r2.ebuild} | 1 +
 1 file changed, 1 insertion(+)

Additionally, it has been referenced in the following commit(s):

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

commit ca368abe6eb1af863793cc159780d279d391379a
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-02-19 08:10:53 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-02-19 09:03:11 +0000

    virtual/jdk: re-add dev-java/icedtea-bin
    
    Bug: https://bugs.gentoo.org/924945
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 virtual/jdk/{jdk-1.8.0-r7.ebuild => jdk-1.8.0-r8.ebuild} | 1 +
 1 file changed, 1 insertion(+)

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

commit c75dc8a3278096459ed73e2bae27441175efb8e4
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-02-19 07:42:32 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-02-19 09:03:07 +0000

    profiles: do not last rite dev-java/icedtea-bin
    
    Bug: https://bugs.gentoo.org/924945
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 profiles/package.mask | 1 -
 1 file changed, 1 deletion(-)
Comment 3 Andrew John Hughes 2024-03-27 01:47:22 UTC
There is an Adoptium x86 binary for 8u:

https://adoptium.net/temurin/releases/?arch=x86&version=8

so it should be possible to add this to dev-java/openjdk-bin and then drop dev-java/icedtea-bin.

At the very least, dev-java/icedtea-bin should be x86 only and have a warning that it needs to be replaced by an up-to-date JDK built from source. The current dev-java/icedtea-bin is older than even dev-java/icedtea and so subject to multiple CVEs.
Comment 4 Volkmar W. Pogatzki 2024-03-27 10:07:28 UTC
(In reply to Andrew John Hughes from comment #3)
> There is an Adoptium x86 binary for 8u:
> 
> https://adoptium.net/temurin/releases/?arch=x86&version=8
> [...]

seems to be x86 but windows only. How could we use it for Linux?
Comment 5 Andrew John Hughes 2024-03-27 12:59:06 UTC
(In reply to Volkmar W. Pogatzki from comment #4)
> (In reply to Andrew John Hughes from comment #3)
> > There is an Adoptium x86 binary for 8u:
> > 
> > https://adoptium.net/temurin/releases/?arch=x86&version=8
> > [...]
> 
> seems to be x86 but windows only. How could we use it for Linux?

Sorry, I didn't realise it had switched me over from Linux to 'any'.

It looks like Azul are the only vendor to offer x86_32 Linux:

https://adoptium.net/marketplace/?arch=x86&version=8
https://www.azul.com/downloads/?version=java-8-lts&os=linux&architecture=x86-32-bit&package=jdk#zulu

I don't know if that's worth a try.
Comment 6 Volkmar W. Pogatzki 2024-04-07 19:09:51 UTC
This commit should allow building openjdk:8 on x86 without icedtea-bin:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d12dc30217085d3a6605b85e5d7a2a26be81ea7c
Comment 7 Volkmar W. Pogatzki 2024-04-07 19:32:25 UTC
(In reply to Volkmar W. Pogatzki from comment #6)
> This commit should allow building openjdk:8 on x86 without icedtea-bin:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=d12dc30217085d3a6605b85e5d7a2a26be81ea7c

x86 team: could you pls verify that it works? thanks.