Source: libpam-chroot Version: 0.9-4.3 Tags: patch User: [email protected] Usertags: ftcbfs
libpam-chroots fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - is not sufficient here as make install strips with the build architecture strip. Doing so also breaks generation of -dbgsym packages as well as DEB_BUILD_OPTIONS=nostrip (reported as #437385). It is best to disable such stripping. Please consider applying the attached patch. It also fixes #437385. Helmut
diff -u libpam-chroot-0.9/Makefile libpam-chroot-0.9/Makefile --- libpam-chroot-0.9/Makefile +++ libpam-chroot-0.9/Makefile @@ -5,6 +5,7 @@ CPPFLAGS=-I. LDFLAGS=-shared DESTDIR=/ +INSTALL?=install OUT=pam_chroot.so CONF=chroot.conf @@ -21,2 +22,2 @@ - install -s -o0 -g0 -m755 $(OUT) $(DESTDIR)/lib/security - install -m640 $(CONF) $(DESTDIR)/etc/security + $(INSTALL) -s -o0 -g0 -m755 $(OUT) $(DESTDIR)/lib/security + $(INSTALL) -m640 $(CONF) $(DESTDIR)/etc/security diff -u libpam-chroot-0.9/debian/changelog libpam-chroot-0.9/debian/changelog --- libpam-chroot-0.9/debian/changelog +++ libpam-chroot-0.9/debian/changelog @@ -1,3 +1,13 @@ +libpam-chroot (0.9-4.4) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Make install substitutable. + + Pass a non-stripping install to make install. + + -- Helmut Grohne <[email protected]> Thu, 16 Jan 2020 16:12:37 +0100 + libpam-chroot (0.9-4.3) unstable; urgency=medium * Non-maintainer upload. diff -u libpam-chroot-0.9/debian/control libpam-chroot-0.9/debian/control --- libpam-chroot-0.9/debian/control +++ libpam-chroot-0.9/debian/control @@ -2,7 +2,7 @@ Section: devel Priority: optional Maintainer: Javier Fernandez-Sanguino Pen~a <[email protected]> -Build-Depends: libpam0g-dev, debhelper (>> 3.0.0) +Build-Depends: libpam0g-dev, debhelper (>= 7) Standards-Version: 3.9.2 Homepage: http://sourceforge.net/projects/pam-chroot/ diff -u libpam-chroot-0.9/debian/rules libpam-chroot-0.9/debian/rules --- libpam-chroot-0.9/debian/rules +++ libpam-chroot-0.9/debian/rules @@ -14,7 +14,7 @@ build-stamp: dh_testdir - $(MAKE) + dh_auto_build touch build-stamp clean: @@ -30,7 +30,7 @@ dh_installdirs # Add here commands to install the package into debian/libpam-chroot - $(MAKE) install DESTDIR=$(CURDIR)/debian/libpam-chroot + $(MAKE) install DESTDIR=$(CURDIR)/debian/libpam-chroot INSTALL="install --strip-program=true" # Build architecture-independent files here.

