[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#990021: ppp: FTCBFS -- uses the build architecture compiler



Source: ppp
Version: 2.4.9-1+1
Severity: normal
Tags: patch
X-Debbugs-Cc: debian-cross@lists.debian.org, Jonathan Tremesaygues <jonathan.tremesaygues@sereema.com>
User: debian-cross@lists.debian.org
Usertags: ftcbfs

On debian-user Jonathan Tremesaygues pointed out[1] that ppp fails to
build when cross compiling because it uses the build architecture
compiler instead of the host architecture compiler. I tried switching
from ./configure to dh_auto_configure but that doesn't work because ppp
doesn't use autotools for its configure script. Reading the configure
script I noticed it supports a --cross_compile option but that doesn't
work because it calls cc instead of gcc and as far as I can tell Debian
doesn't have alternatives for cross-compile cc, only for the native cc.
The --cc=gcc option is a workaround for that, please apply this patch:

--- a/debian/rules
+++ b/debian/rules
@@ -60,7 +60,7 @@
 	[ ! -f Makefile ] || $(MAKE) dist-clean
 
 override_dh_auto_configure:
-	./configure --prefix=/usr
+	./configure --prefix=/usr --cc=gcc --cross_compile="$(DEB_HOST_GNU_TYPE)-"
 	if [ ! -d pppd-udeb/ ]; then \
 		mkdir pppd-udeb/ && \
 		cp -ldpR pppd/* pppd-udeb/; \

   1. https://lists.debian.org/msgid-search/90e1eb11-645e-77be-9209-ada4ee080515@sereema.com

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: