Please set java-runtime=17
and java-environment=17
or this package won't be built.
See also: https://github.com/PrismLauncher/PrismLauncher/pull/1013
Search Criteria
Package Details: prismlauncher 8.3-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/prismlauncher.git (read-only, click to copy) |
---|---|
Package Base: | prismlauncher |
Description: | Minecraft launcher with ability to manage multiple instances. |
Upstream URL: | https://prismlauncher.org |
Licenses: | GPL3 |
Submitter: | Scrumplex |
Maintainer: | Scrumplex (txtsd, g3tchoo) |
Last Packager: | g3tchoo |
Votes: | 152 |
Popularity: | 9.87 |
First Submitted: | 2022-10-18 06:42 (UTC) |
Last Updated: | 2024-04-23 18:37 (UTC) |
Dependencies (23)
- cmark (cmark-gitAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- java-runtime (jre10AUR, jre12AUR, server-jreAUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdgAUR, jre16-openjdkAUR, jre14-openjdkAUR, amazon-corretto-18AUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdkAUR, jdk-android-studioAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jre19-openjdkAUR, jre-openj9AUR, jdk11-graalvm-ee-binAUR, jre12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, amazon-corretto-20-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk20-graalvm-ee-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jre13-openjdkAUR, jre15-openjdkAUR, jdk21-graalvm-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, mandrel-binAUR, jdk17-openj9-binAUR, jdk8AUR, jre8AUR, jdk17-zulu-prime-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jre17-jetbrainsAUR, jre-jetbrainsAUR, jre21-jetbrainsAUR, jre21-jetbrains-gitAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk8-perfAUR, zulu-jdk-fx-binAUR, jdk8-openj9-binAUR, zulu-jre-fx-binAUR, jdk-temurinAUR, amazon-corretto-22-binAUR, jdk22-graalvm-binAUR, zing-8-binAUR, zing-21-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, zulu-21-binAUR, zulu-8-binAUR, zulu-11-binAUR, zulu-17-binAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk8-temurinAUR, jreAUR, jdkAUR, jre-ltsAUR, jre17AUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre11-openjdk, jre17-openjdk, jre21-openjdk, jre8-openjdk)
- libgl (nvidia-340xx-utilsAUR, amdgpu-pro-oglpAUR, libglvnd-gitAUR, libglvnd)
- qt6-5compat
- qt6-base (qt6-base-gitAUR, qt6-base-headlessAUR)
- qt6-imageformats
- qt6-svg
- quazip-qt6
- tomlplusplus
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compatAUR)
- cmake (cmake-gitAUR) (make)
- extra-cmake-modules (extra-cmake-modules-gitAUR) (make)
- gamemode (gamemode-gitAUR) (make)
- ghc-filesystem (make)
- git (git-gitAUR) (make)
- jdk17-openjdk (jdk17-temurinAUR) (make)
- scdoc (scdoc-gitAUR) (make)
- glfw (glfw-gitAUR, glfw-wayland-minecraftAUR, glfw-wayland-minecraft-libdecorationAUR, glfw-wayland-minecraft-cursorfixAUR) (optional) – to use system GLFW libraries
- java-runtime (jre10AUR, jre12AUR, server-jreAUR, jdk10AUR, jdk10-openj9-binAUR, jdk7AUR, jre7AUR, amazon-corretto-16AUR, jdk8-graalvm-binAUR, jdk16-graalvm-binAUR, jdk16-adoptopenjdkAUR, jdk8-armAUR, liberica-jre-11-binAUR, jdk11-j9-binAUR, jre11-jbr-xdgAUR, jre16-openjdkAUR, jre14-openjdkAUR, amazon-corretto-18AUR, jre15AUR, jre14AUR, jre13AUR, jre16AUR, jre18-openjdkAUR, jdk-android-studioAUR, amazon-corretto-19-binAUR, jdk19-graalvm-binAUR, liberica-jre-11-full-binAUR, jdk19-graalvm-ee-binAUR, jdk13-openjdk-binAUR, liberica-jre-8-full-binAUR, jdk11-graalvm-binAUR, jre19-openjdkAUR, jre-openj9AUR, jdk11-graalvm-ee-binAUR, jre12-openjdkAUR, jdk11-dragonwell-standard-binAUR, jdk11-jetbrains-binAUR, jdk20-graalvm-binAUR, jdk17-graalvm-binAUR, jdk8-graalvm-ee-binAUR, amazon-corretto-20-binAUR, zulu-15-binAUR, jdk20-openj9-binAUR, zulu-13-binAUR, jdk8-dragonwell-extended-binAUR, jdk8-dragonwell-standard-binAUR, jdk11-dragonwell-extended-binAUR, jdk17-dragonwell-standard-binAUR, jdk20-graalvm-ee-binAUR, jre11AUR, jdk8-j9-binAUR, jdk7-j9-binAUR, jdk7r1-j9-binAUR, jdk8-dragonwell-extendedAUR, jre13-openjdkAUR, jre15-openjdkAUR, jdk21-graalvm-binAUR, liberica-jdk-17-full-binAUR, liberica-jdk-11-binAUR, liberica-jdk-11-full-binAUR, liberica-jdk-11-lite-binAUR, mandrel-binAUR, jdk17-openj9-binAUR, jdk8AUR, jre8AUR, jdk17-zulu-prime-binAUR, jdk-openj9-binAUR, jdk11-openj9-binAUR, jre17-jetbrainsAUR, jre-jetbrainsAUR, jre21-jetbrainsAUR, jre21-jetbrains-gitAUR, jre-openjdk-wakefieldAUR, jdk-openjdk-wakefieldAUR, jdk8-perfAUR, zulu-jdk-fx-binAUR, jdk8-openj9-binAUR, zulu-jre-fx-binAUR, jdk-temurinAUR, amazon-corretto-22-binAUR, jdk22-graalvm-binAUR, zing-8-binAUR, zing-21-binAUR, amazon-corretto-17AUR, amazon-corretto-21-binAUR, java-openjdk-binAUR, liberica-jdk-full-binAUR, liberica-jdk-21-full-binAUR, liberica-jdk-8-full-binAUR, zulu-21-binAUR, zulu-8-binAUR, zulu-11-binAUR, zulu-17-binAUR, jdk21-temurinAUR, jdk17-temurinAUR, jdk11-temurinAUR, amazon-corretto-8AUR, amazon-corretto-11AUR, jdk8-temurinAUR, jreAUR, jdkAUR, jre-ltsAUR, jre17AUR, microsoft-openjdk-11-binAUR, microsoft-openjdk-17-binAUR, microsoft-openjdk-21-binAUR, jdk17-graalvm-ee-binAUR, jdk21-graalvm-ee-binAUR, jdk22-graalvm-ee-binAUR, jdk21-jetbrains-binAUR, jdk17-jetbrains-binAUR, java-openjdk-ea-binAUR, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk21-openjdk, jre-openjdk, jre11-openjdk, jre17-openjdk, jre21-openjdk, jre8-openjdk) (optional) – for older minecraft versions
- Show 3 more dependencies...
Required by (2)
- launcher-curseforge-bin (optional)
- prismlauncher-themes-git (optional)
Sources (1)
ZhangHua commented on 2023-06-10 01:45 (UTC)
hsantanna commented on 2023-06-04 01:43 (UTC)
This package currently wont build if archlinux-java is set to java-20-openjdk.
jaxad0127 commented on 2023-04-25 13:36 (UTC)
I'm having a strange build issue with this package. The Task test is being killed. The Qt5 package compiles fine on the same machine.
12/16 Testing: Task 12/16 Test: Task Command: "/tmp/pkgbuild/prismlauncher/src/PrismLauncher-6.3/build/Task" Directory: /tmp/pkgbuild/prismlauncher/src/PrismLauncher-6.3/build/tests "Task" start time: Apr 23 22:24 MDT Output: ---------------------------------------------------------- ********* Start testing of TaskTest ********* Config: Using QtTest library 6.4.3, Qt 6.4.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 12.2.1 20230201), arch unknown PASS : TaskTest::initTestCase() PASS : TaskTest::test_SetStatus_NoMultiStep() PASS : TaskTest::test_SetStatus_MultiStep() PASS : TaskTest::test_SetProgress() QDEBUG : TaskTest::test_basicRun() Task "BasicTask(0x7ffd04c21a10)" starting for the first time QDEBUG : TaskTest::test_basicRun() Task "BasicTask(0x7ffd04c21a10)" succeeded PASS : TaskTest::test_basicRun() QDEBUG : TaskTest::test_basicConcurrentRun() Task "ConcurrentTask(0x7ffd04c21990)" starting for the first time QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21810)" starting for the first time QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21810)" succeeded QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21910)" starting for the first time QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21910)" succeeded QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21890)" starting for the first time QDEBUG : TaskTest::test_basicConcurrentRun() Task "BasicTask(0x7ffd04c21890)" succeeded QDEBUG : TaskTest::test_basicConcurrentRun() Task "ConcurrentTask(0x7ffd04c21990)" succeeded PASS : TaskTest::test_basicConcurrentRun() QDEBUG : TaskTest::test_moreConcurrentRun() Task "ConcurrentTask(0x7ffd04c21990)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21510)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21510)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21610)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21610)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21710)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21710)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21810)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21810)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21910)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21910)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21890)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21890)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21790)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21790)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21690)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21690)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21590)" starting for the first time QDEBUG : TaskTest::test_moreConcurrentRun() Task "BasicTask(0x7ffd04c21590)" succeeded QDEBUG : TaskTest::test_moreConcurrentRun() Task "ConcurrentTask(0x7ffd04c21990)" succeeded PASS : TaskTest::test_moreConcurrentRun() QDEBUG : TaskTest::test_basicSequentialRun() Task "SequentialTask(0x7ffd04c21990)" starting for the first time QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21810)" starting for the first time QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21810)" succeeded QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21890)" starting for the first time QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21890)" succeeded QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21910)" starting for the first time QDEBUG : TaskTest::test_basicSequentialRun() Task "BasicTask(0x7ffd04c21910)" succeeded QDEBUG : TaskTest::test_basicSequentialRun() Task "SequentialTask(0x7ffd04c21990)" succeeded PASS : TaskTest::test_basicSequentialRun() QDEBUG : TaskTest::test_basicMultipleOptionsRun() Task "MultipleOptionsTask(0x7ffd04c21990)" starting for the first time QDEBUG : TaskTest::test_basicMultipleOptionsRun() Task "BasicTask(0x7ffd04c21810)" starting for the first time QDEBUG : TaskTest::test_basicMultipleOptionsRun() Task "BasicTask(0x7ffd04c21810)" succeeded QDEBUG : TaskTest::test_basicMultipleOptionsRun() Task "MultipleOptionsTask(0x7ffd04c21990)" succeeded PASS : TaskTest::test_basicMultipleOptionsRun() QDEBUG : TaskTest::test_stackOverflowInConcurrentTask() Task "BigConcurrentTask(0x5633171226f0)" starting for the first time QDEBUG : TaskTest::test_stackOverflowInConcurrentTask() Task "BigConcurrentTask(0x5633171226f0)" succeeded QFATAL : TaskTest::test_stackOverflowInConcurrentTask() QThread: Destroyed while thread is still running FAIL! : TaskTest::test_stackOverflowInConcurrentTask() Received a fatal error. Totals: 9 passed, 1 failed, 0 skipped, 0 blacklisted, 272ms ********* Finished testing of TaskTest ********* Received signal 6 (SIGABRT) test_stackOverflowInConcurrentTask function time: 202ms, total time: 273ms <end of output> Test time = 0.96 sec ---------------------------------------------------------- Test Failed. "Task" end time: Apr 23 22:24 MDT "Task" time elapsed: 00:00:00 ----------------------------------------------------------
trainzkid commented on 2023-04-13 03:17 (UTC)
Not here to bully @Scrumplex or anything, but I agree that the java issue needs to be more obvious, either to the Arch Linux team themselves, or in this package, as I ran into the exact same issue @ohoes brought up.
Something like a warning when installing might help (unless there already is one and I missed it?). Just my 2 cents.
Do other java-related packages handle this differently or is modded minecraft unique in the way it utilizes java?
ohoes commented on 2023-01-31 19:12 (UTC)
I understand, thanks for your quick reply. I had already figured it out myself, but maybe that's not the case with everyone. It looks like the problem lies within Arch itself then, and apparently we can only make it clear this way.
Scrumplex commented on 2023-01-31 16:59 (UTC) (edited on 2023-01-31 16:59 (UTC) by Scrumplex)
okoes: This is actually an issue with how Arch Linux handles the default Java Environment.
We can only really add java-environment
as a dependency. But this does not guarantee that the environment is actually in PATH
.
Simple example:
Assuming you only have jre8-openjdk
and jre17-openjdk
installed and java --version
reveals that Java 8 is the default runtime, this PKGBUILD would ask you to install a package that provides java-environment
. Pacman will ask you to select one of the countless jdk<version>-openjdk
packages. Now if you select jdk17-openjdk
this build will fail, as the default environment is Java 8 (confirm with java --version
). So our newly installed JDK is not in PATH
. To fix this, you could either install the right JDK for the right JRE, or switch your default runtime using sudo archlinux-java set java-17-openjdk
.
ohoes commented on 2023-01-31 16:54 (UTC) (edited on 2023-01-31 16:55 (UTC) by ohoes)
@Scrumplex Dependencies are not well worked out in my opinion, I could not build the package because I was missing Java Development Kit, in this case specifically version 8 (jdk8). This could be indicated more clearly, because you cannot build the package because of this, and it is vaguely indicated by Java itself. This is also the case with the git version.
HurricanePootis commented on 2022-10-18 18:57 (UTC)
diff --git a/PKGBUILD b/PKGBUILD
index cb26141..b6c3f6a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ pkgver=1.4.2
pkgrel=1
pkgdesc="Minecraft launcher with ability to manage multiple instances."
arch=('i686' 'x86_64')
-url="https://github.com/PlaceholderMC/PlaceholderMC"
+url="https://github.com/Prismlauncher/Prismlauncher"
license=('GPL3')
depends=('java-runtime' 'libgl' 'qt6-base' 'qt6-5compat' 'qt6-svg' 'qt6-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt6')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'java-environment' 'scdoc')
@@ -20,15 +20,23 @@ optdepends=('glfw: to use system GLFW libraries'
'openal: to use system OpenAL libraries'
'visualvm: Profiling support'
'xorg-xrandr: for older minecraft versions')
-source=("https://github.com/PlaceholderMC/PlaceholderMC/releases/download/$pkgver/PlaceholderMC-$pkgver.tar.gz"
- "fix-qt6-4.patch::https://github.com/PlaceholderMC/PlaceholderMC/commit/7ccafdc99321e82ee0f504a573a5c978480374a2.patch")
-sha256sums=('a66f25e0389815d2419a5b3aa1b85a390f14bbf3997c55c7da1ce4507b5aa511'
+source=("$pkgname::git+https://github.com/Prismlauncher/Prismlauncher#tag=$pkgver"
+ "libnbtplusplus::git+https://github.com/PrismLauncher/libnbtplusplus.git"
+ "quazip::git+https://github.com/stachenov/quazip.git"
+ "fix-qt6-4.patch::https://github.com/Prismlauncher/Prismlauncher/commit/7ccafdc99321e82ee0f504a573a5c978480374a2.patch")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
'4215ec878ec7a5a63cc5710ef09a66f271d332542f4c6f5bb5f270a924dadcc7')
prepare() {
- cd "PlaceholderMC-$pkgver"
+ cd "$pkgname"
patch -Np1 -i "../fix-qt6-4.patch"
+ git submodule init
+ git config submodule.depends/libnbtplusplus.url "$srcdir/libnbtplusplus"
+ git config submodule.libraries/quazip.url "$srcdir/quazip"
+ git submodule update
}
build() {
@@ -37,7 +45,7 @@ build() {
-DCMAKE_INSTALL_PREFIX="/usr" \
-DLauncher_BUILD_PLATFORM="archlinux" \
-DLauncher_QT_VERSION_MAJOR="6" \
- -Bbuild -SPlaceholderMC-$pkgver
+ -Bbuild -S"$pkgname"
cmake --build build
}
For future reference
Scrumplex commented on 2022-10-18 18:51 (UTC)
If you want to try out PrismLauncher in its current state, use one of the -git packages
Scrumplex commented on 2022-10-18 18:50 (UTC)
There hasn't been a new release yet. So there is no version to update this package to.
Pinned Comments
Scrumplex commented on 2023-12-02 12:39 (UTC)
Options like
-j $(nproc)
are supposed to be set by your local makepkg.conf.Please read https://wiki.archlinux.org/title/Makepkg#Parallel_compilation
g3tchoo commented on 2023-11-06 16:38 (UTC) (edited on 2023-11-06 16:38 (UTC) by g3tchoo)
following some feedback and reports of issues, i think we're going to stick with
jdk17-openjdk
for now. while user choice is important, i believe there needs to be a balance between that and reliably building this package without manual intervention. this is also why thedepends
array will still containjava-runtime
rather than any specific jdk - since unlike building prism, we don't need to know the path of the jdk to ensure things work as expected.to ensure you don't still have
jdk17-openjdk
after building (and you don't use it), you can tell makepkg to remove unneededmakedepends
when it's done:if you have already built prismlauncher, you can also run one of the following commands:
for those facing further issues with dependencies in the future, i would also recommend using chroot builds. these allow aur packages to build in isolated and more reproducible environments, which can commonly fix these types of issues. the
devtools
package provides a script namedextra-x86_64-build
that can be used in place of makepkg to do this easily. building prismlauncher with this can be done like so: