From: Bernd Kuhls Date: Sat, 29 Mar 2014 20:56:08 +0000 (+0100) Subject: pkgconf: rewrite variable sdkdir, needed by xdriver_xf86-video-intel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f467e8d91a328aaa3a4821ea1b7366b506f1318e;p=buildroot.git pkgconf: rewrite variable sdkdir, needed by xdriver_xf86-video-intel - rename patch file to include the apply order Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/pkgconf/pkgconf-01-fix-variable.patch b/package/pkgconf/pkgconf-01-fix-variable.patch new file mode 100644 index 0000000000..4c213d6ee8 --- /dev/null +++ b/package/pkgconf/pkgconf-01-fix-variable.patch @@ -0,0 +1,29 @@ +[PATCH] prefix sysroot to include/libdir path variables + +Prefix includedir / libdir variable values with sysroot if a variable is +requested (--variable=), 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 +Signed-off-by: Bernd Kuhls + +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,13 @@ + if (eflag != PKG_ERRF_OK) + return false; + +- printf("%s\n", req.buf); ++ if ( !strcmp(req.variable, "includedir") || ++ !strcmp(req.variable, "mapdir") || ++ !strcmp(req.variable, "sdkdir") || ++ !strcmp(req.variable, "libdir")) ++ printf("%s%s\n", sysroot_dir, req.buf); ++ else ++ printf("%s\n", req.buf); + return true; + } + diff --git a/package/pkgconf/pkgconf-fix-variable.patch b/package/pkgconf/pkgconf-fix-variable.patch deleted file mode 100644 index e19f76c90c..0000000000 --- a/package/pkgconf/pkgconf-fix-variable.patch +++ /dev/null @@ -1,27 +0,0 @@ -[PATCH] prefix sysroot to include/libdir path variables - -Prefix includedir / libdir variable values with sysroot if a variable is -requested (--variable=), 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 - -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; - } -