Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749846 - dev-java/hamcrest-generator-1.3-r1: error: Source option 5 is no longer supported.
Summary: dev-java/hamcrest-generator-1.3-r1: error: Source option 5 is no longer suppo...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-18 01:08 UTC by Anton Bolshakov
Modified: 2022-05-01 16:00 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,4.61 KB, text/x-log)
2020-10-19 09:29 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2020-10-18 01:08:20 UTC
>>> Jobs: 6 of 9 complete, 1 failed                 Load avg: 1.92, 0.96, 0.69
 * Package:    dev-java/hamcrest-generator-1.3-r1
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using: openjdk-bin-11
>>> Unpacking source...
>>> Unpacking hamcrest-1.3.tgz to /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work
>>> Source unpacked in /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3 ...
 * Applying hamcrest-generator-1.3-no_jarjar.patch ...
 [ ok ]
removed './hamcrest-library-1.3.jar'
removed './hamcrest-library-1.3-sources.jar'
removed './hamcrest-library-1.3-javadoc.jar'
removed './hamcrest-integration-1.3.jar'
removed './hamcrest-integration-1.3-sources.jar'
removed './hamcrest-integration-1.3-javadoc.jar'
removed './hamcrest-generator-1.3.jar'
removed './hamcrest-generator-1.3-sources.jar'
removed './hamcrest-generator-1.3-javadoc.jar'
removed './hamcrest-core-1.3.jar'
removed './hamcrest-core-1.3-sources.jar'
removed './hamcrest-core-1.3-javadoc.jar'
removed './hamcrest-all-1.3.jar'
removed './hamcrest-all-1.3-sources.jar'
removed './hamcrest-all-1.3-javadoc.jar'
removed './lib/sources/testng-6.5.2-sources.jar'
removed './lib/sources/qdox-1.12-sources.jar'
removed './lib/integration/testng-6.5.2.jar'
removed './lib/integration/junit-dep-4.10.jar'
removed './lib/integration/junit-3.8.1.jar'
removed './lib/integration/jmock-1.10RC1.jar'
removed './lib/integration/easymock-2.2.jar'
removed './lib/generator/qdox-1.12.jar'
removed './lib/generator/jarjar-1.3.jar'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3 ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3 ...
 * Disabling all optional ANT_TASKS
Warning: Unable to determine tools.jar location.
  If build fails because sun.* classes could not be found,
  Make sure you are using a JDK, not JRE as your user/system VM.
  and that you have java-config version 2.0.30 or above installed.
Buildfile: /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build.xml

