Source: inchi
Version: 1.07.1+dfsg-5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

inchi fails to cross build from source, because for one directory its
makefile uses non-standard compiler variable names and thus the ones
provided by dh_auto_build are ignored. I am attaching a patch that
provides compilers via the variables that the build system expects for
your convenience.

Helmut
diff --minimal -Nru inchi-1.07.1+dfsg/debian/changelog 
inchi-1.07.1+dfsg/debian/changelog
--- inchi-1.07.1+dfsg/debian/changelog  2024-11-14 14:37:27.000000000 +0100
+++ inchi-1.07.1+dfsg/debian/changelog  2024-12-05 14:25:14.000000000 +0100
@@ -1,3 +1,10 @@
+inchi (1.07.1+dfsg-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Provide upstream's custom compiler variables. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 05 Dec 2024 14:25:14 +0100
+
 inchi (1.07.1+dfsg-5) unstable; urgency=medium
 
   * Put $(SHARED_LINK_PARM) in quotes in debian/rules (Closes: #1087499)
diff --minimal -Nru inchi-1.07.1+dfsg/debian/rules 
inchi-1.07.1+dfsg/debian/rules
--- inchi-1.07.1+dfsg/debian/rules      2024-11-14 14:37:27.000000000 +0100
+++ inchi-1.07.1+dfsg/debian/rules      2024-12-05 14:25:14.000000000 +0100
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+include /usr/share/dpkg/buildtools.mk
+
 SOMAJOR = $(shell grep -P '^\s*MAIN_VERSION' 
INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile | cut -d . -f 2)
 SOMINOR = $(shell grep -P '^\s*VERSION' 
INCHI-1-SRC/INCHI_API/libinchi/gcc/makefile | cut -d . -f 2-)
 
@@ -16,7 +18,7 @@
        mkdir --parents INCHI-1-SRC/INCHI_EXE/bin/Linux
        # Building inchi_main builds shared library too
        dh_auto_build -- -C INCHI-1-SRC/INCHI_API/demos/inchi_main/gcc 
SHARED_LINK_PARM="$(SHARED_LINK_PARM)"
-       dh_auto_build -- -C INCHI-1-SRC/INCHI_EXE/inchi-1/gcc 
SHARED_LINK_PARM="$(SHARED_LINK_PARM)"
+       dh_auto_build -- -C INCHI-1-SRC/INCHI_EXE/inchi-1/gcc 
SHARED_LINK_PARM="$(SHARED_LINK_PARM)" C_COMPILER='$(CC)' CPP_COMPILER='$(CXX)' 
LINKER='$(CXX) -s'
 
 execute_after_dh_install:
        find INCHI-1-SRC/INCHI_API/bin/Linux -name 'libinchi.so.*' \

Reply via email to