[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#890522: caja-extensions FTCBFS: fails running caja-sendto-scan



Source: caja-extensions
Version: 1.20.0-1
Severity: wishlist
User: helmutg@debian.org
Usertags: rebootstrap

Hi Mike,

You asked me to file a bug without patch on caja-extensions for its
cross build failure. The build ultimately fails running
caja-sendto-scan with an "Exec format error". This is typical for gtkdoc
usage as it tends to build *-scan utils and runs them.

The usual approach to fix these issues is to recognize that the gtkdoc
output is architecture dependent. Often times, the generated
documentation is shipped in a separate -doc package that is Arch:all.
When that is the case, we can pass --disable-gtk-doc to ./configure for
arch-only builds and the cross build issue is solved.

caja-extensions ships the html files in arch:any packages though. So one
approach is moving the documentation to an arch:all package.

Another approach is to build twice during a full build. Use out-of-tree
builds and have build directories for binary-arch and binary-indep.
Configure binary-arch as normal passing --disable-gtk-doc and configure
binary-indep for the build architecture with:

    dpkg-architecture -f -a${DEB_BUILD_ARCH} -c dh_auto_configure -- ... --enable-gtk-doc

Doing so means that you need to duplicate(!) most of your Build-Depends.
For each development dependency e.g. libdbus-1-dev you add
libdbus-1-dev:native. We tend to avoid this dance in favour of moving
documentation to arch:all packages. And if both are too heavy, you can
simply give up and say that caja-extensions is irrelevant to cross
building.

Concerning my needs on bugs: All I need is a bug number. Usertags are
nice to have, but the only thing I really need is a bug number in the
Debian bts.

Hope this helps

Helmut


Reply to: