Bug#992017: Updated patch and example script for building the package

David W. Kennedy dave_k at reasoned.us
Tue Aug 17 05:53:10 BST 2021


Hello,

Here is an updated patch and rationale for depencency versions with some 
improvements.

I have tested building and running this in a Debian stable (bullseye) 
chroot and a Debian unstable (sid) chroot. About 12 GiB of disk space is 
needed for building, and an additional 20 GiB for an OS with necessary 
packages for building 0ad. Building with an SSD and a quad core desktop 
CPU requires about 30 minutes.

I have also provided a bash script that shows how to obtain the 
necessary source code, apply the patch and build the Debian package of 
0ad version 0.0.25. You should really start with building and installing 
version 0.0.25 of 0ad-data, for which a patch and instructions are 
available in bug #992314.

Notes about the process of building the Debian package for 0ad, version 
0.0.25, follow.

If you are asked for a default mirror for pbuilder then the most common 
response is:

https://deb.debian.org/debian

but a list of local mirrors is available here

https://www.debian.org/mirror/list

I recommend using a mirror that supports HTTPS encryption. You will need 
to manually test which mirrors support HTTPS, for example with a web 
browser.

Thanks

-- 
Dave Kennedy
-------------- next part --------------
For 0ad version 0.0.25, I updated these depencency package versions
in the debian/control file.

automake; copied from the Build-Deps of Debian package libmozjs-78-0.

libboost-dev (>= 1.57.0.1); based on the upstream build instructions 
for 0ad at this webpage:
https://trac.wildfiregames.com/wiki/BuildInstructions#Dependencies

libboost-filesystem-dev (>= 1.57.0.1); same as libboost-dev

libcurl4-gnutls-dev (>= 7.32.0) | libcurl4-dev (>= 7.32.0); based on
the upstream build instructions for 0ad

libfmt-dev (>= 4.0.0); based on the upstream build instructions 
for 0ad

libicu-dev (>= 67.1-4~); copied from the Build-Deps of Debian package
libmozjs-78-0.  Specifically, see the Debian package libmozjs-78-0
debian changelog entry, version 78.2.0-1, about bumping the build
dependency to ICU 63.1-4. That version number doesn't match. But 
I think that Marco Trevisan meant 67.1-4, as that is where the fix 
for bug 968609 in libicu is implemented.

libsdl2-dev (>= 2.0.5); based on statements from Stan in #0ad IRC
on 2021-08-14 and 2021-08-15 that 0ad version 0.0.25 supports sdl2 
versions from 2.0.5 to 2.0.12. Versions beyond that are not 
necessarily incompatible, just untested so far. Stan said that there 
might be a bug related to alt-tab when using fullscreen mode in sdl 
versions 2.0.13 through 2.0.15. In my testing I haven't seen 
different alt-tab behavior in 0ad using sdl version 2.0.14 or 2.0.16. 
Information about the possible bug is here:
https://github.com/0ad/0ad/commit/4cf4ff4b674a7925e20f4bd40dc8a18f2fcdc8f4

llvm; for llvm-objdump -- added based on the upstream build 
instructions for 0ad

rustc (>= 1.41); based on the dependencies in the Debian packages
of mozjs78 (78.4.0-2, in unstable) and mozjs78 (78.10.1-1, in
experimental)

tzdata; copied from the Build-Deps of Debian package libmozjs-78-0.

zlib1g-dev (>= 1:1.2.3); same basis as that of the version of rustc
required for 0ad

- David W. Kennedy <dave_k AT reasoned DOT us>


More information about the Pkg-games-devel mailing list