I have a vps running aarch64 on which I am running gentoo. When trying to emerge dev-java/openjdk it wants to pull in X dependencies even though I have the headless-awt use flag set
Here is the output of emerge --ask --verbose dev-java/openjdk
Code: Select all
gentoo /etc/portage # emerge --ask --verbose dev-java/openjdk
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] media-libs/giflib-5.2.1-r1:0/7::gentoo USE="-doc -static-libs" 434 KiB
[ebuild N ] acct-group/lpadmin-0-r1::gentoo 0 KiB
[ebuild N ] app-text/poppler-data-0.4.10::gentoo 4,393 KiB
[ebuild N ] media-libs/alsa-topology-conf-1.2.4::gentoo 12 KiB
[ebuild N ] media-libs/alsa-ucm-conf-1.2.4::gentoo 20 KiB
[ebuild N ] x11-base/xorg-proto-2021.5::gentoo USE="-test" 1,107 KiB
[ebuild N ] media-libs/lcms-2.12:2::gentoo USE="threads zlib -doc -jpeg -static-libs -test -tiff" 7,246 KiB
[ebuild N ] app-text/libpaper-1.1.28::gentoo 42 KiB
[ebuild N ] media-libs/tiff-4.3.0::gentoo USE="cxx zlib -jbig -jpeg -lzma -static-libs -test -webp -zstd" 2,743 KiB
[ebuild N ] app-arch/zip-3.0-r4::gentoo USE="bzip2 crypt (unicode) -natspec" 1,258 KiB
[ebuild N ] media-libs/alsa-lib-1.2.4::gentoo USE="thread-safety -alisp -debug -doc -python" PYTHON_SINGLE_TARGET="python3_9 -python3_8" 1,020 KiB
[ebuild N ] app-crypt/libmd-1.0.3-r2::gentoo 253 KiB
[ebuild N ] media-libs/jbig2dec-0.19:0/0.19::gentoo USE="-png -static-libs -test" 146 KiB
[ebuild N ] net-dns/libidn-1.38-r1:0/12::gentoo USE="nls -doc -emacs -java (-mono) -verify-sig" 2,619 KiB
[ebuild N ] app-arch/rpm2targz-2021.03.16::gentoo 7 KiB
[ebuild N ] media-libs/libjpeg-turbo-2.1.1-r2:0/0.2::gentoo USE="-java -static-libs" CPU_FLAGS_ARM="(-neon)" 2,218 KiB
[ebuild N ] x11-libs/xtrans-1.4.0::gentoo USE="-doc" 182 KiB
[ebuild N ] virtual/jpeg-100::gentoo USE="-static-libs" 0 KiB
[ebuild N ] dev-libs/libbsd-0.11.3::gentoo USE="-static-libs" 391 KiB
[ebuild N ] media-libs/openjpeg-2.4.0:2/7::gentoo USE="-doc -static-libs -test" 2,181 KiB
[ebuild N ] x11-libs/libXau-1.0.9-r1::gentoo USE="-doc" 316 KiB
[ebuild N ] x11-base/xcb-proto-1.14.1::gentoo PYTHON_TARGETS="python3_9 -python3_8 (-python3_10)" 141 KiB
[ebuild N ] media-fonts/urw-fonts-2.4.9::gentoo USE="-X" 3,124 KiB
[ebuild N ] x11-libs/libICE-1.0.10::gentoo USE="ipv6" 384 KiB
[ebuild N ] x11-libs/libXdmcp-1.1.3::gentoo USE="-doc" 325 KiB
[ebuild N ] app-text/poppler-21.11.0:0/115::gentoo USE="cxx introspection jpeg jpeg2k lcms utils -boost -cairo -cjk -curl -debug -doc -nss -png -qt5 -tiff" 1,742 KiB
[ebuild N ] app-text/qpdf-10.3.2:0/28::gentoo USE="ssl -doc -examples -test" 18,500 KiB
[ebuild N ] x11-libs/libxcb-1.14:0/1.12::gentoo USE="xkb -doc (-selinux) -test" 430 KiB
[ebuild N ] x11-libs/libSM-1.2.3-r1::gentoo USE="ipv6 uuid -doc" 355 KiB
[ebuild N ] x11-misc/compose-tables-1.7.2-r1::gentoo 2,337 KiB
[ebuild N ] x11-libs/libX11-1.7.2::gentoo USE="ipv6 -doc -test" 0 KiB
[ebuild N ] x11-libs/libXext-1.3.4::gentoo USE="-doc" 380 KiB
[ebuild N ] x11-libs/libXrender-0.9.10-r2::gentoo 302 KiB
[ebuild N ] x11-libs/libXt-1.2.1::gentoo USE="-doc -test" 767 KiB
[ebuild N ] x11-libs/libXfixes-6.0.0::gentoo USE="-doc" 291 KiB
[ebuild N ] x11-libs/libXi-1.8::gentoo USE="-doc" 483 KiB
[ebuild N ] x11-libs/libXrandr-1.5.2::gentoo USE="-doc" 323 KiB
[ebuild N ] x11-libs/libXtst-1.2.3-r2::gentoo USE="-doc" 315 KiB
[ebuild N ] net-print/cups-2.3.3_p2-r3::gentoo USE="acl dbus ssl systemd threads -X -debug -kerberos -pam (-selinux) -static-libs -usb -xinetd -zeroconf" 7,806 KiB
[ebuild N ] app-text/ghostscript-gpl-9.54.0-r1:0/9.54::gentoo USE="cups dbus jpeg2k (unicode) -X -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 54,692 KiB
[ebuild N ] net-print/cups-filters-1.28.10-r1::gentoo USE="dbus foomatic postscript -jpeg -ldap -pclm -pdf -perl -png -test -tiff -zeroconf" 1,469 KiB
[ebuild N ~] dev-java/openjdk-17.0.1_p12:17::gentoo USE="gentoo-vm headless-awt -alsa -cups -debug -doc -examples (-javafx) -jbootstrap -pch (-selinux) -source -systemtap" 102,147 KiB
Code: Select all
#gentooLTO
NTHREADS="auto"
source /etc/portage/make.conf.lto
#gentooLTO says this speeds things up
CMAKE_MAKEFILE_GENERATOR=ninja
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O3 -pipe"
MAKEOPTS="-j4"
#gentooLTO
CFLAGS="-march=native ${CFLAGS} -pipe"
CXXFLAGS="${CFLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
USE="-X -gnome -gtk -kde -qt5 -alsa -bindist -pam -X -pch dbus ipv6"
CPU_FLAGS_ARM="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2"
GRUB_PLATFORMS="efi-arm64"
ACCEPT_LICENSE="*"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="aarch64-unknown-linux-gnu"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
GENTOO_MIRRORS="https://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ rsync://ftp.belnet.be/gentoo/gentoo/ https://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/ rsync://mirror.leaseweb.com/gentoo/ https://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo rsync://ftp.snt.utwente.nl/gentoo"
Code: Select all
sys-devel/gcc graphite
net-misc/openssh hpn ssl
#make java headless and recognized by system
dev-java/openjdk gentoo-vm headless-awt -jbootstrap -X -awt -gtk
dev-java/openjdk-bin headless-awt
# required by net-print/cups-filters-1.28.10-r1::gentoo[postscript]
# required by net-print/cups-2.3.3_p2-r3::gentoo
# required by dev-java/openjdk-17.0.1_p12::gentoo
# required by dev-java/openjdk (argument)
>=app-text/ghostscript-gpl-9.54.0-r1 cups
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


