Package: libcln-dev Version: 1.3.6-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs Control: affects -1 + src:ginac
ginac fails to cross build from source, because it cannot find cln.pc using pkg-config. During cross compilation, pkg-config does not search /usr/lib/pkgconfig. It only searches /usr/share/pkgconfig and /usr/lib/<triplet>/pkgconfig. To be usable for cross compilation, cln.pc must be moved to a multiarch location. Please consider applying the attached patch. Helmut
diff --minimal -Nru cln-1.3.6/debian/changelog cln-1.3.6/debian/changelog --- cln-1.3.6/debian/changelog 2019-12-05 22:04:40.000000000 +0100 +++ cln-1.3.6/debian/changelog 2019-12-23 14:58:29.000000000 +0100 @@ -1,3 +1,10 @@ +cln (1.3.6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Move cln.pc to a multiarch location. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 23 Dec 2019 14:58:29 +0100 + cln (1.3.6-1) unstable; urgency=low * New upstream release. diff --minimal -Nru cln-1.3.6/debian/libcln-dev.dirs cln-1.3.6/debian/libcln-dev.dirs --- cln-1.3.6/debian/libcln-dev.dirs 2009-07-02 08:17:53.000000000 +0200 +++ cln-1.3.6/debian/libcln-dev.dirs 2019-12-23 14:58:08.000000000 +0100 @@ -1,5 +1,4 @@ usr/include -usr/lib/pkgconfig usr/share/aclocal usr/share/doc-base usr/share/doc/libcln-dev/html diff --minimal -Nru cln-1.3.6/debian/rules cln-1.3.6/debian/rules --- cln-1.3.6/debian/rules 2016-10-02 10:15:01.000000000 +0200 +++ cln-1.3.6/debian/rules 2019-12-23 14:58:29.000000000 +0100 @@ -68,7 +68,8 @@ ${MAKE} install prefix=${CURDIR}/debian/tmp/usr bindir=${CURDIR}/debian/pi/usr/bin mandir=${CURDIR}/debian/pi/usr/share/man datadir=${CURDIR}/debian/libcln-dev/usr/share ${MAKE} install-html prefix=${CURDIR}/debian/libcln-dev/usr htmldir=${CURDIR}/debian/libcln-dev/usr/share/doc/libcln-dev/html # This installs into libdir, but we must not set libdir because it affects the .la file: - mv ${CURDIR}/debian/tmp/usr/lib/pkgconfig/* ${CURDIR}/debian/libcln-dev/usr/lib/pkgconfig/ + mkdir -p ${CURDIR}/debian/libcln-dev/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig + mv ${CURDIR}/debian/tmp/usr/lib/pkgconfig/* ${CURDIR}/debian/libcln-dev/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/ dh_installdocs ChangeLog NEWS README TODO dh_installexamples -plibcln-dev ${CURDIR}/examples/contfrac.cc ${CURDIR}/examples/e.cc ${CURDIR}/examples/fibonacci.cc ${CURDIR}/examples/legendre.cc ${CURDIR}/examples/lucaslehmer.cc ${CURDIR}/examples/nextprime.cc ${CURDIR}/examples/perfnum.cc /usr/bin/install -m 644 debian/libcln-dev.doc-base ${CURDIR}/debian/libcln-dev/usr/share/doc-base/libcln-dev