]> code.ossystems Code Review - openembedded-core.git/commitdiff
pkgconf: revert changes to pkg-config-wrapper
authorMaxin B. John <maxin.john@intel.com>
Mon, 26 Feb 2018 08:58:48 +0000 (10:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Mar 2018 17:08:29 +0000 (17:08 +0000)
To maintain the status quo, revert changes to pkgconf wrappers.
This helps to keep it compatible with freedesktop.org pkg-config.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper

index d4ac71dff233a573efd818918a66c6606230c255..4fc9b0a4a7bd4c975fd5425e72063a4a1e5c1100 100644 (file)
@@ -5,6 +5,7 @@
 if [ "pkg-config-native" = "`basename $0`" ] ; then
        PKG_CONFIG_PATH="@PATH_NATIVE@"
        PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+       unset PKG_CONFIG_SYSROOT_DIR
 else
        # in this case check if we are in the esdk
        if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then
@@ -15,8 +16,9 @@ else
                if ( echo $parentpid_info | grep -q check-lxdialog ) ; then
                        PKG_CONFIG_PATH="@PATH_NATIVE@"
                        PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+                       unset PKG_CONFIG_SYSROOT_DIR
                fi
        fi
 fi
 
-pkg-config "$@"
+pkg-config.real "$@"
index c2e86e5ac192e449985a34d7d86336412fc8e82d..9ed30a0d800a4eb827feea82993a53e37114361a 100644 (file)
@@ -1,5 +1,6 @@
 #! /bin/sh
 
 PKG_CONFIG_PATH="@PATH_NATIVE@"
+unset PKG_CONFIG_SYSROOT_DIR
 
 pkg-config "$@"
index fc9b48803fc41a8d21c030290ff1019d5eef879f..695f349566de77ebe1e6bdd39928d72b08dd8c70 100755 (executable)
@@ -4,4 +4,13 @@
 # Copyright (C) 2015 Christopher Larson <chris_larson@mentor.com>
 # License: MIT (see COPYING.MIT at the root of the repository for terms)
 
+for arg; do
+    case "$arg" in
+        --variable|--variable=*)
+            # pkg-config doesn't sysroot-prefix user variables
+            unset PKG_CONFIG_SYSROOT_DIR
+            ;;
+    esac
+done
+
 exec pkgconf "$@"