Bug#1023487: libsgml-parser-opensp-perl FTCBFS: hard codes the build architecture C++ compiler

Helmut Grohne helmut at subdivi.de
Fri Nov 4 10:23:42 GMT 2022


Source: libsgml-parser-opensp-perl
Version: 0.994-5
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libsgml-parser-opensp-perl fails to cross build from source, because the
Makefile.PL hard codes the build architecture C++ compiler. I'm
attaching a patch for your convenience to make it use the host one and
thus make libsgml-parser-opensp-perl cross buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru libsgml-parser-opensp-perl-0.994/debian/changelog libsgml-parser-opensp-perl-0.994/debian/changelog
--- libsgml-parser-opensp-perl-0.994/debian/changelog	2022-06-18 23:48:03.000000000 +0200
+++ libsgml-parser-opensp-perl-0.994/debian/changelog	2022-11-04 11:18:05.000000000 +0100
@@ -1,3 +1,10 @@
+libsgml-parser-opensp-perl (0.994-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use a triplet-prefixed compiler. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 04 Nov 2022 11:18:05 +0100
+
 libsgml-parser-opensp-perl (0.994-5) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru libsgml-parser-opensp-perl-0.994/debian/patches/cross.patch libsgml-parser-opensp-perl-0.994/debian/patches/cross.patch
--- libsgml-parser-opensp-perl-0.994/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ libsgml-parser-opensp-perl-0.994/debian/patches/cross.patch	2022-11-04 11:17:43.000000000 +0100
@@ -0,0 +1,13 @@
+--- libsgml-parser-opensp-perl-0.994.orig/Makefile.PL
++++ libsgml-parser-opensp-perl-0.994/Makefile.PL
+@@ -13,8 +13,8 @@
+ else
+ {
+     # assume some compatible Linux
+-    $options{LD}   = "g++";
+-    $options{CC}   = "g++";
++    $options{CC}   = $ENV{CXX} || "g++";
++    $options{LD}   = $options{CC};
+     $options{LIBS} = "-lstdc++ -losp";
+ }
+ 
diff --minimal -Nru libsgml-parser-opensp-perl-0.994/debian/patches/series libsgml-parser-opensp-perl-0.994/debian/patches/series
--- libsgml-parser-opensp-perl-0.994/debian/patches/series	2022-06-18 23:48:03.000000000 +0200
+++ libsgml-parser-opensp-perl-0.994/debian/patches/series	2022-11-04 11:16:30.000000000 +0100
@@ -1,2 +1,3 @@
 doc_misspelling.patch
 binnmu_rebuild_fix.patch
+cross.patch
diff --minimal -Nru libsgml-parser-opensp-perl-0.994/debian/rules libsgml-parser-opensp-perl-0.994/debian/rules
--- libsgml-parser-opensp-perl-0.994/debian/rules	2022-06-18 23:48:03.000000000 +0200
+++ libsgml-parser-opensp-perl-0.994/debian/rules	2022-11-04 11:18:02.000000000 +0100
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
 PACKAGE = $(shell dh_listpackages)
 TMP     = $(CURDIR)/debian/$(PACKAGE)
 


More information about the pkg-perl-maintainers mailing list