Hi,
2017-08-21 16:22 Helmut Grohne:
Source: libmbim
Version: 1.14.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
libmbim fails to cross build from source:
| /<<PKGBUILDDIR>>/docs/reference/libmbim-glib/libmbim-glib-scan: line 117:
/<<PKGBUILDDIR>>/docs/reference/libmbim-glib/.libs/libmbim-glib-scan: cannot execute binary
file: Exec format error
| /<<PKGBUILDDIR>>/docs/reference/libmbim-glib/libmbim-glib-scan: line 117:
/<<PKGBUILDDIR>>/docs/reference/libmbim-glib/.libs/libmbim-glib-scan: Success
| Scan failed:
| Makefile:676: recipe for target 'scan-build.stamp' failed
| make[6]: *** [scan-build.stamp] Error 126
| make[6]: Leaving directory '/<<PKGBUILDDIR>>/docs/reference/libmbim-glib'
| Makefile:435: recipe for target 'all' failed
| make[5]: *** [all] Error 2
| make[5]: Leaving directory '/<<PKGBUILDDIR>>/docs/reference/libmbim-glib'
| Makefile:379: recipe for target 'all-recursive' failed
| make[4]: *** [all-recursive] Error 1
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/docs/reference'
| Makefile:379: recipe for target 'all-recursive' failed
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/docs'
| Makefile:434: recipe for target 'all-recursive' failed
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| Makefile:366: recipe for target 'all' failed
| make[1]: *** [all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: make -j1 returned exit code 2
| debian/rules:4: recipe for target 'build-arch' failed
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
Upon closer inspection, I wondered why it was building documentation in
an arch-any build. It turns out that an arch-only build works just fine
with --disable-gtk-doc. That's not only faster, but also successful for
cross compilation. Please consider applying the attached patch.
Would it be possible to include this patch in the next uploads? It
would allow to cross-build packages that need it like modemmanager,
quite popular and itself needed for many other basic packages
(network-manager, gnome-control-center).
We could offer to NMU, but since the package seems to be well
maintained, it's probably unneeded.
Still, if we can help to move this forward in any way, please tell.
Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montez...@gmail.com>