On Mon, Jun 26, 2017 at 9:52 AM, Diego Nieto Cid <dnie...@gmail.com> wrote: > I now realize this is very inconvenient for package maintainers as the build > environment needs to replicate the target environment (i.e. the installed > xkeyboard-config.pc requires the same prefix as the target system). :-(
This shouldn't be an issue. When building for a different target system, the packager should be using a host-prefixed pkg-config that reads .pc files configured for the target. > Given that xkeyboard-config.pc also has a prefix variable, one possible > solution is to strip the build system's prefix from xkb_base and then > "prepend" the prefix passed to configure. I'm not sure how robust it is > though. The issue is that the prefix passed to configure is written to the prefix variable for Hurd's Makefiles, and packagers are overriding that variable in "make install" to work around the lack of a DESTDIR variable. In my opinion, the current behavior for getting XKB_BASE is correct (reading xkeyboard-config.pc for the actual target systems' path with "$datadir/X11/xkb" as a good fallback). The real fix here is to support a staging installation directory for packagers by implementing DESTDIR. Thanks. David