[PATCH app/xkbcomp] pkgconfig: Add our bindir to xkbcomp.pc

Peter Hutterer peter.hutterer at who-t.net
Tue Nov 7 05:16:45 UTC 2017


On Mon, Nov 06, 2017 at 12:55:20PM -0500, Adam Jackson wrote:
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>  xkbcomp.pc.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/xkbcomp.pc.in b/xkbcomp.pc.in
> index b8d6023..4d138c8 100644
> --- a/xkbcomp.pc.in
> +++ b/xkbcomp.pc.in
> @@ -1,4 +1,5 @@
>  prefix=@prefix@
> +bindir=@bindir@
>  datarootdir=@datarootdir@
>  datadir=@datadir@
>  xkbconfigdir=@XKBCONFIGROOT@
> -- 
> 2.14.3
 
for some reason this doesn't work here. It gets replaced with:
bindir=${exec_prefix}/bin

but exec_prefix isn't set. With a --prefix=/opt/xorg, I still get:
$> pkg-config --variable bindir xkbcomp  
/bin

Adding this fixed it:

diff --git a/xkbcomp.pc.in b/xkbcomp.pc.in
index 4d138c8..a4791a9 100644
--- a/xkbcomp.pc.in
+++ b/xkbcomp.pc.in
@@ -1,4 +1,5 @@
 prefix=@prefix@
+exec_prefix=@exec_prefix@
 bindir=@bindir@
 datarootdir=@datarootdir@
 datadir=@datadir@

Cheers,
   Peter


More information about the xorg-devel mailing list