Package Details: liquidwar 5.6.5-5

Git Clone URL: https://aur.archlinux.org/liquidwar.git (read-only, click to copy)
Package Base: liquidwar
Description: A unique multiplayer wargame
Upstream URL: https://www.ufoot.org/liquidwar/
Licenses: GPL
Submitter: ilpianista
Maintainer: zaza
Last Packager: zaza
Votes: 15
Popularity: 0.000000
First Submitted: 2015-01-24 11:16 (UTC)
Last Updated: 2025-07-06 16:15 (UTC)

Latest Comments

zaza commented on 2025-07-06 16:17 (UTC)

@yayachiken

Added patch. Looks like it works, thanks.

yayachiken commented on 2025-07-06 15:55 (UTC)

I was able to make it build again by fixing two bugs:

gcc15.patch


diff --git a/src/srvcont.c b/src/srvcont.c
index 2356c7f..fef6f18 100644
--- a/src/srvcont.c
+++ b/src/srvcont.c
@@ -520,7 +520,8 @@ lw_srvcont_wait_teams (LW_SRVCONT * cont,
     {
       log_print_str ("Unable to bind socket on port ");
       log_print_int (port);
-      log_println ("!");
+      log_print_str ("!");
+      log_println ();

       /*
        * We consider this a fatal error and quit the program
diff --git a/utils/liquidwarcol.c b/utils/liquidwarcol.c
index 935eea5..b46a3fe 100644
--- a/utils/liquidwarcol.c
+++ b/utils/liquidwarcol.c
@@ -430,7 +430,7 @@ main (int argc, char **argv)
             {
               if (FLAG_BACKUP)
                 save_backup (FILENAMES[i]);
-              convert_bitmap (FILENAMES[i]);
+              convert_bitmap ();
               save_file (FILENAMES[i]);
             }
         }

PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 2156f4d..8ece4c5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,6 +24,7 @@ prepare() {
   sed 's|EFENCE_LIBRARY)$|& -lm|g' -i src/Makefile.in
   patch -Np1 -i "${srcdir}/gcc10.patch"
   patch -Np1 -i "${srcdir}/doc.patch"
+  patch -Np1 -i "${srcdir}/gcc15.patch"
 }

 build() {

Game then builds and runs without issues.

zaza commented on 2024-08-14 09:37 (UTC)

@marza Thanks

marza commented on 2024-08-14 08:41 (UTC)

The original download link no longer works, but the author has uploaded the latest release on GitHub, so this works for me:

diff --git a/PKGBUILD b/PKGBUILD
index 8f0f8c8..6fde042 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ url="https://www.ufoot.org/liquidwar/"
 license=('GPL')
 depends=('allegro4')
 makedepends=('python')
-source=("http://www.ufoot.org/download/$pkgname/v5/$pkgver/$pkgname-$pkgver.tar.gz"
+source=("https://github.com/ufoot/liquidwar5/releases/download/v$pkgver/liquidwar-$pkgver.tar.gz"
         "gcc10.patch"
         "doc.patch")
 sha256sums=('dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f'

zaza commented on 2023-11-28 22:04 (UTC)

@ejona86 Thanks, updated.

ejona86 commented on 2023-11-28 14:48 (UTC)

Python3 support for makedoc.py: https://pastebin.com/F903MVj6

zaza commented on 2021-02-14 17:19 (UTC)

Package doesn't compile now, at least on my machine. I've tried to fix it.

First problem is GCC10 and compile errors. It was fixed in Debian, so patch may be taken from them: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957493 https://salsa.debian.org/games-team/liquidwar/-/blob/17a6f01fddc33eaa9abe348b8f6182a306cc2917/debian/patches/gcc10.patch (patch) https://github.com/ufoot/liquidwar5/pull/3 (merged pull request in upstream)

Second one is about building docs. For some reason doc building fails, so package can't be built, although technically compiled properly. Python fails on finding dtd file in doc/makedoc.py, looks like 3.7.1 change is the reason: https://docs.python.org/3/library/xml.sax.html "Changed in version 3.7.1: The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. The feature can be enabled again with method setFeature() on the parser object and argument feature_external_ges."

So, there are ways of fixing it: 1) disabling doc building (are they really required?), looks like setting PYTHON=no in build() helps. 2) patching doc/makedoc.py to ignore external references: parser=xml.sax.make_parser() + parser.setFeature(xml.sax.handler.feature_external_ges, False) parser.setContentHandler(handler) 3) fixing dtd issue properly, but I can't easily find a way to do it

I've made own pkgbuild with gcc10 fix and doc fix (method 2, with patching), but maybe disabling doc build may be better solution: https://gist.github.com/vladimir-g/85a0f4720e51d437d9b77cb0cb824b75 It builds, although I didn't test it completely

ilpianista commented on 2015-01-24 11:16 (UTC)

Moved from [extra]