Backporting shibboleth-sp2 to wheezy
Etienne Dysli-Metref
etienne.dysli-metref at switch.ch
Thu Nov 3 13:08:24 UTC 2016
Hi Ferenc,
Since opensaml2 2.6.0-4~bpo7+1 arrived in the official archive
yesterday, I began backporting shibboleth-sp2 to wheezy. This last piece
has more traps than the other packages: there where many build system
changes since the last backport (2.5.3+dfsg-2~bpo70+1) and I have to
revert things to build for Apache 2.2...
I started by merging debian/master into debian/wheezy-backports to
create debian/wheezy-backports-sloppy. I tried as best as my
understanding allowed to resolve the merge conflicts. Then I removed a
few patches (one unused and two others to go back to non-pkg-config
GSSAPI). I also added the missing PKG_INSTALLDIR and PKG_CHECK_VAR
macros just like for opensaml2.
Now I'm stumbling upon a build failure I have a hard time understanding.
There is an error while executing this line in
'debian/libapache2-mod-shib2.install':
usr/lib/${DEB_HOST_MULTIARCH}/shibboleth/mod_shib_22.so =>
usr/lib/apache2/modules/mod_shib2.so
> Copy failed: No such file or directory at /usr/share/dh-exec/dh-exec-install-rename line 29, <> line 2.
> dh_install: problem reading debian/shibboleth-sp2-utils.install:
Upon inspection of the build chroot, it turns out that the file
'/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/mod_shib_22.so'
does not exist. Here are the last lines of the build log before the error:
> Making install in apache
> make[3]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> make[4]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> make[4]: Nothing to be done for `install-exec-am'.
> /bin/mkdir -p '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth'
> /bin/bash ../libtool --mode=install /usr/bin/install -c mod_shib_22.la '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth'
> libtool: install: warning: relinking `mod_shib_22.la'
> libtool: install: (cd /build/shibboleth-sp2-2.6.0+dfsg1/apache; /bin/bash /build/shibboleth-sp2-2.6.0+dfsg1/libtool --tag CXX --mode=relink g++ -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apache2 -I. -I/usr/include -I/usr/include/apr-1.0 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -g -O2 -pthread -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -I/usr/include/apache2 -Wall -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -DNDEBUG -module -avoid-version -fPIE -pie -Wl,-z,relro -Wl,-z,now -L/usr/lib -o mod_shib_22.la -rpath /usr/lib/x86_64-linux-gnu/shibboleth mod_shib_22_la-mod_shib_22.lo ../shibsp/libshibsp-lite.la -lxerces-c -lxmltooling-lite -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -inst-prefix-dir /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp)
> libtool: relink: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.7/crtbeginS.o .libs/mod_shib_22_la-mod_shib_22.o -L/usr/lib -L/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lshibsp-lite -lxerces-c -lxmltooling-lite -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -L/usr/lib/gcc/x86_64-linux-gnu/4.7 -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crtn.o -pthread -O2 -pthread -O2 -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -pthread -Wl,-soname -Wl,mod_shib_22.so -o .libs/mod_shib_22.so
> libtool: install: /usr/bin/install -c .libs/mod_shib_22.soT /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/mod_shib_22.so
> libtool: install: /usr/bin/install -c .libs/mod_shib_22.lai /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/mod_shib_22.la
> libtool: install: warning: remember to run `libtool --finish /usr/lib/x86_64-linux-gnu/shibboleth'
> make install-data-hook
> make[5]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> for la in ; do rm -f /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/$la ; done
> for la in ; do rm -f /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/$la ; done
> for la in mod_shib_22.la ; do rm -f /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/$la ; done
> for la in ; do rm -f /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/$la ; done
> make[5]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> make[4]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> make[3]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/apache'
> Making install in odbc-store
> make[3]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> make[4]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> make[4]: Nothing to be done for `install-exec-am'.
> /bin/mkdir -p '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth'
> /bin/bash ../libtool --mode=install /usr/bin/install -c odbc-store.la '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth'
> libtool: install: /usr/bin/install -c .libs/odbc-store.so /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/odbc-store.so
> libtool: install: /usr/bin/install -c .libs/odbc-store.lai /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/odbc-store.la
> libtool: install: warning: remember to run `libtool --finish /usr/lib/x86_64-linux-gnu/shibboleth'
> make install-data-hook
> make[5]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> for la in odbc-store.la ; do rm -f /build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/shibboleth/$la ; done
> make[5]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> make[4]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> make[3]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1/odbc-store'
> make[3]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make[4]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make[4]: Nothing to be done for `install-exec-am'.
> /bin/mkdir -p '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
> /usr/bin/install -c -m 644 shibsp.pc shibsp-lite.pc '/build/shibboleth-sp2-2.6.0+dfsg1/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
> make[4]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make[3]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make[2]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make[1]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> debian/rules override_dh_install
> make[1]: Entering directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> # The necessary documentation files are installed in each binary
> # package by dh_installdocs below.
> cd debian/tmp/usr/share/doc/shibboleth-* && \
> rm CREDITS.txt LICENSE.txt NOTICE.txt README.txt RELEASE.txt \
> FASTCGI.LICENSE OPENSSL.LICENSE LOG4CPP.LICENSE
> # The tag file is unreproducible (it captures the full build path),
> # but is used as a "stamp" file during the build.
> cd debian/tmp/usr/share/doc/shibboleth-* && rm -f api/shibboleth.tag api/html/*.md5 api/html/*.map
> cd debian/tmp/etc/shibboleth && \
> rm *.dist *.config shibd-amazon shibd-osx.plist shibd-redhat shibd-suse \
>
> mkdir -p debian/tmp/usr/include/x86_64-linux-gnu/shibsp
> mv debian/tmp/usr/include/shibsp/paths.h \
> debian/tmp/usr/include/x86_64-linux-gnu/shibsp/
> dh_install --list-missing
> Copy failed: No such file or directory at /usr/share/dh-exec/dh-exec-install-rename line 29, <> line 2.
> dh_install: problem reading debian/shibboleth-sp2-utils.install:
> make[1]: *** [override_dh_install] Error 2
> make[1]: Leaving directory `/build/shibboleth-sp2-2.6.0+dfsg1'
> make: *** [binary] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
> I: copying local configuration
> E: Failed autobuilding of package
I can't map this failure back to what I merged earlier... Could you help
me figure this one out?
Cheers,
Etienne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shibboleth-devel/attachments/20161103/cde7aee0/attachment.sig>
More information about the Pkg-shibboleth-devel
mailing list