Package Details: xmage 1.4.50V2-0

Git Clone URL: https://aur.archlinux.org/xmage.git (read-only, click to copy)
Package Base: xmage
Description: Java-based program for playing Magic:The Gathering, including client and server
Upstream URL: http://xmage.de
Keywords: gathering magic mtg
Licenses: MIT
Submitter: aidonius
Maintainer: aidonius
Last Packager: aidonius
Votes: 5
Popularity: 0.184724
First Submitted: 2018-10-04 23:59
Last Updated: 2021-09-06 18:03

Latest Comments

1 2 Next › Last »

candy_pebbles commented on 2021-02-19 13:46

I got some errors with java and this update with (newly added?) detox, and I noticed I'm not the only one, so I'm going to share how I got it working. If making the package results in:

...
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting xmage_1.4.48V1.zip with bsdtar
==> Sources are ready.
==> Making package: xmage 1.4.48V1-0 (Fri 19 Feb 2021 02:29:29 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> ERROR: A failure occurred in package().
Aborting...
error making: xmage

Then edit the PKGBUILD file as tnto pointed out and comment out lines such as:

detox -r -v ./* &> /dev/null

found around the 33rd line, depending on the PKG you are building. Then pacman -U the made pkg. If you launch mage-client and you get an error such as:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-15- 
openjdk/lib/libawt_xawt.so
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2411)
at java.base/java.lang.Runtime.load0(Runtime.java:747)
at java.base/java.lang.System.load(System.java:1857)
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:310)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:280)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2416)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:809)
at java.base/java.lang.System.loadLibrary(System.java:1893)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1380)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:1378)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
at java.desktop/java.awt.Toolkit.loadLibraries(Toolkit.java:1377)
at java.desktop/java.awt.Toolkit.<clinit>(Toolkit.java:1410)
at java.desktop/java.awt.Component.<clinit>(Component.java:622)

The simply follow what arachnid92 earlier in this thread. If you then get the error:

Unable to access jarfile /usr/share/xmage/mage-client/lib/mage-client-1.4.48.jar

Check if you have jre8-openjdk and java8-openjfx installed, if the error persists, remove the package with pacman -R, and delete the cloned xmage folder. Then start over again, but with few changes.

git clone https://aur.archlinux.org/xmage.git
cd xmage
rm -rf PKGBUILD
sudo nano PKGBUILD-jre-8u201-x86_64 (and comment out said detox line, here on line 37)
sudo mv PKGBUILD-jre-8u201-x86_64 PKGBUILD
makepkg
sudo pacman -U xmage-1.4.48V1-0-x86_64.pkg.tar.zst

It's not a guaranteed solution (it worked for me), but it's worth a try if you're having this problem, I guess, it even says it in the README.txt. Also, does anyone know how to fix the ugly font scaling?

DMN commented on 2021-02-18 20:28

The detox command detox -r -v ./* is failing for me with:

...
./mage-client/sample-decks/2014/Standard/GP_Stockholm_2014-11/Alexander Pasgaard - Jeskai.dck -> ./mage-client/sample-decks/2014/Standard/GP_Stockholm_2014-11/Alexander_Pasgaard-Jeskai.dck
./mage-client/sample-decks/2014/Standard/DailyMTG ReConstructed Enchantress to Meet You -> ./mage-client/sample-decks/2014/Standard/DailyMTG_ReConstructed_Enchantress_to_Meet_You
unsupported unicode length

tnto commented on 2021-02-18 10:14

removing detox both from dependencies and from PKGBUILD (lines 32-33) works for me

G4Zz0L1 commented on 2021-02-15 08:28

I've some kind of problem with the latest version. Sorry for the locale, it's italian. Can someone tell me what can be wrong with this?

==> Creazione del pacchetto: xmage 1.4.48V1-0 (lun 15 feb 2021, 09:25:07)
==> Download dei sorgenti in corso...
  -> Download di xmage_1.4.48V1.zip in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  156M  100  156M    0     0  8383k      0  0:00:19  0:00:19 --:--:-- 8944k
  -> Download di LICENSE.txt in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1078  100  1078    0     0   3717      0 --:--:-- --:--:-- --:--:--  3717
  -> Download di icon-mage.png in corso...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3686  100  3686    0     0  12623      0 --:--:-- --:--:-- --:--:-- 12623
==> Validazione di source file con sha256sums...
    xmage_1.4.48V1.zip ... Verificato
    LICENSE.txt ... Ignorato
    icon-mage.png ... Ignorato
 -> detox not satisfied, flushing install queue
==> Creazione del pacchetto: xmage 1.4.48V1-0 (lun 15 feb 2021, 09:25:28)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
  -> È stato trovato xmage_1.4.48V1.zip
  -> È stato trovato LICENSE.txt
  -> È stato trovato icon-mage.png
==> Validazione di source file con sha256sums...
    xmage_1.4.48V1.zip ... Verificato
    LICENSE.txt ... Ignorato
    icon-mage.png ... Ignorato
==> Rimozione dell'esistente directory $srcdir/ in corso...
==> Estrazione dei sorgenti in corso...
  -> Estrazione di xmage_1.4.48V1.zip usando bsdtar in corso...
==> I sorgenti sono pronti.
==> Creazione del pacchetto: xmage 1.4.48V1-0 (lun 15 feb 2021, 09:25:31)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> ATTENZIONE: Sto usando il tree esistente di $srcdir/
==> Entro nell'ambiente fakeroot...
==> Avvio di package() in corso...
==> ERRORE: Si è verificato un errore in package().
    L'operazione sta per essere interrotta...

wahrwolf commented on 2021-01-21 18:13

I had to prefix the paths in 77, 81 and 83 with ${startdir} instead of .. to get the systemd service into the right place.

arachnid92 commented on 2021-01-16 00:09

Note that on my system, the following change to /usr/bin/mage-client was needed to get the package to work.

Original:

/usr/lib/jvm/java-8-openjdk/bin/java -Xms256m -Xmx2048m -Dfile.encoding=UTF-8 -jar /usr/share/xmage/mage-client/lib/mage-client-1.4.47.jar &

Modified:

/usr/lib/jvm/java-8-openjdk/jre/bin/java -Xms256m -Xmx2048m -Dfile.encoding=UTF-8 -jar /usr/share/xmage/mage-client/lib/mage-client-1.4.47.jar &

aidonius commented on 2021-01-03 02:45

weirddan445: The java8-openjfx was missing from my system. I have changed the default PKGBUILD to only require jre8-openjdk and java8-openjfx. Thank you for your help. I have been wanting to remove the bundled jre for a long time.

The secondary PKGBUILD is now intended to provide support for users wishing to use the bundled JRE given that it is the only version that is specifically supported by upstream.

weirddan455 commented on 2021-01-02 18:04

The "What's new" page works fine for me with OpenJDK 8 in the repos. I think you just need to add java8-openjfx as a dependency (also in the repos.) You also need to modify the mage-client and mage-server scripts to point to OpenJDK 8 if it's not your system's default Java version.

Thanks for the second PKGBUILD though. That works fine :)

aidonius commented on 2020-12-30 19:16

weirddan445: I have not had any success making the "What's New" page work with the repository java. Until everything works 100% I will leave the package as is.

I have added a secondary PKGBUILD that only requires the jre8-openjdk available in the repositories.

weirddan455 commented on 2020-12-23 22:42

So yea, I just tested it and your package works just fine for me with OpenJDK. I just removed the lines around "if [[ "$CARCH" == 'x86_64' ]]"

The start-up script just starts "java" so it'll use the default JVM on your system (configurable with archlinux-java or just modify /usr/bin/mage-client and /usr/bin/mage-server to point to the version you like.) For me, that's OpenJDK 11 and it's actually running fine using both OpenJDK 11 and OpenJDK 8.

EDIT: It is giving some errors about OpenJFX on OpenJDK 11 so the "What's new" page doesn't work. Changing /usr/bin/mage-client to point to /usr/lib/jvm/java-8-openjdk/bin/java fixed it though.