Package Details: 0ad-git 1:a26.r957.g6d12d25348-1

Git Clone URL: https://aur.archlinux.org/0ad-git.git (read-only, click to copy)
Package Base: 0ad-git
Description: Cross-platform, 3D and historically-based real-time strategy game - built from git development version.
Upstream URL: https://play0ad.com
Licenses: GPL-2.0-or-later, LicenseRef-CCPL
Conflicts: 0ad
Provides: 0ad
Submitter: fusion809
Maintainer: tuxayo (micwoj92)
Last Packager: micwoj92
Votes: 8
Popularity: 0.21
First Submitted: 2016-09-09 11:31 (UTC)
Last Updated: 2024-10-31 19:45 (UTC)

Dependencies (39)

Required by (2)

Sources (4)

Pinned Comments

mm_sz commented on 2024-09-17 14:16 (UTC)

==> Retrieving sources...
==> ERROR: Unknown download protocol: git-lfs
    Aborting...

If you get this error, try to install package makepkg-git-lfs-proto

Latest Comments

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

Riesi commented on 2024-09-05 20:23 (UTC)

The github link that is used is deprecated as of the gitea migration: https://wildfiregames.com/forum/topic/121118-planned-disruption-migration-to-git-and-gitea/?do=findComment&comment=580946

This means one would need to directly clone from their gitea. The repo is git-LFS, so makepkg doesn't seem to like just replacing the url... :(

micwoj92 commented on 2024-05-26 17:57 (UTC)

Thanks, this patch was for some old issue, probably not needed for long time, but it kept applying. I have decided to go with the patch of 0ad package as it applies without issue. I will push in a "few minutes" when the build finishes.

https://gitlab.archlinux.org/archlinux/packaging/packages/0ad/-/blob/6b065eba5b04e88f4c85ed119d7f3bbe3840ed71/fix_gcc_14_ftbfs.patch

Flammkuchen commented on 2024-05-26 11:13 (UTC) (edited on 2024-05-26 11:14 (UTC) by Flammkuchen)

I managed to get it building again. I changed the contents of patch.patch to:

diff --unified --recursive --text a/build/premake/premake5/build/gmake2.unix/zip-lib.make b/build/premake/premake5/build/gmake2.unix/zip-lib.make
--- a/build/premake/premake5/build/gmake2.unix/zip-lib.make
+++ b/build/premake/premake5/build/gmake2.unix/zip-lib.make
@@ -37,7 +37,7 @@
 TARGETDIR = bin/Release
 TARGET = $(TARGETDIR)/libzip-lib.a
 OBJDIR = obj/Release/zip-lib
-DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DN_FSEEKO -DHAVE_SSIZE_T_LIBZIP -DHAVE_CONFIG_H
+DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -DNDEBUG -DN_FSEEKO -DHAVE_SSIZE_T_LIBZIP -DHAVE_CONFIG_H -DHAVE_UNISTD_H
 ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -w
 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -w -fno-stack-protector
 ALL_LDFLAGS += $(LDFLAGS) -s
@@ -46,7 +46,7 @@
 TARGETDIR = bin/Debug
 TARGET = $(TARGETDIR)/libzip-lib.a
 OBJDIR = obj/Debug/zip-lib
-DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DN_FSEEKO -DHAVE_SSIZE_T_LIBZIP -DHAVE_CONFIG_H
+DEFINES += -DPREMAKE_COMPRESSION -DCURL_STATICLIB -DPREMAKE_CURL -D_DEBUG -DN_FSEEKO -DHAVE_SSIZE_T_LIBZIP -DHAVE_CONFIG_H -DHAVE_UNISTD_H
 ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -w
 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g -w
 ALL_LDFLAGS += $(LDFLAGS)
diff --unified --recursive --text a/build/premake/premake5/contrib/libzip/mkstemp.c b/build/premake/premake5/contrib/libzip/mkstemp.c
--- a/build/premake/premake5/contrib/libzip/mkstemp.c
+++ b/build/premake/premake5/contrib/libzip/mkstemp.c
@@ -43,6 +43,9 @@
 #endif
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif

 #ifndef O_BINARY
 #define O_BINARY 0

