bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH hurd] build: Drop unused/unsubstituted config variables


From: David Michael
Subject: Re: [PATCH hurd] build: Drop unused/unsubstituted config variables
Date: Mon, 26 Jun 2017 10:33:11 -0700

On Mon, Jun 26, 2017 at 9:52 AM, Diego Nieto Cid <dnietoc@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]