generator:
    [mkdir] Created dir: /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.manifest
    [mkdir] Created dir: /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.contents
    [javac] Compiling 11 source files to /var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.contents
    [javac] error: Source option 5 is no longer supported. Use 6 or later.
    [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED
/var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build.xml:16: The following error occurred while executing this line:
/var/tmp/portage/dev-java/hamcrest-generator-1.3-r1/work/hamcrest-1.3/build.xml:244: Compile failed; see the compiler error output for details.

----------------------
eselect java-vm list
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

----------------------


emerge --info
Portage 3.0.8 (python 3.7.8-final-0, default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.31-r6, 5.7.16-pentoo x86_64)
=================================================================
System uname: Linux-5.7.16-pentoo-x86_64-Intel-R-_Core-TM-_i5-3320M_CPU_@_2.60GHz-with-gentoo-2.7
KiB Mem:     7968396 total,   1109972 free
KiB Swap:    4194300 total,   4194272 free
Timestamp of repository gentoo: Sat, 17 Oct 2020 00:15:01 +0000
Head commit of repository gentoo: 2a81c67c8f8f2e7bbfeaf8fe68a236d3698e5d71
Head commit of repository pentoo: fcd8cc1405813a69f3b7545dfb01f31b7d9ca81f

Head commit of repository steam-overlay: 32f27e07e540110458c069965e8e027d7350fbd8

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.7.8-r2::gentoo, 3.8.5::gentoo
dev-util/cmake:           3.17.4-r1::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.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.asia.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

local-overlay
    location: /var/db/overlays/local
    masters: gentoo
    priority: 0

pentoo
    location: /var/db/overlays/pentoo-overlay
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay
    masters: gentoo

steam-overlay
    location: /var/db/overlays/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
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 -frecord-gcc-switches -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -frecord-gcc-switches -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirror.rise.ph/gentoo/"
INSTALL_MASK="*.la"
LANG="en_SG.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LINGUAS="en ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="https://pentoo.emjay-embedded.co.uk/Packages/amd64-hardened/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times"
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"
Comment 1 Anton Bolshakov 2020-10-18 01:13:32 UTC
it compiles fine with jdk-8:

emerge dev-java/openjdk-bin:8
eselect java-vm set system openjdk-bin-8

The fix should be similar to:
https://bugs.gentoo.org/745804
Comment 2 Larry the Git Cow gentoo-dev 2020-10-19 07:10:14 UTC
The bug has been closed via the following commit(s):

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

commit c391898579be71b89d885b52e02321986118d977
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-10-19 07:08:14 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-10-19 07:10:09 +0000

    dev-java/hamcrest-generator: increased min java version to 1.8
    
    Closes: https://bugs.gentoo.org/749846
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 ...est-generator-1.3-r1.ebuild => hamcrest-generator-1.3-r2.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 3 Anton Bolshakov 2020-10-19 07:50:35 UTC
Just by looking at the changes, I don't think this fix is sufficient.
I'm able to build with =virtual/jdk-8, but it fails with jdk-11.

The new requirement >=virtual/jdk-1.8 does not fix jdk-11 problem
Comment 4 Miroslav Šulc gentoo-dev 2020-10-19 07:53:23 UTC
it does not fail for me with jdk 11. i suppose you hit a different issue but can't tell for sure without your build log.
Comment 5 Anton Bolshakov 2020-10-19 09:29:04 UTC
Created attachment 666701 [details]
build.log

dev-java/hamcrest-core-1.3 log
Comment 6 Anton Bolshakov 2020-10-19 09:30:22 UTC
I synced and try to reproduce, however hit a similar message on a different package, dev-java/hamcrest-core-1.3 this time.

Do let me know if I can provide more details
Comment 7 Miroslav Šulc gentoo-dev 2020-10-19 09:34:54 UTC
this is enough for me, thanks, will fix it
Comment 8 Larry the Git Cow gentoo-dev 2020-10-19 09:39:06 UTC
The bug has been closed via the following commit(s):

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

commit 5a4de0cb8a5a2c58023c58167b14996352461dda
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-10-19 09:38:48 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-10-19 09:39:00 +0000

    dev-java/hamcrest-core: increased min java version to 1.8
    
    Closes: https://bugs.gentoo.org/749846
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../{hamcrest-core-1.1-r1.ebuild => hamcrest-core-1.1-r3.ebuild}  | 6 +++---
 .../{hamcrest-core-1.3.ebuild => hamcrest-core-1.3-r1.ebuild}     | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
Comment 9 Anton Bolshakov 2020-10-19 09:45:38 UTC
great, thanks a lot!
Comment 10 jospezial 2020-10-29 16:50:17 UTC
 RDEPEND="
-	>=virtual/jre-1.6"
+	>=virtual/jre-1.8"
 
 DEPEND="
-	>=virtual/jdk-1.6
+	virtual/jdk:1.8
 	source? ( app-arch/zip )"
 
The ">=" is gone at virtual/jdk:1.8

Causes:
[ebuild  N     ]  dev-java/hamcrest-core-1.1-r3::gentoo  USE="-doc -source" 1.219 KiB
[ebuild  NS    ]   virtual/jdk-1.8.0-r5:1.8::gentoo [11-r1:11::gentoo] 0 KiB
[ebuild  NS    ]    dev-java/openjdk-bin-8.272_p10:8::gentoo [11.0.9_p11:11::gentoo] USE="alsa cups -examples% -headless-awt (-selinux) -source (-gentoo-vm%*)" 101.222 KiB
Comment 11 Volkmar W. Pogatzki 2022-05-01 16:00:41 UTC
Revision -r1 has gone. Closing.