Your message dated Mon, 06 Sep 2021 15:18:40 +0000
with message-id <[email protected]>
and subject line Bug#985403: fixed in bam 0.5.1-3
has caused the Debian Bug report #985403,
regarding bam FTCBFS -- multiple reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
985403: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985403
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bam
Version: 0.5.1-2
Severity: normal
X-Debbugs-Cc: [email protected], [email protected]
Hi,
bam currently FTCBFS due to two reasons:
* It uses python3 as B-D which is not satisfiable during crosss
builds. Annotating with :any does the trick here
* It's main script: make_unix.sh hardcodes pkg-config as well as
CC as cc by default.
The patch attached with the mail fixes it, please consider applying.
Nilesh
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages bam depends on:
ii libc6 2.31-3
bam recommends no packages.
bam suggests no packages.
diff --git a/debian/control b/debian/control
index 3c064c4..3bb0e74 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
Priority: optional
Maintainer: Debian Games Team <[email protected]>
Uploaders: Felix Geyer <[email protected]>
-Build-Depends: debhelper-compat (= 12), graphviz, python3, liblua5.3-dev,
pkg-config
+Build-Depends: debhelper-compat (= 12), graphviz, python3:any, liblua5.3-dev,
pkg-config
Standards-Version: 4.2.1
Homepage: https://matricks.github.com/bam/
Vcs-Git: https://salsa.debian.org/games-team/bam.git
diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch
new file mode 100644
index 0000000..edd0c4b
--- /dev/null
+++ b/debian/patches/cross.patch
@@ -0,0 +1,15 @@
+Description: Do not hardcode pkg-config, build the needed file with build arch
compiler
+Author: Nilesh Patra <[email protected]>
+Last-Update: 2021-03-17
+--- a/make_unix.sh
++++ b/make_unix.sh
+@@ -25,7 +25,7 @@
+
+ # the actual compile
+ echo "compiling using $CC..." >&2
+-$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/tools/txt2c.c `pkg-config
--cflags lua5.3` -o src/tools/txt2c
++$CC_FOR_BUILD -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/tools/txt2c.c
`$PKG_CONFIG --cflags lua5.3` -o src/tools/txt2c
+ src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua
src/driver_clang.lua src/driver_cl.lua src/driver_solstudio.lua
src/driver_xlc.lua > src/internal_base.h
+-$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/*.c src/lua/*.c -o bam
`pkg-config --cflags --libs lua5.3` -lm -lpthread -ldl -rdynamic $*
++$CC -Wall -pedantic $CFLAGS $CPPFLAGS $LDFLAGS src/*.c src/lua/*.c -o bam
`$PKG_CONFIG --cflags --libs lua5.3` -lm -lpthread -ldl -rdynamic $*
+
diff --git a/debian/patches/series b/debian/patches/series
index e2f8045..be8242b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ reproducible-build.patch
gendocs.patch
make_unix.patch
python3.patch
+cross.patch
diff --git a/debian/rules b/debian/rules
index d67d932..61af264 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/buildtools.mk
%:
dh $@
@@ -10,7 +11,7 @@ override_dh_auto_configure:
# nothing to do
override_dh_auto_build:
- sh make_unix.sh
+ CC_FOR_BUILD=$(CC_FOR_BUILD) CC=$(CC) PKG_CONFIG=$(PKG_CONFIG) sh
make_unix.sh
python3 scripts/gendocs.py
override_dh_auto_install:
--- End Message ---
--- Begin Message ---
Source: bam
Source-Version: 0.5.1-3
Done: Nilesh Patra <[email protected]>
We believe that the bug you reported is fixed in the latest version of
bam, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nilesh Patra <[email protected]> (supplier of updated bam package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 06 Sep 2021 20:23:59 +0530
Source: bam
Architecture: source
Version: 0.5.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <[email protected]>
Changed-By: Nilesh Patra <[email protected]>
Closes: 985403
Changes:
bam (0.5.1-3) unstable; urgency=medium
.
* Team Upload.
* Make Build cross-buildable (Closes: #985403)
+ d/control: Annotate python3 with :any
+ Drop lua buildflags, they are un-needed
+ d/rules: Include buildtools.mk set DPKG_EXPORT_BUILDTOOLS = nonempty
* Add d/salsa-ci.yml
Checksums-Sha1:
a9d1aad56c7fdfae48e49a099489e891cf51411f 1921 bam_0.5.1-3.dsc
e4191bdadc65fe4b1a592404e42f62a09f19015b 7992 bam_0.5.1-3.debian.tar.xz
abaa52c9aee5987802d2b94afaa7809285c36989 7758 bam_0.5.1-3_amd64.buildinfo
Checksums-Sha256:
f055b482c363d444b64ab2d2940ab2563bf3afd7f8f91241d476af0b3f283fa4 1921
bam_0.5.1-3.dsc
6ba4064714f55dffac7f287fc7ad06d29798ff730561f3d05061c97f57f22e76 7992
bam_0.5.1-3.debian.tar.xz
f203f8e484429a5e43019117c2b46da2ad9101ac887da4b83c38ab01aa05fc62 7758
bam_0.5.1-3_amd64.buildinfo
Files:
c606c34e6b927a01fa52fda35f7a4165 1921 devel optional bam_0.5.1-3.dsc
1dbbe184f5d2eaa7904a27579ad92b8a 7992 devel optional bam_0.5.1-3.debian.tar.xz
feb25a06c6047d08a9e45d8f4ac32ab5 7758 devel optional
bam_0.5.1-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEEPpmlJvXcwMu/HO6mALrnSzQzafEFAmE2L3UUHG5wYXRyYTk3
NEBnbWFpbC5jb20ACgkQALrnSzQzafHAiRAAsWcW+lhyv3BrJ0aCDNqbx+mDnpbZ
u0ZbHQJ3iafSS3HW5TetZ7fXIiVTlwlCowTIG86w7XgkImIavUmKxFgQQXColuwp
Kkbp8nlxy5byVbjfBdLDNOk0Y839Egu3PlSfTrzMZzZ9jspCEGaQnth3vmaIBDqa
HnnmUk81/8KRDpyoy6qkAPMVfxRyARcc31zkb2siS/pzXA1vbyUgTJxHruwtObm7
m2jUEK06I4JOOA63aqGN3/oFChF/00pX5Usg7vqr6ueE3dyUdArhUnj3NyxmRQba
2Q1gKWswydVBHyahebajGgsWGp2wT06P9em3u2IbcP5EZCI1DeweVUCHXfVqhufH
3MzCvkfAVqzUN3weutHGB8o2/yT6ichn/GYd+ry8V3/mav4BHcdA1j1378z+8aZa
e8dGVv/pjkwv1WaPTfSarwLyokzLvJYTi5uUy+TZF+E6ua67IaMmpVEPO+333sq1
wkjtxp6aGhOnirrk63Z0WvNIiz2A0EACQHCAPOO/eD7MqqYE3M2RSO8im5qaxOeC
ZXIXFrt+aEV1GGYQfjbDVrBtu2yCxeNhR0wTIyApoudQuKyTHzTdIZdNlRIho5AH
X2wCPeUcWQuREbSfecer/zPOS0u+BoY5X1s2EqP1n4lS6GgrBjFE4LdVGcK3OeeL
6fvFRM6CL5Aaf2s=
=sdg9
-----END PGP SIGNATURE-----
--- End Message ---