On Sat, 20 Jan 2024 at 22:11:22 +0100, Helmut Grohne wrote:
> libgsf fails to cross build from source, because the upstream
> configure.ac detects pkg-config using AC_PATH_PROG and thus detects the
> build architecture pkg-config which fails to find tons of packages. This
> is easily fixed by using the recommended upstream macro
> PKG_PROG_PKG_CONFIG instead. I'm attaching a patch for this.

I included this patch in
<https://salsa.debian.org/debian/libgsf/-/merge_requests/5>.

> Then libgsf goes a lot further, but fails building its documentation due
> to the use of gtk-doc. We do not currently have any solution for gtk-doc
> and hence libgsf will not be cross buildable.

One way to mitigate this is to avoid running gtk-doc under the nodoc
build option, and then do the cross-build with that option.

With the changes proposed in
<https://salsa.debian.org/debian/libgsf/-/merge_requests/5>, gtk-doc is
not run when the nodoc build option is active, and I've confirmed that
in combination with the other changes in the MR, that's enough to be able
to cross-compile libgsf for a foreign architecture (I tried s390x).

> Would you consider
> splitting the documentation from the -dev package into a dedicated -doc
> package?

That would be the ideal solution to cross-building this package, but is
not included in my MR. It would require a trip through NEW.

    smcv

Reply via email to