Source: crack
Version: 5.0a-12
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

crack fails to cross build from source, because it hard codes the build
architecture compiler. Please consider applying the attached patch to
pick up a cross compiler and make crack cross buildable.

Helmut
diff --minimal -Nru crack-5.0a/debian/Crack.make crack-5.0a/debian/Crack.make
--- crack-5.0a/debian/Crack.make        2018-06-05 04:19:49.000000000 +0200
+++ crack-5.0a/debian/Crack.make        2020-02-29 07:48:07.000000000 +0100
@@ -54,7 +54,7 @@
 #LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg: NetBSD 
MD5
 
 # gcc 2.7.2
-CC=gcc
+: "${CC:=gcc}"
 CFLAGS="-g -O2 -Wall $C5FLAGS"
 LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg: NetBSD 
MD5
 
diff --minimal -Nru crack-5.0a/debian/changelog crack-5.0a/debian/changelog
--- crack-5.0a/debian/changelog 2018-06-05 21:28:16.000000000 +0200
+++ crack-5.0a/debian/changelog 2020-02-29 07:48:37.000000000 +0100
@@ -1,3 +1,10 @@
+crack (5.0a-12.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk seed CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 29 Feb 2020 07:48:37 +0100
+
 crack (5.0a-12) unstable; urgency=medium
 
   [ Raphaƫl Hertzog ]
diff --minimal -Nru crack-5.0a/debian/rules crack-5.0a/debian/rules
--- crack-5.0a/debian/rules     2018-06-05 04:19:49.000000000 +0200
+++ crack-5.0a/debian/rules     2020-02-29 07:48:36.000000000 +0100
@@ -2,6 +2,8 @@
 #export DH_VERBOSE=1
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
 
 %:
        dh $@

Reply via email to