Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855506 - emerge @world update tries to unmask dev-java/openjdk-17
Summary: emerge @world update tries to unmask dev-java/openjdk-17
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-01 09:08 UTC by Joakim Tjernlund
Modified: 2022-09-14 15:47 UTC (History)
0 users

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 Joakim Tjernlund 2022-07-01 09:08:03 UTC
Even though I have masked java:17:
dev-java/openjdk-bin:17
dev-java/openjdk:17
virtual/jdk:17
virtual/jre:17

portage insists to install java:17:
emerge -aNDuv world --backtrack=50


[ebuild  NS   #] dev-java/openjdk-17.0.3_p7:17::gentoo [8.332_p09:8::gentoo, 11.0.15_p10:11::gentoo] USE="alsa cups gentoo-vm%* jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx*) (-selinux) -source -systemtap" 0 KiB
[ebuild  rR    ] dev-util/oprofile-1.4.0::gentoo  USE="java -apidoc (-pch) -static-libs" 0 KiB
[ebuild  rR    ] dev-util/astyle-3.1-r2:0/3.1::gentoo  USE="java -examples -static-libs" 0 KiB
[nomerge       ] sci-visualization/gnuplot-5.4.3::gentoo  USE="X cairo gd qt5 readline wxwidgets (-aqua) -bitmap -doc -examples -ggi -latex -libcaca -libcerf -lua -regis" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4" 
[nomerge       ]  x11-libs/gtk+-3.24.34:3::gentoo  USE="X cups introspection xinerama (-aqua) -broadway -colord -examples -gtk-doc -sysprof -test -vim-syntax -wayland" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]   x11-libs/gdk-pixbuf-2.42.8:2::gentoo  USE="introspection jpeg tiff -gtk-doc" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]    media-libs/tiff-4.4.0::gentoo  USE="cxx jpeg zlib -jbig -lzma -static-libs -test -verify-sig -webp -zstd" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]     media-libs/libjpeg-turbo-2.1.3:0/0.2::gentoo  USE="java static-libs" ABI_X86="(64) -32 (-x32)" 
[ebuild  NS   #]      virtual/jre-17:17::gentoo [1.8.0-r3:1.8::gentoo, 11-r2:11::gentoo] 0 KiB
[ebuild  NS   #]       virtual/jdk-17:17::gentoo [1.8.0-r6:1.8::gentoo, 11-r2:11::gentoo] USE="-headless-awt" 0 KiB

Total: 5 packages (3 in new slots, 2 reinstalls), Size of downloads: 0 KiB

 * Error: circular dependencies:

(dev-java/openjdk-17.0.3_p7:17/17::gentoo, ebuild scheduled for merge) depends on
 (dev-java/openjdk-17.0.3_p7:17/17::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by virtual/jdk-17::gentoo
# required by dev-util/oprofile-1.4.0::gentoo[java]
# required by @__auto_slot_operator_replace_installed__ (argument)
# /var/lib/layman/transmode/profiles/gentoo64-common/package.mask:
=dev-java/openjdk-17.0.3_p7

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

The only way I can build anything is to add --exclude virtual/jre:17 --exclude virtual/jdk:17 to the emerge cmd.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-01 09:16:04 UTC
What happens if you do --autounmask=n? It'll likely give us better output.
Comment 2 Volkmar W. Pogatzki 2022-07-01 09:48:53 UTC
According to https://wiki.gentoo.org/wiki/Java_Developer_Guide#Using_java-ant-2.eclass the ebuild should have

>=virtual/jre-1.8:* in RDEPEND
>=virtual/jdk-1.8:* in DEPEND, not in BDEPEND.
Comment 3 Volkmar W. Pogatzki 2022-07-01 09:51:13 UTC
(In reply to Volkmar W. Pogatzki from comment #2)
> According to
> https://wiki.gentoo.org/wiki/Java_Developer_Guide#Using_java-ant-2.eclass
> the ebuild should have
> [...]
Sorry, wanted to say
According to
https://wiki.gentoo.org/wiki/Java_Developer_Guide#Using_java-pkg-opt-2.eclass
Comment 4 Joakim Tjernlund 2022-07-01 11:33:37 UTC
(In reply to Volkmar W. Pogatzki from comment #3)
> (In reply to Volkmar W. Pogatzki from comment #2)
> > According to
> > https://wiki.gentoo.org/wiki/Java_Developer_Guide#Using_java-ant-2.eclass
> > the ebuild should have
> > [...]
> Sorry, wanted to say
> According to
> https://wiki.gentoo.org/wiki/Java_Developer_Guide#Using_java-pkg-opt-2.eclass

What ebuild is not following the rules ?
Comment 5 Joakim Tjernlund 2022-07-01 11:38:11 UTC
(In reply to Sam James from comment #1)
> What happens if you do --autounmask=n? It'll likely give us better output.

emerge -aNDuv world --backtrack=50 --autounmask=n
 * --autounmask-continue has been disabled by --autounmask=n

and then no more
Comment 6 Mike Gilbert gentoo-dev 2022-07-01 22:46:50 UTC
(In reply to Joakim Tjernlund from comment #5)

There should be more output from emerge after that. Try again.
Comment 7 Mike Gilbert gentoo-dev 2022-07-01 22:56:25 UTC
media-libs/libjpeg-turbo has the following dependency:

java? ( >=virtual/jdk-1.8:*[-headless-awt] )

Do you have the "headless-awt" USE flag enabled for any of the following packages? 

virtual/jdk
dev-java/icedtea
dev-java/icedtea-bin
dev-java/openjdk
dev-java/openjdk-bin
Comment 8 Joakim Tjernlund 2022-07-02 08:19:42 UTC
(In reply to Mike Gilbert from comment #7)
> media-libs/libjpeg-turbo has the following dependency:
> 
> java? ( >=virtual/jdk-1.8:*[-headless-awt] )
> 
> Do you have the "headless-awt" USE flag enabled for any of the following
> packages? 
> 
> virtual/jdk
> dev-java/icedtea
> dev-java/icedtea-bin
> dev-java/openjdk
> dev-java/openjdk-bin

No headless-awt USE enabled for these
Comment 9 Joakim Tjernlund 2022-07-02 08:23:37 UTC
(In reply to Mike Gilbert from comment #6)
> (In reply to Joakim Tjernlund from comment #5)
> 
> There should be more output from emerge after that. Try again.

EMERGE_DEFAULT_OPTS="" emerge -aNDuv world --backtrack=50 --autounmask=n
This action requires superuser access...
Would you like to add --pretend to options? [Yes/No] yes

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] sys-devel/gettext-0.21-r3::gentoo [0.21-r2::gentoo] USE="acl cxx emacs java ncurses nls openmp -cvs -doc -git -static-libs -verify-sig" ABI_X86="32 (64) (-x32)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

dev-python/docutils:0

  (dev-python/docutils-0.18.1-r1:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_8 (-pypy3) -python3_10 (-python3_11) -python3_9" conflicts with
    <dev-python/docutils-0.18[python_targets_python3_8(-)] required by (dev-python/sphinx-4.5.0-r1-1:0/0::gentoo, installed) USE="-doc -latex -test" ABI_X86="(64)" PYTHON_TARGETS="python3_8 (-pypy3) -python3_10 (-python3_11) -python3_9"
    ^                    ^^^^                             
    <dev-python/docutils-0.18[python_targets_python3_8(-)] required by (dev-python/sphinx_rtd_theme-1.0.0-1:0/0::gentoo, installed) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_8 (-pypy3) -python3_10 -python3_9"
    ^                    ^^^^                             

mate-base/mate-desktop:0

  (mate-base/mate-desktop-1.26.0-r1:0/0::gentoo, ebuild scheduled for merge) USE="X introspection startup-notification -debug" ABI_X86="(64)" conflicts with
    =mate-base/mate-desktop-1.24* required by (mate-base/mate-1.24:0/0::gentoo, installed) USE="base bluetooth extras notification themes -help" ABI_X86="(64)"
    ^                       ^^^^^

mate-base/mate-session-manager:0

  (mate-base/mate-session-manager-1.26.0:0/0::gentoo, ebuild scheduled for merge) USE="elogind gles2 ipv6 nls xtrans -debug -gnome-keyring -systemd" ABI_X86="(64)" conflicts with
    =mate-base/mate-session-manager-1.24* required by (mate-base/mate-1.24:0/0::gentoo, installed) USE="base bluetooth extras notification themes -help" ABI_X86="(64)"
    ^                               ^^^^^

mate-base/caja:0

  (mate-base/caja-1.26.0:0/0::gentoo, ebuild scheduled for merge) USE="introspection mate nls -xmp" ABI_X86="(64)" conflicts with
    =mate-base/caja-1.24* required by (mate-base/mate-1.24:0/0::gentoo, installed) USE="base bluetooth extras notification themes -help" ABI_X86="(64)"
    ^               ^^^^^

x11-themes/mate-icon-theme:0

  (x11-themes/mate-icon-theme-1.26.0:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)" conflicts with
    =x11-themes/mate-icon-theme-1.24* required by (mate-base/mate-1.24:0/0::gentoo, installed) USE="base bluetooth extras notification themes -help" ABI_X86="(64)"
Comment 10 Joakim Tjernlund 2022-07-02 08:46:37 UTC
FYI, I do have openjdk:8 and :11 installed:

eix -I openjdk
[I] dev-java/openjdk
     Available versions:  
     (8)    8.332_p09{xpak}
     (11)   11.0.15_p10{xpak}
     (17)   [M]17.0.3_p7
       {alsa big-endian cups debug doc examples +gentoo-vm headless-awt javafx +jbootstrap selinux source system-bootstrap systemtap}
     Installed versions:  8.332_p09(8){xpak}(01:03:00 12/05/22)(alsa cups javafx jbootstrap -debug -doc -examples -headless-awt -selinux -source) 11.0.15_p10(11){xpak}(12:07:01 11/06/22)(alsa cups javafx jbootstrap system-bootstrap -big-endian -debug -doc -examples -headless-awt -selinux -source -systemtap)
     Homepage:            https://openjdk.java.net
     Description:         Open source implementation of the Java programming language
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-02 14:10:39 UTC
Seems really odd to me it gets that confused with autounmask. It still happens now?

(The gettext change which got committed might mask the problem).

The naughty ebuild is oprofile fwiw.
Comment 12 Mike Gilbert gentoo-dev 2022-07-02 14:10:47 UTC
Comment 3 seems to be referring to dev-util/oprofile.

If you unmerge dev-util/oprofile, does that fix the problem?
Comment 13 Joakim Tjernlund 2022-07-02 15:29:52 UTC
I unmerged oprofile but that didn't help:
emerge -aNDuv world 


[ebuild  NS   #] dev-java/openjdk-17.0.3_p7:17::gentoo [8.332_p09:8::gentoo, 11.0.15_p10:11::gentoo] USE="alsa cups gentoo-vm%* jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx*) (-selinux) -source -systemtap" 0 KiB
[ebuild  rR    ] dev-util/astyle-3.1-r2:0/3.1::gentoo  USE="java -examples -static-libs" 0 KiB
[nomerge       ] x11-misc/sddm-0.18.1-r6::gentoo  USE="elogind pam -systemd -test" 
[nomerge       ]  dev-qt/qtgui-5.15.5:5/5.15.5::gentoo  USE="X accessibility dbus egl gif jpeg libinput png udev vnc vulkan -debug -eglfs -evdev -gles2-only -ibus -linuxfb -test -tslib -tuio -wayland" 
[nomerge       ]   dev-qt/qtnetwork-5.15.5:5/5.15::gentoo  USE="gssapi networkmanager ssl -connman -debug -libproxy -sctp -test" 
[nomerge       ]    net-misc/networkmanager-1.38.2::gentoo  USE="bluetooth concheck dhclient elogind gtk-doc introspection modemmanager nss policykit ppp resolvconf tools vala wext wifi -audit -connection-sharing -debug -dhcpcd -gnutls -iptables -iwd -libedit -lto -nftables -ofono -ovs -psl (-selinux) -syslog -systemd -teamd -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]     net-dialup/ppp-2.4.9-r8:0/2.4.9::gentoo  USE="eap-tls gtk ipv6 pam -activefilter -atm -dhcp -radius -systemd" 
[nomerge       ]      x11-libs/gtk+-2.24.33:2::gentoo  USE="cups introspection xinerama (-aqua) -examples -test -vim-syntax" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]       x11-themes/adwaita-icon-theme-42.0_p2::gentoo  USE="branding" 
[nomerge       ]        gnome-base/librsvg-2.54.3:2::gentoo  USE="introspection vala -gtk-doc" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]         x11-libs/pango-1.50.7::gentoo  USE="X introspection -debug -sysprof -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]          media-libs/harfbuzz-4.2.1:0/4.0.0::gentoo  USE="cairo glib graphite icu introspection truetype -debug -doc -experimental -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]           media-gfx/graphite2-1.3.14_p20210810-r1::gentoo  USE="-perl -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]            dev-util/cmake-3.22.4::gentoo  USE="emacs ncurses qt5 -doc -test" 
[nomerge       ]             dev-qt/qtwidgets-5.15.5:5/5.15::gentoo  USE="X dbus gtk png -debug -gles2-only -test" 
[nomerge       ]              x11-libs/gtk+-3.24.34:3::gentoo  USE="X cups introspection xinerama (-aqua) -broadway -colord -examples -gtk-doc -sysprof -test -vim-syntax -wayland" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]               x11-libs/gdk-pixbuf-2.42.8:2::gentoo  USE="introspection jpeg tiff -gtk-doc" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]                media-libs/tiff-4.4.0::gentoo  USE="cxx jpeg zlib -jbig -lzma -static-libs -test -verify-sig -webp -zstd" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]                 media-libs/libjpeg-turbo-2.1.3:0/0.2::gentoo  USE="java static-libs" ABI_X86="(64) -32 (-x32)" 
[ebuild  NS   #]                  virtual/jre-17:17::gentoo [1.8.0-r3:1.8::gentoo, 11-r2:11::gentoo] 0 KiB
[ebuild  NS   #]                   virtual/jdk-17:17::gentoo [1.8.0-r6:1.8::gentoo, 11-r2:11::gentoo] USE="-headless-awt" 0 KiB
Comment 14 Joakim Tjernlund 2022-07-02 15:44:41 UTC
Uninstalled astyle as well but didn't help:
emerge -aNDuv world 


[ebuild  NS   #] dev-java/openjdk-17.0.3_p7:17::gentoo [8.332_p09:8::gentoo, 11.0.15_p10:11::gentoo] USE="alsa cups gentoo-vm%* jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx*) (-selinux) -source -systemtap" 0 KiB
[nomerge       ] x11-misc/sddm-0.18.1-r6::gentoo  USE="elogind pam -systemd -test" 
[nomerge       ]  dev-qt/qtgui-5.15.5:5/5.15.5::gentoo  USE="X accessibility dbus egl gif jpeg libinput png udev vnc vulkan -debug -eglfs -evdev -gles2-only -ibus -linuxfb -test -tslib -tuio -wayland" 
[nomerge       ]   dev-qt/qtnetwork-5.15.5:5/5.15::gentoo  USE="gssapi networkmanager ssl -connman -debug -libproxy -sctp -test" 
[nomerge       ]    net-misc/networkmanager-1.38.2::gentoo  USE="bluetooth concheck dhclient elogind gtk-doc introspection modemmanager nss policykit ppp resolvconf tools vala wext wifi -audit -connection-sharing -debug -dhcpcd -gnutls -iptables -iwd -libedit -lto -nftables -ofono -ovs -psl (-selinux) -syslog -systemd -teamd -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]     net-dialup/ppp-2.4.9-r8:0/2.4.9::gentoo  USE="eap-tls gtk ipv6 pam -activefilter -atm -dhcp -radius -systemd" 
[nomerge       ]      x11-libs/gtk+-2.24.33:2::gentoo  USE="cups introspection xinerama (-aqua) -examples -test -vim-syntax" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]       x11-themes/adwaita-icon-theme-42.0_p2::gentoo  USE="branding" 
[nomerge       ]        gnome-base/librsvg-2.54.3:2::gentoo  USE="introspection vala -gtk-doc" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]         x11-libs/pango-1.50.7::gentoo  USE="X introspection -debug -sysprof -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]          media-libs/harfbuzz-4.2.1:0/4.0.0::gentoo  USE="cairo glib graphite icu introspection truetype -debug -doc -experimental -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]           media-gfx/graphite2-1.3.14_p20210810-r1::gentoo  USE="-perl -test" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]            dev-util/cmake-3.22.4::gentoo  USE="emacs ncurses qt5 -doc -test" 
[nomerge       ]             dev-qt/qtwidgets-5.15.5:5/5.15::gentoo  USE="X dbus gtk png -debug -gles2-only -test" 
[nomerge       ]              x11-libs/gtk+-3.24.34:3::gentoo  USE="X cups introspection xinerama (-aqua) -broadway -colord -examples -gtk-doc -sysprof -test -vim-syntax -wayland" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]               x11-libs/gdk-pixbuf-2.42.8:2::gentoo  USE="introspection jpeg tiff -gtk-doc" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]                media-libs/tiff-4.4.0::gentoo  USE="cxx jpeg zlib -jbig -lzma -static-libs -test -verify-sig -webp -zstd" ABI_X86="(64) -32 (-x32)" 
[nomerge       ]                 media-libs/libjpeg-turbo-2.1.3:0/0.2::gentoo  USE="java static-libs" ABI_X86="(64) -32 (-x32)" 
[ebuild  NS   #]                  virtual/jre-17:17::gentoo [1.8.0-r3:1.8::gentoo, 11-r2:11::gentoo] 0 KiB
[ebuild  NS   #]                   virtual/jdk-17:17::gentoo [1.8.0-r6:1.8::gentoo, 11-r2:11::gentoo] USE="-headless-awt" 0 KiB
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-02 15:50:06 UTC
That list makes a bit more sense at least as it's not trying to do rebuilds.
Comment 16 Joakim Tjernlund 2022-07-05 19:57:05 UTC
tested some more odd things but no progress. Is there nothing I can do to find out what is casing this?
Comment 17 Joakim Tjernlund 2022-08-16 12:29:37 UTC
Got a clue, using --autounmask-keep-masks works(will not pull in jdk-17 then)

portageq envvar EMERGE_DEFAULT_OPTS
--verbose-conflicts --autounmask-write --autounmask  --autounmask-continue --rebuilt-binaries --with-bdeps=y --quiet --jobs=3 --keep-going --usepkg --usepkg-exclude 'sys-firmware/hpuefi-mod app-emulation/virtualbox-modules app-emulation/virtualbox-guest-additions'
Comment 18 Joakim Tjernlund 2022-09-14 15:47:42 UTC
I found an unmask of virtual/jre and virtual/jdk lying around, removing those
fixed the problem. User error ...