[Sorry I was not subscribed when I got the answer from George Danchev] So anyway I tried the --same-arch flag and it *seems* to be working on alpha (there is no log reporting failure), but it clearly does not work on armel:
Here is a copy of the control file: ... Package: libgdcm-cil Section: cli-mono Architecture: i386 lpia kfreebsd-i386 powerpc amd64 kfreebsd-amd64 ia64 arm armeb sparc s390 ... Here is a copy of the libgdcm-cil.install file: usr/lib/gdcm-sharp.dll usr/lib/libgdcm-cil usr/lib/gdcm-sharp.dll.config usr/lib/libgdcm-cil usr/lib/libgdcmsharpglue.so usr/lib/libgdcm-cil And here is the log from the buildd: https://buildd.debian.org/~luk/status/package.php?p=gdcm ... gdcm/armel tail of last log: #cd /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr/lib && mkdir jni #cd /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr/lib && mv libgdcmjni.so jni # correct location of libvtkgdcm-java #cd /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr && mv lib/vtkgdcm.jar share/java #cd /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr/lib && mv libvtkgdcmJava.so jni # correct location of libvtkgdcm-java #cd /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr && mv man share /usr/bin/make -f /build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/rules DH_OPTIONS=-a binary-common make[1]: Entering directory `/build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12' dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_installmenu dh_installman dh_lintian dh_install --sourcedir=/build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp --same-arch --fail-missing cp: cannot stat `/build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12/debian/tmp/usr/lib/gdcm-sharp.dll': No such file or directory dh_install: cp returned exit code 1 make[1]: *** [binary-common] Error 1 make: *** [binary-arch] Error 2 make[1]: Leaving directory `/build/buildd-gdcm_2.0.12-3-armel-kHHEDH/gdcm-2.0.12' dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2 ... On Thu, Jul 2, 2009 at 6:17 PM, Mathieu Malaterre<[email protected]> wrote: > Hi there > > Once again I am struggling to make gdcm compile on some Arch. For > instance on alpha, I am getting: > > https://buildd.debian.org/~luk/status/package.php?p=gdcm > > gdcm/alpha failing reason: > > [Category: none] >> dh_install >> --sourcedir=/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12/debian/tmp >> --fail-missing >> cp: cannot stat >> `/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12/debian/tmp/usr/lib/gdcm-sharp.dll': >> No such file or directory >> dh_install: cp returned exit code 1 >> make[1]: *** [binary-common] Error 1 >> make[1]: Leaving directory >> `/build/buildd-gdcm_2.0.12-1-alpha-lrSEzc/gdcm-2.0.12' > > > This is (according to debian-cli) because there is no mono on alpha. > Thus I modified the debian/rules & debian/control to conditionally > compile the cli > binding of gdcm. > As one can see the building part is going well (cmake does not > generate the selected make rules associated with the CLI binding). > > However the dh_install part still try to install the > cli binding, eventhought the debian/control file explicitly discard > Alpha from the list of Arch. > > > $ cat debian/control > ... > Package: libgdcm-cil > Section: cli-mono > Architecture: i386 lpia kfreebsd-i386 powerpc amd64 kfreebsd-amd64 > ia64 arm armeb armel sparc s390 > ... > > > Why is dh_install still trying to install the libgdcm-cil.install > stuff ? What do I need to do to skip it ? > > On a more general question, could someone please let me know of a good > debian package example with one source package and multiple > conditional binary package. > > Thank you > -- > Mathieu > > Ref: > http://packages.qa.debian.org/g/gdcm.html > -- Mathieu -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

