Package Details: prismlauncher 8.3-1

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)

Required by (2)

Sources (1)

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 the depends array will still contain java-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 unneeded makedepends when it's done:

# with paru or yay
$ paru/yay -S --removemake prismlauncher
# with aurutils
$ aur sync -r prismlauncher
# with only makepkg
$ makepkg -sri

if you have already built prismlauncher, you can also run one of the following commands:

# with paru
$ paru -c
# with yay
$ yay -Yc
# on any system
$ pacman -Qdtq | sudo pacman -Rns -

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 named extra-x86_64-build that can be used in place of makepkg to do this easily. building prismlauncher with this can be done like so:

$ git clone https://aur.archlinux.org/prismlauncher.git
$ cd prismlauncher
$ extra-x86_64-build

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

ZhangHua commented on 2023-06-10 01:45 (UTC)

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

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.