[PATCH 0/8] Relocatable package fixes

Dan Nicholson dbn.lists at gmail.com
Sat Apr 20 07:42:17 PDT 2013


Here's a few fixes to improve the two relocatable package features in
pkg-config. For the redefined prefix feature, I allowed the default to
be controlled at build time and added an option to specify the behavior
at runtime in either direction. I then fixed some things up to make it
available on all platforms. For the ${pcfiledir} feature, I simply
documented it more completely. Finally, I added tests for both.

I think this should address bugs 62018 and 63602. LRN - the first patch
would allow you to build pkg-config so that it defaults to
--dont-define-prefix, but the runtime control is still entirely through
the options.

Dan Nicholson (8):
  Allow more control of redefined prefix behavior
  Allow Windows prefix redefinition in any pkgconfig directory
  Store the original prefix value in the package
  Remove compat definition of G_IS_DIR_SEPARATOR
  Make the --define-prefix feature available on all platforms
  Document all pkg-config derived metadata variables
  check: Define all useful build directories in config.sh
  check: Test relocatable features

 check/Makefile.am                     |  8 +++-
 check/check-relocatable               | 29 ++++++++++++
 check/config.sh.in                    |  5 ++
 check/pcfiledir.pc                    | 11 +++++
 check/pkgconfig/prefixdef-expanded.pc | 11 +++++
 check/pkgconfig/prefixdef.pc          | 11 +++++
 configure.ac                          | 13 ++++++
 main.c                                | 12 +++--
 parse.c                               | 82 +++++++++++----------------------
 pkg-config.1                          | 87 +++++++++++++++++++++++++++--------
 pkg.h                                 |  9 ++--
 11 files changed, 192 insertions(+), 86 deletions(-)
 create mode 100644 check/check-relocatable
 create mode 100644 check/pcfiledir.pc
 create mode 100644 check/pkgconfig/prefixdef-expanded.pc
 create mode 100644 check/pkgconfig/prefixdef.pc

-- 
1.8.1.4



More information about the pkg-config mailing list