Your message dated Sat, 12 Aug 2023 00:13:50 +0000
with message-id <[email protected]>
and subject line Bug#947968: fixed in openctm 1.0.3+dfsg1-3
has caused the Debian Bug report #947968,
regarding openctm 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.)


-- 
947968: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947968
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: openctm
Version: 1.0.3+dfsg1-2.1
Tags: patch
User: [email protected]
Usertags: ftcbfs

openctm fails to cross build from source, because it builds for the
build architecture. Using dh_auto_build partially fixes that, but the
upstream build system hard codes build architecture build tools in a few
occasions. Even then, it fails running bin2c, because it needs to be run
during build and thus built using the build architecture compiler.
Please consider applying the attached patch to fix all of the aspects.

Helmut
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/changelog 
openctm-1.0.3+dfsg1/debian/changelog
--- openctm-1.0.3+dfsg1/debian/changelog        2019-12-19 00:54:01.000000000 
+0100
+++ openctm-1.0.3+dfsg1/debian/changelog        2020-01-02 20:25:47.000000000 
+0100
@@ -1,3 +1,13 @@
+openctm (1.0.3+dfsg1-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + cross.patch: Make build tools substitutable.
+    + Let dh_auto_build pass cross tools to make.
+    + Build the build tool "bin2c" for the build architecture.
+
+ -- Helmut Grohne <[email protected]>  Thu, 02 Jan 2020 20:25:47 +0100
+
 openctm (1.0.3+dfsg1-2.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/patches/cross.patch 
openctm-1.0.3+dfsg1/debian/patches/cross.patch
--- openctm-1.0.3+dfsg1/debian/patches/cross.patch      1970-01-01 
01:00:00.000000000 +0100
+++ openctm-1.0.3+dfsg1/debian/patches/cross.patch      2020-01-02 
20:25:47.000000000 +0100
@@ -0,0 +1,32 @@
+--- openctm-1.0.3+dfsg1.orig/lib/Makefile.linux
++++ openctm-1.0.3+dfsg1/lib/Makefile.linux
+@@ -72,7 +72,7 @@
+       $(RM) $(DYNAMICLIB) $(SONAME) $(LIBNAME) $(OBJS) $(LZMA_OBJS)
+ 
+ $(DYNAMICLIB): $(OBJS) $(LZMA_OBJS)
+-      gcc $(LDFLAGS) -shared -s -Wl,-soname,$(SONAME) -o $@ $(OBJS) 
$(LZMA_OBJS) -lm
++      $(CC) $(LDFLAGS) -shared -s -Wl,-soname,$(SONAME) -o $@ $(OBJS) 
$(LZMA_OBJS) -lm
+       ln -s $(DYNAMICLIB) $(SONAME)
+       ln -s $(DYNAMICLIB) $(LIBNAME)
+ 
+--- openctm-1.0.3+dfsg1.orig/tools/Makefile.linux
++++ openctm-1.0.3+dfsg1/tools/Makefile.linux
+@@ -38,7 +38,8 @@
+ #PNGLITEDIR = pnglite
+ 
+ CXX = g++
+-CXXFLAGS += -W -Wall `pkg-config --cflags gtk+-2.0` -I$(OPENCTMDIR) 
-I$(RPLYDIR) -I$(GLEWDIR)
++PKG_CONFIG ?= pkg-config
++CXXFLAGS += -W -Wall `$(PKG_CONFIG) --cflags gtk+-2.0` -I$(OPENCTMDIR) 
-I$(RPLYDIR) -I$(GLEWDIR)
+ 
+ MESHOBJS = mesh.o meshio.o ctm.o ply.o rply.o stl.o 3ds.o dae.o obj.o lwo.o 
off.o wrl.o
+ CTMCONVOBJS = ctmconv.o common.o systimer.o convoptions.o $(MESHOBJS)
+@@ -109,7 +110,7 @@
+ #     gcc -c -Os -W -I$(GLEWDIR) -o $@ $<
+ 
+ rply.o: $(RPLYDIR)/rply.c
+-      gcc $(CPPFLAGS) $(CFLAGS) -c -O2 -W -I$(RPLYDIR) -o $@ $<
++      $(CC) $(CPPFLAGS) $(CFLAGS) -c -O2 -W -I$(RPLYDIR) -o $@ $<
+ 
+ #pnglite.o: $(PNGLITEDIR)/pnglite.c
+ #     gcc -c -O2 -W -I$(PNGLITEDIR) -o $@ $<
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/patches/series 
openctm-1.0.3+dfsg1/debian/patches/series
--- openctm-1.0.3+dfsg1/debian/patches/series   2018-03-24 18:01:59.000000000 
+0100
+++ openctm-1.0.3+dfsg1/debian/patches/series   2020-01-02 20:25:47.000000000 
+0100
@@ -1,2 +1,3 @@
 makefiles
 escape-hyphens-in-man
+cross.patch
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/rules 
openctm-1.0.3+dfsg1/debian/rules
--- openctm-1.0.3+dfsg1/debian/rules    2019-12-19 00:51:25.000000000 +0100
+++ openctm-1.0.3+dfsg1/debian/rules    2020-01-02 20:25:47.000000000 +0100
@@ -3,7 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
@@ -25,6 +25,10 @@
        rm -rf $(TDIR)/tools/zlib
        tar -jcf openctm_$(DEBVERSION).orig.tar.bz2 $(TDIR)
 
+override_dh_auto_build:
+       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build 
--buildsystem=makefile --sourcedirectory=tools -- -f Makefile.linux bin2c
+       dh_auto_build
+
 override_dh_compress:
        dh_compress -X.pdf
 

--- End Message ---
--- Begin Message ---
Source: openctm
Source-Version: 1.0.3+dfsg1-3
Done: Bastian Germann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
openctm, 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.
Bastian Germann <[email protected]> (supplier of updated openctm 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: Sat, 12 Aug 2023 00:35:47 +0200
Source: openctm
Architecture: source
Version: 1.0.3+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 947968 967670
Changes:
 openctm (1.0.3+dfsg1-3) unstable; urgency=medium
 .
   * Team upload
   * openctm-tools: Drop ctmviewer (Closes: #967670)
   * Enable automatic repacking
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: (Closes: #947968)
     + cross.patch: Make build tools substitutable
     + Let dh_auto_build pass cross tools to make
     + Build the build tool "bin2c" for the build architecture
Checksums-Sha1:
 e01b321e3046b076523627d7e330367cafd0705d 2087 openctm_1.0.3+dfsg1-3.dsc
 5962dca7fc3e2d63196e2ff7fc5f8ca252437c0f 12820 
openctm_1.0.3+dfsg1-3.debian.tar.xz
 2bda0df67f73350121cadf558713c224091f2b3e 5565 
openctm_1.0.3+dfsg1-3_source.buildinfo
Checksums-Sha256:
 730f7233e28aa0eda25445ca7f6cb3ea57f2b8cf8a5197247a9997cc46adf65e 2087 
openctm_1.0.3+dfsg1-3.dsc
 d8c8cff7dda2b572ac756f0ca449e56688ed5a0a854467454c33ffc533aa5dcf 12820 
openctm_1.0.3+dfsg1-3.debian.tar.xz
 6e175cf90fb21513177e077a08d725873625461cfb8d610a25572748095660a8 5565 
openctm_1.0.3+dfsg1-3_source.buildinfo
Files:
 0789dcc5f64263710b41f8948b823683 2087 libs optional openctm_1.0.3+dfsg1-3.dsc
 545f19327376a0ce6be7a82f6e8e629b 12820 libs optional 
openctm_1.0.3+dfsg1-3.debian.tar.xz
 274695674c3d9b8b4c76c16e0dec5fb7 5565 libs optional 
openctm_1.0.3+dfsg1-3_source.buildinfo

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

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmTWyrgQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFCGrDACc/awrn9cI+i+JNG2o5FMfck91TSXAHuH+
7Cg6rg8gBvLiLgnrD3uN+5lKhVa6sgPpVOiFOcCjR0FcTtGOFGj7QFlYp44z9Fmg
UuCRVdoRo6S4PFc5mO2YU7ymnlusjsRCibp2cl5LR6FgvjmBLb6y6U65a/tD2Zzf
VodMLpoBgQw/XJuNANVz2flOmAUAVHqwpZssS+oKiebC+J7CaKtyyM24NxqWUMOr
A5qZ+Sf0HT7U8Bh24EcscPbD05iOgZezFBIct8buwUUM2K71mGWMXiMKQI5XBZ5y
oYCzDJAkCh84fpK65oS82reUTTO47YJOh4vihFG4gYsM4xM+wdlNVYtQZy5b3heu
AjnHM3CwtoEO/Ur/QrjDaCL/1kc+Hmvjs412NWr6FUEgmSUGIyI2jcgD4a8oVrxv
nR/PW8bLeeidNB8ILj7ffNfFIySgrtMAse3nRa6vy++tK6eScfR9SWCwvViZlzbt
i5I43abI9dYoIeBrgOmO02pThy7bSgk=
=PTKW
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to