Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822612 - dev-java/openjdk-11.0.13_p8: jdk.tools.jlink.plugin.PluginException: /java.desktop/legal/java.desktop/mesa3d.md /javafx.graphics/legal/javafx.graphics/mesa3d.md contain different content
Summary: dev-java/openjdk-11.0.13_p8: jdk.tools.jlink.plugin.PluginException: /java.de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
: 823784 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-09 08:58 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2021-11-18 04:43 UTC (History)
11 users (show)

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


Attachments
build.log.xz (build.log.xz,293.82 KB, application/x-xz)
2021-11-09 08:58 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
patch for mesa3d.md differences issue (javafx.patch,342 bytes, patch)
2021-11-11 10:45 UTC, Benjamin Réveillé
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-11-09 08:58:10 UTC
Created attachment 749811 [details]
build.log.xz

Creating jdk image
/bin/rm -f -r /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/images/jdk
( /bin/rm -f /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/images/jdk.log && /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build
/linux-x86_64-normal-server-release/jdk/bin/jlink -J-Djlink.debug=true --module-path /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/images/jmods --endian little --rele
ase-info /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/jdk/release --order-resources=**module-info.class,@/var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev
-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/link_opt/classlist,/java.base/java/**,/java.base/jdk/**,/java.base/sun/**,/java.base/com/**,/jdk.localedata/** --dedup-legal-notices=error-if-not-same-content --generate-jl
i-classes=@/var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/link_opt/default_jli_trace.txt --add-modules javafx.base,javafx.controls,javafx.fxml,javafx.graphics,
javafx.media,javafx.swing,javafx.web,java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.securi
ty.jgss,java.security.sasl,java.smartcardio,java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto,javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web,jdk.accessibility,jdk.aot,jdk.
attach,jdk.charsets,jdk.compiler,jdk.crypto.cryptoki,jdk.crypto.ec,jdk.dynalink,jdk.editpad,jdk.hotspot.agent,jdk.httpserver,jdk.internal.ed,jdk.internal.jvmstat,jdk.internal.le,jdk.internal.opt,jdk.internal.vm.ci,jdk.internal.vm.compile
r,jdk.internal.vm.compiler.management,jdk.jartool,jdk.javadoc,jdk.jcmd,jdk.jconsole,jdk.jdeps,jdk.jdi,jdk.jdwp.agent,jdk.jfr,jdk.jlink,jdk.jshell,jdk.jsobject,jdk.jstatd,jdk.localedata,jdk.management,jdk.management.agent,jdk.management.j
fr,jdk.naming.dns,jdk.naming.ldap,jdk.naming.rmi,jdk.net,jdk.pack,jdk.rmic,jdk.scripting.nashorn,jdk.scripting.nashorn.shell,jdk.sctp,jdk.security.auth,jdk.security.jgss,jdk.unsupported,jdk.unsupported.desktop,jdk.xml.dom,jdk.zipfs --kee
p-packaged-modules /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/images/jdk/jmods --output /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga
/build/linux-x86_64-normal-server-release/images/jdk > >(/usr/bin/tee -a /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/images/jdk.log) 2> >(/usr/bin/tee -a /v
ar/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/images/jdk.log >&2) || ( exitcode=$? && /bin/cp /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-1
1.0.13-ga/build/linux-x86_64-normal-server-release/support/images/jdk.log /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/make-support/failure-logs/support_images_jdk.l
og && /bin/cp /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/images/jdk.cmdline /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/bui
ld/linux-x86_64-normal-server-release/make-support/failure-logs/support_images_jdk.cmdline && exit $exitcode ) )
Plugin dedup-legal-notices threw exception during transform
jdk.tools.jlink.plugin.PluginException: /java.desktop/legal/java.desktop/mesa3d.md /javafx.graphics/legal/javafx.graphics/mesa3d.md contain different content
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.dedupLegalNoticeEntry(LegalNoticeFilePlugin.java:127)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.transform(LegalNoticeFilePlugin.java:94)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:274)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:182)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:161)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:851)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:206)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:408)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:272)
        at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
        at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)
jdk.tools.jlink.plugin.PluginException: /java.desktop/legal/java.desktop/mesa3d.md /javafx.graphics/legal/javafx.graphics/mesa3d.md contain different content
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.dedupLegalNoticeEntry(LegalNoticeFilePlugin.java:127)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.transform(LegalNoticeFilePlugin.java:94)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:274)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:182)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:161)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:851)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:206)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:408)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:272)
        at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
        at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)
Error: /java.desktop/legal/java.desktop/mesa3d.md /javafx.graphics/legal/javafx.graphics/mesa3d.md contain different content
jdk.tools.jlink.plugin.PluginException: /java.desktop/legal/java.desktop/mesa3d.md /javafx.graphics/legal/javafx.graphics/mesa3d.md contain different content
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.dedupLegalNoticeEntry(LegalNoticeFilePlugin.java:127)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
        at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at jdk.jlink/jdk.tools.jlink.internal.plugins.LegalNoticeFilePlugin.transform(LegalNoticeFilePlugin.java:94)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.visitResources(ImagePluginStack.java:274)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.generateJImage(ImageFileCreator.java:182)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.writeImage(ImageFileCreator.java:161)
        at jdk.jlink/jdk.tools.jlink.internal.ImageFileCreator.create(ImageFileCreator.java:100)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(JlinkTask.java:851)
        at jdk.jlink/jdk.tools.jlink.internal.ImagePluginStack.operate(ImagePluginStack.java:206)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:408)
        at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:272)
        at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:54)
        at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:33)
gmake[3]: *** [Images.gmk:95: /var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/images/jdk/bin/java] Error 1
gmake[3]: Leaving directory '/var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga/make'
gmake[2]: *** [make/Main.gmk:390: jdk-image] Error 2
gmake[2]: Leaving directory '/var/tmp/portage/dev-java/openjdk-11.0.13_p8/work/jdk11u-dev-jdk-11.0.13-ga'

ERROR: Build failed for target 'bootcycle-images' in configuration 'linux-x86_64-normal-server-release' (exit code 2)
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-11-09 08:58:16 UTC
# emerge --info dev-java/openjdk
Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.15.1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.1-x86_64-AMD_Opteron-tm-_Processor_6328-with-glibc2.33
KiB Mem:   131958944 total,  74557124 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 09 Nov 2021 07:00:01 +0000
Head commit of repository gentoo: 0d0831c4b691c9bb0863183e7a7b0e141109bfdc
Timestamp of repository poly-c: Tue, 09 Nov 2021 08:05:02 +0000
sh dash 0.5.11.5
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          2.7.18_p13::poly-c, 3.9.8::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/cmake:           3.22.0_rc2::gentoo
sys-apps/baselayout:      2.8::poly-c
sys-apps/openrc:          0.44.7::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.254/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --new-compress
    sync-rsync-verify-max-age: 24

poly-c
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n --fuzzy-search=n --dynamic-deps=n --changed-deps-report=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
INSTALL_MASK="/etc/systemd /home/ftp /lib/systemd /lib64/systemd /usr/lib/systemd /usr/lib64/systemd /etc/init.d/functions.sh /usr/lib/modules-load.d/virtualbox.conf /etc/inittab.d /etc/modules-load.d/fwupd*"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de de@1901 en"
MAKEOPTS="-j16"
PKGDIR="/opt/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--new-compress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac aacs acl acpi activities alsa amd64 bluetooth bluray branding brotli bzip2 c++0x cairo caps cdda cdr cli crypt css cups dbus declarative dri dts dvd dvdr elogind emboss encode exif faac ffmpeg flac gcrypt gdbm gif gmp gnutls gstreamer gtk gui iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi kwallet lame lcms libcanberra libglvnd libnotify libtirpc linguas_de lto lzma mac mad matroska midi mmap mmx mmxext mng mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin numa ogg openal opencl opengl openmp opus pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 quicktime readline rtmp sdl seccomp slang speex spell split-usr srt sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx vulkan webp widgets wxwidgets x264 x265 xattr xcb xinerama xml xv xvid xvmc zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="access_compat alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers http2 include info log_config mime mime_magic rewrite socache_shmcb status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

dev-java/openjdk-11.0.12_p7::gentoo was built with the following:
USE="alsa cups -debug -doc -examples (-gentoo-vm) -headless-awt javafx jbootstrap pch (-selinux) -source -systemtap" ABI_X86="(64)"
CFLAGS="-march=native -mtune=native -O2 -pipe -fcommon"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fcommon"
Comment 2 Joakim Tjernlund 2021-11-09 09:41:40 UTC
I diffed mesa3d.md files in the the build tree and seems to be trivial differences:

diff -u ./jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/configure-support/import-modules/modules_legal/javafx.graphics/mesa3d.md ./jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/modules_legal/java.desktop/mesa3d.md
--- ./jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/configure-support/import-modules/modules_legal/javafx.graphics/mesa3d.md	2021-10-07 18:50:08.000000000 +0200
+++ ./jdk11u-dev-jdk-11.0.13-ga/build/linux-x86_64-normal-server-release/support/modules_legal/java.desktop/mesa3d.md	2021-11-09 10:18:36.002576482 +0100
@@ -1,4 +1,4 @@
-## Mesa 3-D Graphics Library v19.2.1
+## Mesa 3-D Graphics Library v21.0.3
 
 ### Mesa License
Comment 3 Georgy Yakovlev archtester gentoo-dev 2021-11-09 10:06:03 UTC
I need to bump javafx but short on time, that will probably solve it.
Comment 4 Joakim Tjernlund 2021-11-09 11:14:37 UTC
(In reply to Georgy Yakovlev from comment #3)
> I need to bump javafx but short on time, that will probably solve it.

Really? Does JavaFX version need to match dues to license issues?
Comment 5 Alex Barker 2021-11-09 17:07:51 UTC
(In reply to Georgy Yakovlev from comment #3)
> I need to bump javafx but short on time, that will probably solve it.

building with USE=-javafx does work around the issue.
Comment 6 Joakim Tjernlund 2021-11-09 17:10:25 UTC
(In reply to Alex Barker from comment #5)
> (In reply to Georgy Yakovlev from comment #3)
> > I need to bump javafx but short on time, that will probably solve it.
> 
> building with USE=-javafx does work around the issue.

Maybe the fix is as simple as deleting the 
  ## Mesa 3-D Graphics Library xxxx
line in both files?
Comment 7 Benjamin Réveillé 2021-11-11 10:45:53 UTC
Created attachment 750333 [details, diff]
patch for mesa3d.md differences issue

Works when dropped in /etc/portage/patches/dev-java/openjdk-11.0.13_p8/

Did it this way as src/java.desktop/share/legal/mesa3d.md is the only one available at pacth time...
Comment 8 Red 2021-11-11 21:21:13 UTC
Same problem here and the patch works for me
Comment 9 Joakim Tjernlund 2021-11-11 22:44:37 UTC
(In reply to Benjamin Réveillé from comment #7)
> Created attachment 750333 [details, diff] [details, diff]
> patch for mesa3d.md differences issue
> 
> Works when dropped in /etc/portage/patches/dev-java/openjdk-11.0.13_p8/
> 
> Did it this way as src/java.desktop/share/legal/mesa3d.md is the only one
> available at pacth time...

This only works because current openjfx has:
cat /usr/lib64/openjfx-11/legal/javafx.graphics/mesa3d.md
## Mesa 3-D Graphics Library v19.2.1

### Mesa License
...

As soon openjfx is upgraded it breaks again.

I think this license check should be patched away, if that is "legally" possible.
If not, the line should be deleted in both openjdk and openjfx so one
actually just compares the license text.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 11:53:24 UTC
*** Bug 823784 has been marked as a duplicate of this bug. ***
Comment 11 Joakim Tjernlund 2021-11-16 14:12:18 UTC
LEGAL_EXCLUDES=mesa3d.md ebuild .../openjdk-... worked for me
Comment 12 Georgy Yakovlev archtester gentoo-dev 2021-11-18 04:25:17 UTC
thanks for finding LEGAL_EXCLUDES
will add shortly, looks benign for our use-case.
Comment 13 Larry the Git Cow gentoo-dev 2021-11-18 04:42:33 UTC
The bug has been closed via the following commit(s):

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

commit f64e08a7c84bd2ccd1611f7b845e5138e815bbd5
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-11-18 04:10:58 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-11-18 04:39:06 +0000

    dev-java/openjdk: fix build failure with USE=javafx
    
    Closes: https://bugs.gentoo.org/822612
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/openjdk-11.0.13_p8.ebuild | 5 +++++
 1 file changed, 5 insertions(+)
Comment 14 Georgy Yakovlev archtester gentoo-dev 2021-11-18 04:43:00 UTC
tested to work with new openjfx-11.0.11