Source: mah-jong Version: 1.17.2-2 Tags: patch User: [email protected] Usertags: ftcbfs
mah-jong fails to cross build from source, because the upstream build system includes the C standard in the CC variable. When dh_auto_build overrides CC, the standard goes missing and the code does not compile with the default standard. I am attaching a patch that adds the standard to CC explicitly to make it cross build. Please consider applying it. Helmut
diff -Nru mah-jong-1.17.2/debian/changelog mah-jong-1.17.2/debian/changelog --- mah-jong-1.17.2/debian/changelog 2026-02-04 03:01:56.000000000 +0100 +++ mah-jong-1.17.2/debian/changelog 2026-02-25 13:28:13.000000000 +0100 @@ -1,3 +1,10 @@ +mah-jong (1.17.2-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Include C standard in CC. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 25 Feb 2026 13:28:13 +0100 + mah-jong (1.17.2-2) unstable; urgency=medium * add d/p/0001-Port-GUI-from-GTK-2-to-GTK-3.patch, Closes: #967620, diff -Nru mah-jong-1.17.2/debian/rules mah-jong-1.17.2/debian/rules --- mah-jong-1.17.2/debian/rules 2026-02-03 03:36:50.000000000 +0100 +++ mah-jong-1.17.2/debian/rules 2026-02-25 13:28:11.000000000 +0100 @@ -5,6 +5,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +include /usr/share/dpkg/buildtools.mk + %: dh $@ @@ -20,6 +22,10 @@ rm -fv Makefile make -f Makefile.in Makefile +override_dh_auto_build: + # debhelper overrides CC but upstream uses it convey the standard + dh_auto_build -- CC='$(CC) -std=gnu99' + execute_after_dh_install: make install.man DESTDIR=$(CURDIR)/debian/mah-jong/ MANDIR=usr/share/man/man6 mv debian/Makefile.sav Makefile

