Skip to content

pkg-config: datadir relative variables#198

Closed
inigomartinez wants to merge 1 commit intoscop:masterfrom
inigomartinez:master
Closed

pkg-config: datadir relative variables#198
inigomartinez wants to merge 1 commit intoscop:masterfrom
inigomartinez:master

Conversation

@inigomartinez
Copy link
Contributor

Although datarootdir is defined as ${prefix}/share, the user has the possibility to define datadir in a different directory.

Due to this completionsdir and helpersdir that are defined in the generated pkg-config .pc file should be relative to datadir variable.

This helps any pkg-config user to set these variables to proper directories by using the define-variable command line argument.

Although `datarootdir` is defined as `${prefix}/share`, the user has
the possibility to define `datadir` in a different directory.

Due to this `completionsdir` and `helpersdir` that are defined in
the generated pkg-config `.pc` file should be relative to `datadir`
variable.

This helps any pkg-config user to set these variables to proper
directories by using the `define-variable` command line argument.
@scop scop closed this in 81ba2c7 May 6, 2018
@scop
Copy link
Owner

scop commented May 6, 2018

Applying your change would have resulted in a warning from, ./configure:

$ ./configure | grep WARNING
config.status: WARNING:  'bash-completion.pc.in' seems to ignore the --datarootdir setting

...and there were similar potential issues in bash-completion-config.cmake. I believe 81ba2c7 fixes these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants