From 1f3925de20604aa65053753401ee441391d6aa2e Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 9 Mar 2015 03:38:58 +0100 Subject: [PATCH] kmod: fix pkgconfig file The pkgconfig file is generated at make-time, leading to absolute /usr/include & /usr/lib search paths. The patch lets autoconf handle pkgconfig file subst, like other packages do. Signed-off-by: Nicolas Thill --- .../kmod/patches/001-fix_pkgconfig_file.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 utils/kmod/patches/001-fix_pkgconfig_file.patch diff --git a/utils/kmod/patches/001-fix_pkgconfig_file.patch b/utils/kmod/patches/001-fix_pkgconfig_file.patch new file mode 100644 index 000000000..1891078d7 --- /dev/null +++ b/utils/kmod/patches/001-fix_pkgconfig_file.patch @@ -0,0 +1,22 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -35,9 +35,6 @@ SED_PROCESS = \ + -e 's,@zlib_LIBS\@,${zlib_LIBS},g' \ + < $< > $@ || rm $@ + +-%.pc: %.pc.in Makefile +- $(SED_PROCESS) +- + LIBKMOD_CURRENT=4 + LIBKMOD_REVISION=9 + LIBKMOD_AGE=2 +--- a/configure.ac ++++ b/configure.ac +@@ -221,6 +221,7 @@ AC_CONFIG_HEADERS(config.h) + AC_CONFIG_FILES([ + Makefile + man/Makefile ++ libkmod/libkmod.pc + libkmod/docs/Makefile + libkmod/docs/version.xml + ])