It seems that my fix actually made things worse since the builds have failed for almost all architectures [1]. I think the cause is me not reading correctly pbuilder's man page and build testing my previous version with "--debbuildopts -B" instead of "--binary-arch". I've committed a new version, with a better separation of arch and indep in d/rules [2]. I've checked that "pbuilder --debbuildopts -A" builds only indep packages, that "pbuilder --binary-arch" build only arch packages and that packages are usable.
Does this new version seem correct ? Are there other tests to run than my pbuilder ones ? Sorry for the noise ! [1] https://buildd.debian.org/status/package.php?p=odil [2] https://anonscm.debian.org/cgit/debian-med/odil.git/commit/ Cheers, -- Julien Le 21/04/2016 à 17:55, Andreas Tille a écrit : > Uploaded. Thanks for your quick fix, Andreas. > > On Thu, Apr 21, 2016 at 04:57:13PM +0200, Julien Lamy wrote: >> Dear all, >> I've committed a fix for #822110 (FTBFS when building only >> arch-independent packages) in the git repository of Odil. Building only >> architecture-independent as well as only architecture-dependent works >> without problem in pbuilders, and the resulting packages are usable. >> >> If everything looks OK, could I get an upload ? >> >> Cheers, >> -- >> Julien >> >> Le 21/04/2016 12:20, Santiago Vila a écrit : >>> Package: src:odil >>> Version: 0.5.0-1 >>> User: [email protected] >>> Usertags: binary-indep >>> Severity: important >>> >>> Dear maintainer: >>> >>> I tried to build this package with "dpkg-buildpackage -A" >>> (i.e. only architecture-independent packages), and it failed: >>> >>> -------------------------------------------------------------------------------- >>> [...] >>> debian/rules build-indep >>> dh build-indep --builddirectory=build --parallel --with python2 >>> dh_testdir -i -O--builddirectory=build -O--parallel >>> dh_update_autotools_config -i -O--builddirectory=build -O--parallel >>> dh_auto_configure -i -O--builddirectory=build -O--parallel >>> cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON >>> -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc >>> -DCMAKE_INSTALL_LOCALSTATEDIR=/var >>> -- The C compiler identification is GNU 5.3.1 >>> -- The CXX compiler identification is GNU 5.3.1 >>> -- Check for working C compiler: /usr/bin/cc >>> -- Check for working C compiler: /usr/bin/cc -- works >>> -- Detecting C compiler ABI info >>> -- Detecting C compiler ABI info - done >>> >>> [... snipped ...] >>> >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/ApplicationContext.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/Item.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/UserIdentityRQ.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/ImplementationClassUID.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AReleaseRP.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AAssociateRJ.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/UserInformation.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/Object.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/RoleSelection.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/PresentationContext.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/PresentationContextAC.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AAssociateRQ.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/UserIdentityAC.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AReleaseRQ.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AAssociateAC.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/UserInformation.txx >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/PresentationContextRQ.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AAbort.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/AAssociate.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/PDataTF.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/ImplementationVersionName.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/pdu/MaximumLength.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/StoreSCU.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/BasicDirectoryCreator.h >>> -- Installing: >>> /<<PKGBUILDDIR>>/debian/tmp/usr/include/odil/AssociationParameters.h >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/libodil.so.0.5.0 >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/libodil.so.0 >>> -- Installing: /<<PKGBUILDDIR>>/debian/tmp/usr/lib/libodil.so >>> make[1]: Leaving directory '/<<PKGBUILDDIR>>/build' >>> debian/rules override_dh_install >>> make[1]: Entering directory '/<<PKGBUILDDIR>>' >>> dh_install >>> chrpath -d debian/python-odil/usr/lib/python*/dist-packages/odil.so >>> open: No such file or directory >>> elf_open: Invalid argument >>> debian/rules:21: recipe for target 'override_dh_install' failed >>> make[1]: *** [override_dh_install] Error 1 >>> make[1]: Leaving directory '/<<PKGBUILDDIR>>' >>> debian/rules:11: recipe for target 'binary-indep' failed >>> make: *** [binary-indep] Error 2 >>> dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error >>> exit status 2 >>> -------------------------------------------------------------------------------- >>> >>> Explanation: We are creating arch-dependent packages only, so >>> debian/python-odil/[...] does not exist because python-odil is >>> arch-dependent. >>> >>> Hint: Try splitting override_dh_install into override_dh_install-arch >>> and override_dh_install-indep, or, if everything ends up being moved >>> to override_dh_install-arch, just rename override_dh_install to >>> override_dh_install-arch. >>> >>> Thanks. >>> >> >> >