micwoj92 commented on 2023-08-21 21:31 (UTC)

Updated, I have removed circular dependency.

@FabioLolix I am not sure if that second point would have worked. I think it was done because (I didn't test, just guessing) 0ad-data-git would not be compatible with normal 0ad and vice versa. I removed it for now, I don't think there is elegant solution to this problem.

Also I have noticed that spidermonkey build does not utilize all cores, so if anyone knwos how to force it (preferably using MAKEFLAGS value from makepkg.conf) then let me know. Or even better, to skip building it and use system js91 package if possible at all.

FabioLolix commented on 2023-07-04 21:33 (UTC)

Idea for improving things for AUR helpers

  • There is a circular dependency between 0ad-data-git and 0ad-git, try to remove depends=('0ad-git') from package_0ad-data-git(), Arch's 0ad-data don't depends on 0ad
  • (for this I'm less sure) in package_0ad-git() remove 0ad-data-git from depends and add depends+=(0ad-data-git)

micwoj92 commented on 2023-06-05 18:32 (UTC)

I only ever used makepkg for this package, because the download is huge, so I keep that outside of my aur helper (pikaur) cache which I clean sometimes.

VitalyR commented on 2023-06-05 16:32 (UTC)

@tuxayo @micwoj92 Yes, I was meeting the same problem as @tuxayo. I'm using paru. Maybe these AUR helpers can't get metadata from a function? Should an AUR helper support PKGBUILD like this?

tuxayo commented on 2023-06-05 16:19 (UTC) (edited on 2023-06-05 16:20 (UTC) by tuxayo)

This is already there in package step for each package

Indeed it's there so the issue isn't that. But maybe VitalyR has the same weird thing that I have:

[build, success, removing build deps...]
Reading local package database...
loading packages...
resolving dependencies...
warning: cannot resolve "0ad-git", a dependency of "0ad-data-git"
:: The following package cannot be upgraded due to unresolvable dependencies:
      0ad-data-git

:: Do you want to skip the above package for this upgrade? [y/N] 
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency '0ad-git' required by 0ad-data-git
Command 'sudo pacman --color=always --upgrade --asdeps /home/MIA_UZANTO/.cache/pikaur/pkg/0ad-data-git-1:A26.r726.g9ca03bdb9b-1-x86_64.pkg.tar.zst' failed to execute.
Do you want to retry? [Y/n] 
loading packages...
resolving dependencies...
warning: cannot resolve "0ad-git", a dependency of "0ad-data-git"
:: The following package cannot be upgraded due to unresolvable dependencies:
      0ad-data-git

:: Do you want to skip the above package for this upgrade? [y/N] y
looking for conflicting packages...
 there is nothing to do
loading packages...
resolving dependencies...
warning: cannot resolve "0ad-data-git", a dependency of "0ad-git"
:: The following package cannot be upgraded due to unresolvable dependencies:
      0ad-git

:: Do you want to skip the above package for this upgrade? [y/N] 

Even after removing the stable packages there is the same error.

I had use pacman -U

sudo pacman -U  ~/.cache/pikaur/pkg/0ad-git-1:A26.r726.g9ca03bdb9b-1-x86_64.pkg.tar.zst ~/.cache/pikaur/pkg/0ad-data-git-1:A26.r726.g9ca03bdb9b-1-x86_64.pkg.tar.zst

Maybe the AUR helper (pikaur in my case) is wrongly chocking on something or there is indeed something wrong in the packages.

@VitalyR, @micwoj92 (if you tried in the last week) did you use a helper and which one?

micwoj92 commented on 2023-06-02 20:29 (UTC)

This is already there in package step for each package. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=0ad-git#n63

VitalyR commented on 2023-06-02 18:50 (UTC) (edited on 2023-06-02 18:51 (UTC) by VitalyR)

Please add provides and conflicts to the PKGBUILD:

provides=('0ad' '0ad-data')
conflicts=('0ad' '0ad-data')