[Pkg-openldap-devel] Bug#839251: unstaged openldap FTCBFS: uses build architecture compiler

Helmut Grohne helmut at subdivi.de
Fri Sep 30 17:54:46 UTC 2016


Source: openldap
Version: 2.4.42+dfsg-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

openldap fails to cross build from source. We've put some energy into
this issue already and the stage1 build does indeed cross build for a
while already. What doesn't work yet is the unstaged cross build. A
first step into that direction has been fixing #839170. Now I can see
that openldap uses the build architecture for contrib/slapd-modules.
Those modules have Makefiles that override the CC environment variable,
so getting a complete openldap cross build is a matter of passing CC to
those four make invocations. Please consider applying the attached
patch.

Helmut
-------------- next part --------------
diff --minimal -Nru openldap-2.4.42+dfsg/debian/changelog openldap-2.4.42+dfsg/debian/changelog
--- openldap-2.4.42+dfsg/debian/changelog	2015-09-11 05:13:19.000000000 +0200
+++ openldap-2.4.42+dfsg/debian/changelog	2016-09-30 17:37:36.000000000 +0200
@@ -1,3 +1,10 @@
+openldap (2.4.42+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CC to make explicitly. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 30 Sep 2016 17:37:13 +0200
+
 openldap (2.4.42+dfsg-2) unstable; urgency=medium
 
   [ Ryan Tandy ]
diff --minimal -Nru openldap-2.4.42+dfsg/debian/rules openldap-2.4.42+dfsg/debian/rules
--- openldap-2.4.42+dfsg/debian/rules	2015-09-08 19:11:03.000000000 +0200
+++ openldap-2.4.42+dfsg/debian/rules	2016-09-30 17:57:14.000000000 +0200
@@ -99,10 +99,10 @@
 override_dh_auto_build:
 	dh_auto_build -- $(MAKEVARS)
 ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
-	$(MAKE) -C contrib/slapd-modules/smbk5pwd
-	$(MAKE) -C contrib/slapd-modules/autogroup
-	$(MAKE) -C contrib/slapd-modules/lastbind
-	$(MAKE) -C contrib/slapd-modules/passwd/sha2
+	$(MAKE) -C contrib/slapd-modules/smbk5pwd CC=$(CC)
+	$(MAKE) -C contrib/slapd-modules/autogroup CC=$(CC)
+	$(MAKE) -C contrib/slapd-modules/lastbind CC=$(CC)
+	$(MAKE) -C contrib/slapd-modules/passwd/sha2 CC=$(CC)
 endif
 
 override_dh_auto_install:


More information about the Pkg-openldap-devel mailing list