Source: luajit
Version: 2.1.0~beta3+dfsg-5.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

luajit fails to cross build from source, because it does a native build.
For cross builds one is supposed to pass $(CROSS) to make though that
also works for native builds. The attached patch implements that and
makes a cross build from amd64 to e.g. arm64 succeed. Please consider
applying it.

Helmut
diff --minimal -Nru luajit-2.1.0~beta3+dfsg/debian/changelog 
luajit-2.1.0~beta3+dfsg/debian/changelog
--- luajit-2.1.0~beta3+dfsg/debian/changelog    2017-10-25 11:24:21.000000000 
+0200
+++ luajit-2.1.0~beta3+dfsg/debian/changelog    2018-08-06 21:24:50.000000000 
+0200
@@ -1,3 +1,10 @@
+luajit (2.1.0~beta3+dfsg-5.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass toolchain prefix for the other tools. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 06 Aug 2018 21:24:50 +0200
+
 luajit (2.1.0~beta3+dfsg-5.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru luajit-2.1.0~beta3+dfsg/debian/rules 
luajit-2.1.0~beta3+dfsg/debian/rules
--- luajit-2.1.0~beta3+dfsg/debian/rules        2017-10-11 10:48:09.000000000 
+0200
+++ luajit-2.1.0~beta3+dfsg/debian/rules        2018-08-06 21:24:45.000000000 
+0200
@@ -12,7 +12,7 @@
        dh $@
 
 override_dh_auto_build:
-       make amalg PREFIX=/usr CC=gcc MULTILIB=lib/$(DEB_HOST_MULTIARCH)
+       $(MAKE) amalg PREFIX=/usr MULTILIB=lib/$(DEB_HOST_MULTIARCH) 
CROSS=$(DEB_HOST_GNU_TYPE)-
 
 override_dh_auto_install:
        make install PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp/ 
MULTILIB=lib/$(DEB_HOST_MULTIARCH) LDCONFIG="/sbin/ldconfig -n"

Reply via email to