Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917072 - games-action/prismlauncher-8.0 - error: Source option 7 is no longer supported. Use 8 or later.
Summary: games-action/prismlauncher-8.0 - error: Source option 7 is no longer supporte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thiago
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 923810 (view as bug list)
Depends on: 929118
Blocks: jdk21
  Show dependency tree
 
Reported: 2023-11-09 11:07 UTC by Toralf Förster
Modified: 2024-04-11 09:14 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.31 KB, text/plain)
2023-11-09 11:07 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,107.22 KB, application/x-xz)
2023-11-09 11:07 UTC, Toralf Förster
Details
environment (environment,159.43 KB, text/plain)
2023-11-09 11:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-11-09 11:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,33.59 KB, application/x-xz)
2023-11-09 11:07 UTC, Toralf Förster
Details
games-action:prismlauncher-8.0:20231109-110213.log (games-action:prismlauncher-8.0:20231109-110213.log,17.02 KB, text/plain)
2023-11-09 11:07 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,110.39 KB, application/x-xz)
2023-11-09 11:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,36.30 KB, application/x-xz)
2023-11-09 11:07 UTC, Toralf Förster
Details
prismlauncher-8.0-CMakeLists-java21.patch (prismlauncher-8.0-CMakeLists-java21.patch,1.51 KB, patch)
2023-11-11 11:40 UTC, Volkmar W. Pogatzki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-11-09 11:07:40 UTC
too long lines were shrinked:

[3/493] cd /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/systeminfo && /usr/bin/cmake -E cmake_autogen /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/systeminfo/CMakeFiles/systeminfo_autogen.dir/AutogenInfo.json Release
[4/493] /usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/libnbtplusplus -I/var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0/libraries/libnbtplusplus -I/var/tmp/portage/games-action/prismlauncher-8.0/work/P
[5/493] cd /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0/libraries/launcher && /usr/bin/cmake -DCMAKE_JAVA_CLASS_OUTPUT_PATH=/var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/launcher/CMakeFiles/NewLaunch.dir -DCMAKE_JAR_CLASSES_PREFIX= -
FAILED: libraries/launcher/CMakeFiles/NewLaunch.dir/java_compiled_NewLaunch /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/launcher/CMakeFiles/NewLaunch.dir/java_compiled_NewLaunch 
cd /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0/libraries/launcher && /usr/bin/cmake -DCMAKE_JAVA_CLASS_OUTPUT_PATH=/var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/launcher/CMakeFiles/NewLaunch.dir -DCMAKE_JAR_CLASSES_PREFIX= -P /usr/s
warning: [options] bootstrap class path not set in conjunction with -source 7
error: Source option 7 is no longer supported. Use 8 or later.
error: Target option 7 is no longer supported. Use 8 or later.
[6/493] cd /var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0/libraries/javacheck && /usr/bin/cmake -DCMAKE_JAVA_CLASS_OUTPUT_PATH=/var/tmp/portage/games-action/prismlauncher-8.0/work/PrismLauncher-8.0_build/libraries/javacheck/CMakeFiles/JavaCheck.dir -DCMAKE_JAR_CLASSES_PREFIX=

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-20231031-044510

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.1_p12"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 9d030323c3875c011503208747cc399769faf62a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 9 10:31:56 2023 +0000

    2023-11-09 10:31:56 UTC

emerge -qpvO games-action/prismlauncher
[ebuild  N    ] games-action/prismlauncher-8.0  USE="qt6 -debug -lto -test"
Comment 1 Toralf Förster gentoo-dev 2023-11-09 11:07:41 UTC
Created attachment 874351 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-09 11:07:42 UTC
Created attachment 874352 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-11-09 11:07:43 UTC
Created attachment 874353 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-11-09 11:07:44 UTC
Created attachment 874354 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-11-09 11:07:45 UTC
Created attachment 874355 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-09 11:07:46 UTC
Created attachment 874356 [details]
games-action:prismlauncher-8.0:20231109-110213.log
Comment 7 Toralf Förster gentoo-dev 2023-11-09 11:07:47 UTC
Created attachment 874357 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-11-09 11:07:48 UTC
Created attachment 874358 [details]
temp.tar.xz
Comment 9 Volkmar W. Pogatzki 2023-11-11 11:40:05 UTC
Created attachment 874571 [details, diff]
prismlauncher-8.0-CMakeLists-java21.patch

