Package Details: polymc 6.1-1

Git Clone URL: (read-only, click to copy)
Package Base: polymc
Description: Minecraft launcher with the ability to manage multiple instances
Upstream URL:
Licenses: GPL3
Submitter: glorious-yellow
Maintainer: LennyLennington (Kaydax, sperg512)
Last Packager: Kaydax
Votes: 65
Popularity: 1.76
First Submitted: 2022-01-11 20:53 (UTC)
Last Updated: 2024-01-11 19:59 (UTC)

Dependencies (18)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

audacity commented on 2023-12-25 04:36 (UTC)

I was already on JRE 17, but it was failing as below have been as I am on JRE 17.0.9. Apparently that was causing an issue, but I switched over to JRE 8 and it built correctly. I can switch back to JRE 17 after.

PillTime commented on 2023-12-22 19:28 (UTC) (edited on 2023-12-22 19:29 (UTC) by PillTime)

this package and other polymc packages (tested polymc-bin and polymc-qt5-bin) have the checksum incorrectly calculated:

==> Validating source files with sha256sums...
    PolyMC-6.0.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

here's a quick check i did:

 ~/Dow/polymc > sha256sum PolyMC-6.0.tar.gz                                                            
8b9af09a0abbe6a9ccbe8f5aca5a7f445ebbc9e1e59fc220974eedd703684447  PolyMC-6.0.tar.gz
 ~/Dow/polymc > grep 'sha256sums=' PKGBUILD                                                            

Static_Rocket commented on 2023-08-05 05:25 (UTC) (edited on 2023-08-05 05:27 (UTC) by Static_Rocket)

I would recommend the following changes since jdk17 is the latest supported lts and a chroot build (or any other build) can have issues if another version of java is on the system or is set to something else. This forces the use of jdk17 during compilation unconditionally. From what I've seen the use of JAVA_HOME is only frowned upon in runtime scripts:

diff --git a/PKGBUILD b/PKGBUILD
index 0b600cf..f898711 100644
@@ -16,7 +16,7 @@ url=""
 depends=('java-runtime' 'libgl' 'qt6-base' 'qt6-5compat' 'qt6-svg'
          'qt6-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt6' 'qt6-charts')
-makedepends=('cmake' 'extra-cmake-modules' 'java-environment' 'scdoc')
+makedepends=('cmake' 'extra-cmake-modules' 'java-environment=17' 'scdoc')
 optdepends=('glfw: to use system GLFW libraries'
             'openal: to use system OpenAL libraries'
             'visualvm: Profiling support'
@@ -26,6 +26,7 @@ source=("$pkgver/PolyMC-$pkgv

 build() {
+  export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
   cmake -B build -S PolyMC-$pkgver \
       -DLauncher_BUILD_PLATFORM='archlinux' \
       -DLauncher_QT_VERSION_MAJOR='6' \

dack commented on 2023-08-03 18:02 (UTC)

Since this fails to build on java 20, could you change the make dependency to something like 'java-environment<=17'? That way, it should build correctly in a clean chroot without manual intervention.

joehillen commented on 2023-08-01 16:01 (UTC)

Another build failure:

[ 30%] Building CXX object launcher/CMakeFiles/Launcher_logic.dir/InstanceCreationTask.cpp.o
In file included from /home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/minecraft/ProfileUtils.h:38,
                 from /home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/minecraft/PackProfile.h:47,
                 from /home/joe/.cache/paru/clone/polymc/src/build/launcher/Launcher_logic_autogen/EWIEGA46WW/../../../../PolyMC-5.1/launcher/ui/pages/instance/VersionPage.h:41,
                 from /home/joe/.cache/paru/clone/polymc/src/build/launcher/Launcher_logic_autogen/EWIEGA46WW/../../../../PolyMC-5.1/launcher/InstancePageProvider.h:7,
                 from /home/joe/.cache/paru/clone/polymc/src/build/launcher/Launcher_logic_autogen/EWIEGA46WW/moc_InstancePageProvider.cpp:9,
                 from /home/joe/.cache/paru/clone/polymc/src/build/launcher/Launcher_logic_autogen/mocs_compilation.cpp:9:
/home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/minecraft/VersionFile.h:141:22: warning: identifier ‘requires’ is a keyword in C++20 [-Wc++20-compat]
  141 |     Meta::RequireSet requires;
      |                      ^~~~~~~~
In file included from /usr/include/c++/13.1.1/functional:57,
                 from /usr/include/qt6/QtCore/qrunnable.h:8,
                 from /usr/include/qt6/QtCore/QRunnable:1,
                 from /home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/tasks/Task.h:38,
                 from /home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/InstanceCopyTask.h:3,
                 from /home/joe/.cache/paru/clone/polymc/src/PolyMC-5.1/launcher/InstanceCopyTask.cpp:1:
/usr/include/c++/13.1.1/bits/refwrap.h:109:1: internal compiler error: in cp_parser_lookup_name, at cp/
  109 | _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type)
      | ^~~~~~~~~~~~~~~~~~~~~~
0x1ad4bb8 internal_error(char const*, ...)
0x6b7b33 fancy_abort(char const*, int, char const*)
0x944010 c_common_parse_file()
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <> for instructions.
make[2]: *** [launcher/CMakeFiles/Launcher_logic.dir/build.make:1023: launcher/CMakeFiles/Launcher_logic.dir/InstanceCopyTask.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:2721: launcher/CMakeFiles/Launcher_logic.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
error: failed to build 'polymc-5.1-2':
error: packages failed to build: polymc-5.1-2

SClause commented on 2023-05-31 04:14 (UTC) (edited on 2023-05-31 05:42 (UTC) by SClause)

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.
make[2]: *** [libraries/launcher/CMakeFiles/NewLaunch.dir/build.make:93: 
libraries/launcher/CMakeFiles/NewLaunch.dir/java_compiled_NewLaunch] Error 2
make[1]: *** [CMakeFiles/Makefile2:1418: 
libraries/launcher/CMakeFiles/NewLaunch.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().

This seems to be a problem with the Java version. I solved it by switching to version 17.

pacman -S jre17-openjdk jdk17-openjdk
sudo archlinux-java set java-17-openjdk

After compile and install I switched back to Java 20.

sudo archlinux-java set java-20-openjdk

wustdsh commented on 2023-05-30 12:05 (UTC) (edited on 2023-05-31 07:14 (UTC) by wustdsh)

警告: [options] 未与 -source 7 一起设置引导类路径
错误: 不再支持源选项 7。请使用 8 或更高版本。
错误: 不再支持目标选项 7。请使用 8 或更高版本。
make[2]: *** [libraries/launcher/CMakeFiles/NewLaunch.dir/build.make:93:
libraries/launcher/CMakeFiles/NewLaunch.dir/java_compiled_NewLaunch] 错误 2
make[1]: *** [CMakeFiles/Makefile2:1418:
libraries/launcher/CMakeFiles/NewLaunch.dir/all] 错误 2
make: *** [Makefile:146:all] 错误 2
==> 错误: 在 build() 中发生一个错误。    
错误: 未能构建 'polymc-5.1-1': 
错误: 未能构建的软件包: polymc-5.1-1

I use java20 and get this error

bkb commented on 2023-03-02 08:42 (UTC)

I've just switched to binaries and it's all fine

LennyLennington commented on 2023-03-01 20:57 (UTC)

@bkb You need to use archlinux-java to set your default java version to one for which you have a JDK installed.