Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723272 - net-dns/libidn-1.35 with dev-java/openjdk-11 - ./src/main/java/gnu/inet/encoding/RangeSet$1.class : no such file or directory
Summary: net-dns/libidn-1.35 with dev-java/openjdk-11 - ./src/main/java/gnu/inet/encod...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-05-15 18:19 UTC by Kenton Groombridge
Modified: 2022-06-21 22:01 UTC (History)
2 users (show)

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


Attachments
Patch to ebuild that corrects error (libidn-1.35-ebuild-jdk11.patch,448 bytes, patch)
2020-05-15 18:23 UTC, Kenton Groombridge
Details | Diff
build.log (build.log.gz,18.24 KB, application/gzip)
2020-05-15 18:26 UTC, Kenton Groombridge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2020-05-15 18:19:48 UTC
emerge --info
Portage 2.3.99 (python 3.8.3-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.1.0, glibc-2.31-r3, 5.6.13-gentoo x86_64)
=================================================================
System uname: Linux-5.6.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.2.5
KiB Mem:    16260364 total,  11112564 free
KiB Swap:   16779888 total,  16779888 free
Timestamp of repository gentoo: Thu, 14 May 2020 23:35:18 +0000
Head commit of repository gentoo: a78d886ad8834fb1c008281b1eddcfad265785af

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://192.168.1.115/portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ace
    location: /var/lib/layman/ace
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://192.168.1.115/ ftp://192.168.1.100/ ftp://192.168.1.101/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="X a52 aac aacplus acpi activities afpacket alsa alsa-plugin amd64 bbswitch berkdb binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cddb cdr cli client crypt cups dbus declarative dhcpcd dri dri3 dts dvb dvd dvdr efi efiemu elogind emboss encode evdev exif external-fuse ffmpeg flac foomatic fortran gdbm gif git gles gles2 gpm gstreamer gtk gtk3 hex hpcups hpijs hpn iconv icu ipv6 java javafx javascript jit jpeg kipi kwallet lcms ldap legacy-systray libglvnd libnotify libtirpc lightdm mad maxminddb mjpeg mng mp3 mp4 mpeg mtp multilib ncurses nfs nfsv4 nls nptl nss ntfsprogs ntp nvidia offensive ogg openal opengl openmp openssl ovftool pam pango pcap pcre pcsc-lite pdf phonon pkcs11 plasma png policykit postproc ppds prelink proprietary-codecs pulseaudio python qemu qml qt5 rar rdp readline realtime samba sdl sdl2 seccomp secure-delete semantic-desktop shm smartcard sna spell split-usr sqlite ssl startup-notification svc svg taglib tcpd theora threads tiff touchpad truetype udev udisks unicode upower usb uvm uxa v4l2 vaapi vdpau vix vnc vorbis vpx vulkan wayland widevine widgets wifi winbind wma wxwidgets x264 x265 xa xattr xcb xine xml xnest xorg xv xvid xvmc zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_8" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kenton Groombridge 2020-05-15 18:23:46 UTC
Created attachment 639390 [details, diff]
Patch to ebuild that corrects error

Probably kludgy, but the ebuild patch corrects the error.
Comment 2 Kenton Groombridge 2020-05-15 18:26:23 UTC
Created attachment 639392 [details]
build.log

Build log showing error before patching the ebuild.
Comment 3 jospezial 2020-07-14 21:06:43 UTC
The patch works to emerge the ebuild.

Why does this set 1.6 in libidn-1.35-abi_x86_64.amd64 files only?

