Source: libcdk5
Version: 5.0.20161210-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libcdk5 fails to cross build from source, because it hard codes the
build architecture compiler (gcc) in one location. After fixing that, it
cross builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru libcdk5-5.0.20161210/debian/changelog 
libcdk5-5.0.20161210/debian/changelog
--- libcdk5-5.0.20161210/debian/changelog       2016-12-14 13:08:21.000000000 
+0100
+++ libcdk5-5.0.20161210/debian/changelog       2017-09-17 16:21:00.000000000 
+0200
@@ -1,3 +1,10 @@
+libcdk5 (5.0.20161210-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not hard code gcc. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 17 Sep 2017 16:21:00 +0200
+
 libcdk5 (5.0.20161210-1) unstable; urgency=low
 
   * New upstream release.
diff --minimal -Nru 
libcdk5-5.0.20161210/debian/patches/explicitly_link_with_ncurses.patch 
libcdk5-5.0.20161210/debian/patches/explicitly_link_with_ncurses.patch
--- libcdk5-5.0.20161210/debian/patches/explicitly_link_with_ncurses.patch      
2015-08-25 17:09:14.000000000 +0200
+++ libcdk5-5.0.20161210/debian/patches/explicitly_link_with_ncurses.patch      
2017-09-17 16:20:55.000000000 +0200
@@ -11,7 +11,7 @@
  
  @MAKE_NORMAL@cdkshlib $(OLD_SHLIB_FILE) :: $(CDKSHOBJS)
 -@MAKE_NORMAL@ gcc -shared -Wl,-soname=$(OLD_SONAME) $(LDFLAGS) $(LIBS) -o 
$(OLD_SHLIB_FILE) $(CDKSHOBJS)
-+@MAKE_NORMAL@ gcc -shared -Wl,-soname=$(OLD_SONAME) $(LDFLAGS) $(LIBS) -o 
$(OLD_SHLIB_FILE) $(CDKSHOBJS) $(LIBS)
++@MAKE_NORMAL@ $(CC) -shared -Wl,-soname=$(OLD_SONAME) $(LDFLAGS) $(LIBS) -o 
$(OLD_SHLIB_FILE) $(CDKSHOBJS) $(LIBS)
  
  #
  # Make the examples directory.

Reply via email to