Bug#1079533: openldap FTCBFS: invokes the build architecture compiler in one occasion

Helmut Grohne helmut at subdivi.de
Fri Aug 23 21:30:53 BST 2024


Source: openldap
Version: 2.5.18+dfsg-2
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

Hi Ryan,

as I retested openldap, I figured that it would fail to cross build
(without pkg.openldap.noslapd as is used by bootstrapping). The build
fails during dh_auto_install -Dcontrib/slapd-modules/ppm. Looking
closely, this is during the install step when everything has already
been built and it happens in the ppm subdirectory. The linker step for
ppm.so is run again (despite having linked it during dh_auto_build
successfully) and since dh_auto_install does not pass cross tools to
make, it uses the build architecture compiler this time and fails. The
reason for this is that the compiler invocation happens in the ppm
target, but what is being created is ppm.so. Hence make sees that ppm
still does not exist and invokes the build instruction again. I propose
renaming the target to ppm.so (matching what actually is being created).
Then dh_auto_install will not relink ppm.so and instead install it
successfully. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 996 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-openldap-devel/attachments/20240823/766c9e20/attachment.patch>


More information about the Pkg-openldap-devel mailing list