var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/main/java/gnu/inet/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/main/java/gnu/inet/encoding/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/util/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/util/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/test/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/test/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/src/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/tld/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/reference/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/cyclo/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/specifications/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/tests/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:ac_cs_config="'--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/libidn-1.35' '--htmldir=/usr/share/doc/libidn-1.35/html' '--libdir=/usr/lib64' '--enable-java' '--enable-csharp=mono' '--enable-nls' '--disable-static' '--disable-valgrind-tests' '--with-lispdir=/usr/share/emacs/site-lisp/libidn' '--with-packager-bug-reports=https://bugs.gentoo.org' '--with-packager-version=rr0' '--with-packager=Gentoo' '--with-javac-flags=-source 1.6 -target 1.6' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -mtune=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'"
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:  set X /bin/sh '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/configure'  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/libidn-1.35' '--htmldir=/usr/share/doc/libidn-1.35/html' '--libdir=/usr/lib64' '--enable-java' '--enable-csharp=mono' '--enable-nls' '--disable-static' '--disable-valgrind-tests' '--with-lispdir=/usr/share/emacs/site-lisp/libidn' '--with-packager-bug-reports=https://bugs.gentoo.org' '--with-packager-version=rr0' '--with-packager=Gentoo' '--with-javac-flags=-source 1.6 -target 1.6' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -mtune=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' $ac_configure_extra_args --no-create --no-recursion
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:S["JAVACFLAGS"]="-source 1.6 -target 1.6"
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/csharp/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/gl/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:  $ /var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libidn-1.35 --htmldir=/usr/share/doc/libidn-1.35/html --libdir=/usr/lib64 --enable-java --enable-csharp=mono --enable-nls --disable-static --disable-valgrind-tests --with-lispdir=/usr/share/emacs/site-lisp/libidn --with-packager-bug-reports=https://bugs.gentoo.org --with-packager-version=rr0 --with-packager=Gentoo --with-javac-flags=-source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:configure:36489: /opt/openjdk-bin-11.0.7_p10/bin/javac -source 1.6 -target 1.6 Test.java
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:JAVACFLAGS='-source 1.6 -target 1.6'
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/examples/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/gltests/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/gltests/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/gl/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/fuzz/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/inet/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/inet/encoding/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/util/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/util/java/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/test/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/test/java/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/src/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/doc/tld/Makefile:JAVACFLAGS = -source 1.5 -target 1.5
/
Comment 4 jospezial 2020-07-14 21:28:30 UTC
There are also differences between the config of 32 and 64bit build:

configure: summary of build options:

  version:           1.35 shared 18:0:6
  Host type:         i686-pc-linux-gnu
  Install prefix:    /usr
  Compiler:          x86_64-pc-linux-gnu-gcc -m32
  Compiler flags:    -march=native -mtune=native -O2 -pipe
  Warning flags:     
  Library types:     Shared=yes, Static=no
  Libiconv:          yes
  Valgrind:          
  Version script:    yes
  Documentation:     yes
  TLD code:          yes
  Build Java port:   no
  Build C# port:     no
  Address Sanitizer: no
  UB Sanitizer:      no

configure: summary of build options:

  version:           1.35 shared 18:0:6
  Host type:         x86_64-pc-linux-gnu
  Install prefix:    /usr
  Compiler:          x86_64-pc-linux-gnu-gcc
  Compiler flags:    -march=native -mtune=native -O2 -pipe
  Warning flags:     
  Library types:     Shared=yes, Static=no
  Libiconv:          yes
  Valgrind:          
  Version script:    yes
  Documentation:     yes
  TLD code:          yes
  Build Java port:   yes
  Build C# port:     yes
  Address Sanitizer: no
  UB Sanitizer:      no
Comment 5 jospezial 2020-07-14 21:46:15 UTC
The setting
JAVACFLAGS = -source 1.5 -target 1.5
is created by java.eclass of the versions for virtual/jdk and virtual/jre in the ebuild.
There is version 1.8.0 and 11 in portage tree.
But it seems it only affects the 32bit build.
This happens to the Makefiles when I set this to 11:

var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/util/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/test/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java/src/test/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/src/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/tld/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/java/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/reference/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/cyclo/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/doc/specifications/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/tests/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:ac_cs_config="'--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/libidn-1.35' '--htmldir=/usr/share/doc/libidn-1.35/html' '--libdir=/usr/lib64' '--enable-java' '--enable-csharp=mono' '--enable-nls' '--disable-static' '--disable-valgrind-tests' '--with-lispdir=/usr/share/emacs/site-lisp/libidn' '--with-packager-bug-reports=https://bugs.gentoo.org' '--with-packager-version=rr0' '--with-packager=Gentoo' '--with-javac-flags=-source 1.6 -target 1.6' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -mtune=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'"
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:  set X /bin/sh '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/configure'  '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--disable-silent-rules' '--docdir=/usr/share/doc/libidn-1.35' '--htmldir=/usr/share/doc/libidn-1.35/html' '--libdir=/usr/lib64' '--enable-java' '--enable-csharp=mono' '--enable-nls' '--disable-static' '--disable-valgrind-tests' '--with-lispdir=/usr/share/emacs/site-lisp/libidn' '--with-packager-bug-reports=https://bugs.gentoo.org' '--with-packager-version=rr0' '--with-packager=Gentoo' '--with-javac-flags=-source 1.6 -target 1.6' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -mtune=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' $ac_configure_extra_args --no-create --no-recursion
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.status:S["JAVACFLAGS"]="-source 1.6 -target 1.6"
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/csharp/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/gl/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:  $ /var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libidn-1.35 --htmldir=/usr/share/doc/libidn-1.35/html --libdir=/usr/lib64 --enable-java --enable-csharp=mono --enable-nls --disable-static --disable-valgrind-tests --with-lispdir=/usr/share/emacs/site-lisp/libidn --with-packager-bug-reports=https://bugs.gentoo.org --with-packager-version=rr0 --with-packager=Gentoo --with-javac-flags=-source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:configure:36489: /opt/openjdk-bin-11.0.7_p10/bin/javac -source 1.6 -target 1.6 Test.java
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/config.log:JAVACFLAGS='-source 1.6 -target 1.6'
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/examples/Makefile:JAVACFLAGS = -source 1.6 -target 1.6
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/gltests/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/gltests/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/lib/gl/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/fuzz/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/inet/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/main/java/gnu/inet/encoding/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/util/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/util/java/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/test/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/java/src/test/java/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/src/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/doc/tld/Makefile:JAVACFLAGS = -source 11 -target 11
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_32.x86/doc/Makefile:JAVACFLAGS = -source 11 -target 11
/
Comment 6 jospezial 2020-07-14 22:25:54 UTC
I wanted to try upstream patch as user patch:
https://git.savannah.gnu.org/gitweb/?p=libidn.git;a=commit;h=d19cfa1589ae4718b9f6d67a175d6e2868e4b8b8
"Fix libidn.jar building with non-gcj."

but...

Making all in java
make[2]: Entering directory '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java'
 cd /var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35 && /bin/sh /var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/build-aux/missing automake-1.15 --gnu java/Makefile
/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/build-aux/missing: line 81: automake-1.15: command not found
WARNING: 'automake-1.15' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make[2]: *** [Makefile:1344: /var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35/java/Makefile.in] Error 127
make[2]: Leaving directory '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java'
make[1]: *** [Makefile:1495: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64'
make: *** [Makefile:1398: all] Error 2
 * ERROR: net-dns/libidn-1.35::gentoo failed (compile phase):
 *   emake failed

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

sys-devel/automake-1.13.4-r2::gentoo was built with the following:
USE="-test" ABI_X86="(64)"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
FEATURES="binpkg-logs ebuild-locks ipc-sandbox xattr merge-sync preserve-libs assume-digests userpriv binpkg-docompress userfetch fixlafiles usersandbox parallel-fetch pid-sandbox unknown-features-warn sandbox distlocks unmerge-logs unmerge-orphans ccache usersync news binpkg-dostrip multilib-strict protect-owned config-protect-if-modified network-sandbox sfperms strict"


sys-devel/automake-1.16.2::gentoo was built with the following:
USE="-test" ABI_X86="(64)"
FEATURES="strict ipc-sandbox userpriv news binpkg-logs config-protect-if-modified protect-owned ccache preserve-libs merge-sync binpkg-docompress network-sandbox userfetch multilib-strict sandbox unmerge-logs distlocks binpkg-dostrip qa-unresolved-soname-deps fixlafiles parallel-fetch ebuild-locks pid-sandbox unmerge-orphans assume-digests usersandbox sfperms unknown-features-warn xattr usersync"
Comment 7 jospezial 2020-07-14 22:58:26 UTC
(In reply to jospezial from comment #6)
> I wanted to try upstream patch as user patch:
> https://git.savannah.gnu.org/gitweb/?p=libidn.git;a=commit;
> h=d19cfa1589ae4718b9f6d67a175d6e2868e4b8b8
> "Fix libidn.jar building with non-gcj."


After emerging sys-devel/automake-1.15.1-r2:1.15::gentoo the unmodified ebuild emerges with the upstream patch.


make[3]: Entering directory '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java'
jar cf libidn-1.35.jar \
        -C ./src/main/java \
                gnu/inet/encoding/CombiningClass.class          \
        -C ./src/main/java \
                gnu/inet/encoding/Composition.class             \
        -C ./src/main/java \
                gnu/inet/encoding/DecompositionKeys.class       \
        -C ./src/main/java \
                gnu/inet/encoding/DecompositionMappings.class   \
        -C ./src/main/java \
                gnu/inet/encoding/IDNA.class                    \
        -C ./src/main/java \
                gnu/inet/encoding/IDNAException.class           \
        -C ./src/main/java \
                gnu/inet/encoding/NFKC.class                    \
        -C ./src/main/java \
                gnu/inet/encoding/Punycode.class                \
        -C ./src/main/java \
                gnu/inet/encoding/PunycodeException.class       \
        -C ./src/main/java \
                gnu/inet/encoding/RangeSet\$Builder.class       \
        -C ./src/main/java \
                gnu/inet/encoding/RangeSet\$Range.class \
        -C ./src/main/java \
                gnu/inet/encoding/RangeSet\$RangeContainsComparator.class \
        -C ./src/main/java \
                gnu/inet/encoding/RangeSet.class                \
        -C ./src/main/java \
                gnu/inet/encoding/RFC3454.class                 \
        -C ./src/main/java \
                gnu/inet/encoding/Stringprep.class              \
        -C ./src/main/java \
                gnu/inet/encoding/StringprepException.class
make[3]: Leaving directory '/var/tmp/portage/net-dns/libidn-1.35/work/libidn-1.35-abi_x86_64.amd64/java'


So the remaining question is why the java.eclass only changes the 32bit Makefiles and --with-javac-flags="-source 1.6 -target 1.6" only overrides the setting for the 64bit build.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-02 12:42:20 UTC
Thank you for the report and patch. I can tell (but not test) that libidn-1.36 does things slightly differently in java/Makefile.am, and the ChangeLog has a note about building the jar:

2020-04-28  Simon Josefsson <simon@josefsson.org>

        * java/Makefile.am: Fix libidn.jar building with non-gcj.


Could you perhaps test whether =net-dns/libidn-1.36 fixes this without having to pass special flags to javac?
Comment 9 Larry the Git Cow gentoo-dev 2022-06-21 22:01:37 UTC
The bug has been referenced in the following commit(s):

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

commit 0052d62f6f3c2bb45fca98fb1ea546b4ae67ccec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-21 21:23:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-21 22:00:20 +0000

    net-dns/libidn: add 1.40
    
    Drops mono and java support because not worth the maintenance hassle.
    
    mono-env.eclass doesn't support EAPI 8 and the Java build broke for
    some reason (think it was trivial, but...)
    
    Can restore if someone really needs them.
    
    Bug: https://bugs.gentoo.org/723272
    Closes: https://bugs.gentoo.org/804825
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/libidn/Manifest           |  2 +
 net-dns/libidn/libidn-1.40.ebuild | 89 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)