aboutsummaryrefslogtreecommitdiffstats
path: root/package/pkgconf/pkgconf-fix-variable.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-10-24 10:10:44 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-10-29 21:56:50 +0100
commit3ee3e3d22e0166ce52e96a43977338feeab1fcc5 (patch)
tree029cd0db87d917b90b2f72605242d539f9fb393c /package/pkgconf/pkgconf-fix-variable.patch
parent503452d7c87daed5061a67c7d5a20655dfa0395b (diff)
downloadbuildroot-novena-3ee3e3d22e0166ce52e96a43977338feeab1fcc5.tar.gz
buildroot-novena-3ee3e3d22e0166ce52e96a43977338feeab1fcc5.zip
pkgconf: new package
pkgconf is a drop-in replacement for pkg-config that doesn't need itself to build and just requires a C89 compiler. Instead of using a patch for hardcoded sysroot support (as the patch to pkg-config does) we rely instead on a wrapper script that takes the appropiate action. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/pkgconf/pkgconf-fix-variable.patch')
-rw-r--r--package/pkgconf/pkgconf-fix-variable.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/pkgconf/pkgconf-fix-variable.patch b/package/pkgconf/pkgconf-fix-variable.patch
new file mode 100644
index 000000000..e19f76c90
--- /dev/null
+++ b/package/pkgconf/pkgconf-fix-variable.patch
@@ -0,0 +1,27 @@
+[PATCH] prefix sysroot to include/libdir path variables
+
+Prefix includedir / libdir variable values with sysroot if a variable is
+requested (--variable=<name>), similar to how it's done for -I / -L flags.
+
+This is sometimes used to find header files (E.G. in gst-plugins configure),
+so ensure the sysroot'ed files are used.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura pkgconf-0.8.9.orig/main.c pkgconf-0.8.9/main.c
+--- pkgconf-0.8.9.orig/main.c 2012-10-24 14:32:08.236508699 -0300
++++ pkgconf-0.8.9/main.c 2012-10-24 14:54:36.771070217 -0300
+@@ -298,7 +298,12 @@
+ if (eflag != PKG_ERRF_OK)
+ return false;
+
+- printf("%s\n", req.buf);
++ if ( !strcmp(req.variable, "includedir") ||
++ !strcmp(req.variable, "mapdir") ||
++ !strcmp(req.variable, "libdir"))
++ printf("%s%s\n", sysroot_dir, req.buf);
++ else
++ printf("%s\n", req.buf);
+ return true;
+ }
+