With the attached source patch at least is compiles.
Do not forget to inherit java-pkg-2.eclass
Comment 10 Volkmar W. Pogatzki 2023-12-30 18:30:10 UTC
Should not block java21 stabilization.
Comment 11 Alfred Wingate 2024-02-05 10:08:07 UTC
*** Bug 923810 has been marked as a duplicate of this bug. ***
Comment 12 Nowa Ammerlaan gentoo-dev 2024-03-11 21:19:56 UTC
(In reply to Volkmar W. Pogatzki from comment #9)
> Created attachment 874571 [details, diff] [details, diff]
> prismlauncher-8.0-CMakeLists-java21.patch
> 
> With the attached source patch at least is compiles.
> Do not forget to inherit java-pkg-2.eclass

Thanks! Going to apply this patch conditional to whether the openjdk compiler version is 20 or up as bumping the java version from 7 to 8 is known upstream to sometimes cause problems with older Minecraft versions or old forge versions. 

I tested myself and I can still successfully launch and play Minecraft 1.7.10 with the latest forge after applying your patch. 

I believe this is the best solution as users won't face compile failure when the system java compiler is openjdk-21, yet it is still possible to play ancient Minecraft version by choosing an older java compiler.
Comment 13 Larry the Git Cow gentoo-dev 2024-03-11 21:24:54 UTC
The bug has been referenced in the following commit(s):

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

commit 2dad9dd76c2380c45c168a447a1742240d46e1dd
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-03-11 21:23:01 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-03-11 21:24:38 +0000

    games-action/prismlauncher: add 8.2
    
    Bug: https://bugs.gentoo.org/917072
    Bug: https://bugs.gentoo.org/873142
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 games-action/prismlauncher/Manifest                |   1 +
 .../files/prismlauncher-8.2-openjdk21.patch        |  44 ++++++
 .../prismlauncher/prismlauncher-8.2.ebuild         | 166 +++++++++++++++++++++
 .../prismlauncher/prismlauncher-9999.ebuild        |  18 ++-
 4 files changed, 227 insertions(+), 2 deletions(-)
Comment 14 w.iron.zombie 2024-03-14 19:25:19 UTC
(In reply to Larry the Git Cow from comment #13)
> The bug has been referenced in the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=2dad9dd76c2380c45c168a447a1742240d46e1dd
> 
> commit 2dad9dd76c2380c45c168a447a1742240d46e1dd
> Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
> AuthorDate: 2024-03-11 21:23:01 +0000
> Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
> CommitDate: 2024-03-11 21:24:38 +0000
> 
>     games-action/prismlauncher: add 8.2
>     
>     Bug: https://bugs.gentoo.org/917072
>     Bug: https://bugs.gentoo.org/873142
>     Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
> 
>  games-action/prismlauncher/Manifest                |   1 +
>  .../files/prismlauncher-8.2-openjdk21.patch        |  44 ++++++
>  .../prismlauncher/prismlauncher-8.2.ebuild         | 166
> +++++++++++++++++++++
>  .../prismlauncher/prismlauncher-9999.ebuild        |  18 ++-
>  4 files changed, 227 insertions(+), 2 deletions(-)

broke the live ebuild as there is no patch for it
Comment 15 Larry the Git Cow gentoo-dev 2024-03-14 19:34:31 UTC
The bug has been referenced in the following commit(s):

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

commit 8f1ae9c8fa91716a9b6ca9a98f8aaa93e829dcf2
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-03-14 19:34:17 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-03-14 19:34:23 +0000

    games-action/prismlauncher: fix live
    
    Bug: https://bugs.gentoo.org/917072
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 games-action/prismlauncher/prismlauncher-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 16 Larry the Git Cow gentoo-dev 2024-04-11 09:14:16 UTC
The bug has been closed via the following commit(s):

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

commit e414156f2d87fb457934067d86dcd035fc9ffa39
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-04-11 09:07:18 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-04-11 09:13:46 +0000

    games-action/prismlauncher: drop 7.2-r1, 8.0
    
    Closes: https://bugs.gentoo.org/917072
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36212
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 games-action/prismlauncher/Manifest                |   2 -
 .../prismlauncher/prismlauncher-7.2-r1.ebuild      | 152 ---------------------
 .../prismlauncher/prismlauncher-8.0.ebuild         | 152 ---------------------
 3 files changed, 306 deletions(-)