[Bug 1352230] [NEW] PKG_CONFIG_PATH in pkg-config-crosswrapper

mrw 1352230 at bugs.launchpad.net
Mon Aug 4 08:53:56 UTC 2014


Public bug reported:

I was wondering, why my Jenkins build failed after upgrade to Ubutnu
14.04, now I see that in pkg-config-crosswrapper my variable
PKG_CONFIG_PATH is brutally overwritten.

How am I supposed to set a PKG_CONFIG_PATH in a cross-compile
environment?

IMHO: PKG_CONFIG_PATH must not be overwritten in pkg-config-
crosswrapper.

I now manually edited /usr/share/pkg-config-crosswrapper (added ":${PKG_CONFIG_PATH}") to become:
{{{
#! /bin/sh
# pkg-config wrapper for cross-building
# Sets pkg-config search path to target arch path only.

triplet=`basename $0 | sed -e 's:-pkg-config::'`
PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config $@
}}}

My jenkins build script is:

{{{ (added ":${PKG_CONFIG_PATH}")
PKG_CONFIG_PATH=${HOME}/qt-${MINGW}/lib/pkgconfig \
  CPPFLAGS="-I${WORKSPACE}/usr/include" \
  LDFLAGS="-L${WORKSPACE}/usr/lib" \
  ./configure --prefix=${WORKSPACE}/usr --host=${MINGW}
make all install
}}}


Manually changing a package-provided file is a dirty hack. So do you change your code or do I have another/better way for providing my additional path?

** Affects: pkg-config (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkg-config in Ubuntu.
https://bugs.launchpad.net/bugs/1352230

Title:
  PKG_CONFIG_PATH in pkg-config-crosswrapper

Status in “pkg-config” package in Ubuntu:
  New

Bug description:
  I was wondering, why my Jenkins build failed after upgrade to Ubutnu
  14.04, now I see that in pkg-config-crosswrapper my variable
  PKG_CONFIG_PATH is brutally overwritten.

  How am I supposed to set a PKG_CONFIG_PATH in a cross-compile
  environment?

  IMHO: PKG_CONFIG_PATH must not be overwritten in pkg-config-
  crosswrapper.

  I now manually edited /usr/share/pkg-config-crosswrapper (added ":${PKG_CONFIG_PATH}") to become:
  {{{
  #! /bin/sh
  # pkg-config wrapper for cross-building
  # Sets pkg-config search path to target arch path only.

  triplet=`basename $0 | sed -e 's:-pkg-config::'`
  PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config $@
  }}}

  My jenkins build script is:

  {{{ (added ":${PKG_CONFIG_PATH}")
  PKG_CONFIG_PATH=${HOME}/qt-${MINGW}/lib/pkgconfig \
    CPPFLAGS="-I${WORKSPACE}/usr/include" \
    LDFLAGS="-L${WORKSPACE}/usr/lib" \
    ./configure --prefix=${WORKSPACE}/usr --host=${MINGW}
  make all install
  }}}

  
  Manually changing a package-provided file is a dirty hack. So do you change your code or do I have another/better way for providing my additional path?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkg-config/+bug/1352230/+subscriptions



More information about the foundations-bugs mailing list