Your message dated Thu, 10 Sep 2026 11:18:56 +0000
with message-id <[email protected]>
and subject line Bug#1115556: fixed in liblopsub 1.0.6-1
has caused the Debian Bug report #1115556,
regarding liblopsub FTCBFS: builds for the build architecture
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.)


-- 
1115556: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115556
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: liblopsub
Version: 1.0.5-3.1
Tags: patch
User: [email protected]
Usertags: ftcbfs

liblopsub fails to cross build from source, because it builds for the 
build architecture. The easiest way of fixing this usually is using 
dh_auto_build, but this package appears to avoid debhelper where 
possible. Hence, I propose using dpkg's buildtools.mk instead. Then, the 
upstream build system needs reworking to support cross compilation. It 
builds two intermediate binaries run during build. For lopsubgen-stage1, 
we may just build it for the build architecture as it is not installed. 
lopsubgen however is both run and installed. I suggest building it twice 
(but only during cross compilation) and am attaching a patch to this 
end. Please propose this patch to upstream as it will enable cross 
building liblopsub on other distributions such as Yocto or PtxDist.

Helmut
diff -Nru liblopsub-1.0.5/debian/changelog liblopsub-1.0.5/debian/changelog
--- liblopsub-1.0.5/debian/changelog    2025-04-11 14:55:08.000000000 +0200
+++ liblopsub-1.0.5/debian/changelog    2025-09-17 07:14:50.000000000 +0200
@@ -1,3 +1,12 @@
+liblopsub (1.0.5-3.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dpkg's buildtools.mk export cross tools.
+    + Add cross building support to upstream build system.
+
+ -- Helmut Grohne <[email protected]>  Wed, 17 Sep 2025 07:14:50 +0200
+
 liblopsub (1.0.5-3.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru liblopsub-1.0.5/debian/patches/cross.patch 
liblopsub-1.0.5/debian/patches/cross.patch
--- liblopsub-1.0.5/debian/patches/cross.patch  1970-01-01 01:00:00.000000000 
+0100
+++ liblopsub-1.0.5/debian/patches/cross.patch  2025-09-17 07:14:50.000000000 
+0200
@@ -0,0 +1,85 @@
+--- liblopsub-1.0.5.orig/Makefile
++++ liblopsub-1.0.5/Makefile
+@@ -16,6 +16,9 @@
+ # makes sure that such files are removed.
+ .DELETE_ON_ERROR:
+ 
++CC_FOR_BUILD ?= $(CC)
++CFLAGS_FOR_BUILD ?= $(CFLAGS)
++CPPFLAGS_FOR_BUILD ?= $(CPPFLAGS)
+ PREFIX ?= /usr/local
+ M4 := m4
+ LN := ln -f
+@@ -28,7 +31,8 @@
+ GZIP := gzip -fn9
+ ZCAT := zcat
+ 
+-CC += -ffile-prefix-map=$(CURDIR)=.
++CFLAGS += -ffile-prefix-map=$(CURDIR)=.
++CFLAGS_FOR_BUILD += -ffile-prefix-map=$(CURDIR)=.
+ 
+ dummy != $(M4) /dev/null || printf 'failed'
+ ifeq ($(dummy), failed)
+@@ -79,20 +83,26 @@
+ %.c: %.l
+       $(LEX) -o $@ $<
+ 
++ifeq ($(CC),$(CC_FOR_BUILD))
++LSGB = lopsubgen
++else
++LSGB = lopsubgen-build
++endif
+ # lopsubgen
+ lopsubgen.lsg.c lopsubgen.lsg.h: lopsubgen.suite lopsubgen-stage1 \
+               lopsub-internal.h
+       ./lopsubgen-stage1 < $<
+-%.lsg.c: %.suite lopsubgen
+-      ./lopsubgen --gen-c < $<
+-%.lsg.h: %.suite lopsubgen
+-      ./lopsubgen --gen-header < $<
+-%.1.gz: %.suite lopsubgen
+-      ./lopsubgen --gen-man=${@:.gz=} --version-string $(GIT_VERSION) < $<
++%.lsg.c: %.suite $(LSGB)
++      ./$(LSGB) --gen-c < $<
++%.lsg.h: %.suite $(LSGB)
++      ./$(LSGB) --gen-header < $<
++%.1.gz: %.suite $(LSGB)
++      ./$(LSGB) --gen-man=${@:.gz=} --version-string $(GIT_VERSION) < $<
+       $(GZIP) ${@:.gz=}
+ 
+ # compiling
+-lsg1_objs := lopsubgen.o lsg1.o version.o
++lsg1_objs := lopsubgen.build.o lsg1.build.o version.build.o
++lsgb_objs := lopsubgen.build.o lsg.build.o lopsubgen.lsg.build.o 
lopsub.build.o version.build.o
+ lsg_objs := lopsubgen.o lsg.o lopsubgen.lsg.o lopsub.o version.o
+ liblopsub_objs := config_file.o lopsub.o version.o
+ lopsubex_objs := lopsubex.o lopsubex.lsg.o $(liblopsub_objs)
+@@ -104,14 +114,18 @@
+ $(lsg_objs) $(liblopsub_objs) $(lopsubex_objs): %.o: %.c
+ lopsubgen.o config_file.o:
+       $(CC) $(CPPFLAGS) $(LLS_CFLAGS) $(CFLAGS) -c -o $@ ${@:.o=.c}
+-lsg1.o: lsg.c lsg.h
+-      $(CC) $(CPPFLAGS) $(LLS_CFLAGS) $(STRICT_CFLAGS) $(CFLAGS) -DSTAGE1 -c 
-o $@ $<
++lsg1.build.o: lsg.c lsg.h
++      $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LLS_CFLAGS) $(STRICT_CFLAGS) 
$(CFLAGS_FOR_BUILD) -DSTAGE1 -c -o $@ $<
++%.build.o: %.c
++      $(CC_FOR_BUILD) -I. $(CPPFLAGS_FOR_BUILD) $(LLS_CFLAGS) 
$(STRICT_CFLAGS) $(CFLAGS_FOR_BUILD) -c -o $@ $<
+ %.o: %.c
+       $(CC) -I. $(CPPFLAGS) $(LLS_CFLAGS) $(STRICT_CFLAGS) $(CFLAGS) -c -o $@ 
$<
+ 
+ # linking
+ lopsubgen-stage1: $(lsg1_objs)
+-      $(CC) -Wall -g $(lsg1_objs) -o $@
++      $(CC_FOR_BUILD) -Wall -g $(lsg1_objs) -o $@
++lopsubgen-build: $(lsgb_objs)
++      $(CC_FOR_BUILD) -Wall -g $(LDFLAGS_FOR_BUILD) -o $@ $(lsgb_objs)
+ lopsubgen: $(lsg_objs)
+       $(CC) -Wall -g $(LDFLAGS) -o $@ $(lsg_objs)
+ $(REALNAME): $(liblopsub_objs)
+@@ -154,5 +168,5 @@
+       $(RM) $(all) $(html) *.o *.man
+ distclean: clean
+       $(RM) *.lsg.c *.lsg.h lopsubgen.c config_file.c lopsubgen-stage1 \
+-              lopsub.h lopsub.7 lopsub-suite.5 version.c
++              lopsubgen-build lopsub.h lopsub.7 lopsub-suite.5 version.c
+ -include Makefile.local
diff -Nru liblopsub-1.0.5/debian/patches/series 
liblopsub-1.0.5/debian/patches/series
--- liblopsub-1.0.5/debian/patches/series       2025-04-11 14:55:08.000000000 
+0200
+++ liblopsub-1.0.5/debian/patches/series       2025-09-17 07:14:50.000000000 
+0200
@@ -1 +1,2 @@
 binNMU.patch
+cross.patch
diff -Nru liblopsub-1.0.5/debian/rules liblopsub-1.0.5/debian/rules
--- liblopsub-1.0.5/debian/rules        2025-04-11 14:55:08.000000000 +0200
+++ liblopsub-1.0.5/debian/rules        2025-09-17 07:14:50.000000000 +0200
@@ -20,6 +20,8 @@
 TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 include /usr/share/dpkg/pkg-info.mk
+DPKG_EXPORT_BUILDTOOLS = 1
+include /usr/share/dpkg/buildtools.mk
 export DEB_VERSION
 
 # activate the dh sequencer

--- End Message ---
--- Begin Message ---
Source: liblopsub
Source-Version: 1.0.6-1
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
liblopsub, 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.
Andreas Tille <[email protected]> (supplier of updated liblopsub 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, 31 Aug 2026 13:38:33 +0200
Source: liblopsub
Architecture: source
Version: 1.0.6-1
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1115556 1126662 1146287 1146288
Changes:
 liblopsub (1.0.6-1) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Andre Noll ]
   * New upstream version
     Closes: #1115556
   * Use dh_installchangelogs. Closes: #1126662
   * Use custom regex in watch file
 .
   [ Andreas Tille ]
   * Set Vcs fields to Salsa in Debian namespace
     Closes: #1146287
   * d/rules: use short dh consequently
   * d/copyright:
      - DEP5
      - more detailed
   * Add d/lrc.config
   * Bump debhelper from old 10 to 13.
     Closes: #1146288
   * Remove redundant Priority: optional from source stanza.
   * Upgrade upstream signing key to new packet format.
   * Update standards version to 4.7.4, no changes needed.
   * Set debhelper-compat version in Build-Depends.
   * d/control: Remove Rules-Requires-Root: no which is default
   * Remove unused lintian-overrides
   * d/watch: version=5
Checksums-Sha1:
 3541b650efc04da763810d3ce9573772942edcca 2032 liblopsub_1.0.6-1.dsc
 eb65953797065b3ee2419ed487f7c0ef7ca5b88c 55884 liblopsub_1.0.6.orig.tar.xz
 5dd0f9346f5eec0818fce20d6f0e7fe96948fae7 6116 liblopsub_1.0.6-1.debian.tar.xz
 2194071c8e52cea01f7dac429fd9bfb5a7b3169b 6829 liblopsub_1.0.6-1_amd64.buildinfo
Checksums-Sha256:
 5fcec579c89a31c8898513db316408358902cb8f5712e1a3d407cda166eecdd1 2032 
liblopsub_1.0.6-1.dsc
 7fbd0954e7af975d118916b349855f23b5a6447221a9430f22fc84c1de18201b 55884 
liblopsub_1.0.6.orig.tar.xz
 0ca6fac3689597a7e14655f383ffe7226a2f37a026e6de81ae27ebc00854af2b 6116 
liblopsub_1.0.6-1.debian.tar.xz
 f44ee83dbb9ad63c063413abfc3bd068db6026751caa72de46b818e0d9dfd795 6829 
liblopsub_1.0.6-1_amd64.buildinfo
Files:
 1c698fc51ac996ea7250114e14b4cf05 2032 libdevel optional liblopsub_1.0.6-1.dsc
 7de5f41e7cc8952430c452a31056a2ca 55884 libdevel optional 
liblopsub_1.0.6.orig.tar.xz
 9c3d4bd2c60b5f99559f76e993dcd374 6116 libdevel optional 
liblopsub_1.0.6-1.debian.tar.xz
 f4718f08ed4fc2118a3bf6d9263462b4 6829 libdevel optional 
liblopsub_1.0.6-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmqhqloRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFZDg//aIs2SmqSd6WDaLhq8MuKodek0N3bMOOQ
nmNA6uat3TWJA5e+7KMkGXqUTiOO7gx/smiQD7eR5oZ2qwhdgdypKkt4V4MVFvEd
ewQgtp33tq2KkT+Fv0GR9hw4ZaWNHgrn9s4dwQvF3gE532pRh8ONMdfaFeTeURRt
FssQ1whybAClbVhfj8MS5GqQNLWa+aS9OmiLTX7INLQ9bPXQiVimCbmKSQ9WdaSm
cv/cfYsabPKHXa0q0cLc3el1Q7dmJJnA4u0w7ea1jgwsh/0o1sCfcT3a07zL24eu
qe/9dxGwmezo9Y2IJtiHrK2Q7ChnHOrGyfWuR4AOyJoqUfuYdMEict+3jvPyMXR8
fEBx8xEDdHS06z8xe7+X4TmcQfdZuiouXmAeAcS/Lywb6Lpzlm2DpIm4xvTPAtc9
emF9GNdeGOxIwDm0ParDs6DJMegZU5MXFbhHK71AIQhY7jy81b/QqLf4ZBu5m6mt
H/ICD9eRsNjsvuovyLAmfAI7q1rIT532gn/Zn2IEMQIfVDc2CGH35t2b/E4vouLw
mHfQNwaW94FkONH3fWspCczdhMHMqC/kTxx1IvvvvVWg3GwnjQKoGcVPxI8mN2Gx
N+3kQjN7lbjnQp3WNVAvRtyWFsaORIJT60XyGFb75xkwmOaCUsAOQA0hyJfd29Hc
QFGZYBthLPw=
=iMAh
-----END PGP SIGNATURE-----

Attachment: pgpzRFXCvtS5N.pgp
Description: PGP signature


--- End Message ---

Reply via email to