]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Change pkg-config files so that both <et/com_err.h> and <com_err.h> work
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 May 2012 16:45:54 +0000 (12:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 May 2012 16:45:54 +0000 (12:45 -0400)
Change the include path in the Cflags field so that #include
<lib/foo.h> and <foo.h> will work.  We had originally used a C flags
which allowed <foo.h> to work, but many applications (especially those
not using pkg-config) had been using the <lob/foo.h> formulation which
didn't require an explicit -I{$includedir} option to the C compiler.

If those applications then converted over to pkg-config, and the
e2fsprogs libraries were installed with a prefix other than /usr, so
that the header files were in some directory such as
/usr/local/include, a program that used #include <lib/foo.h> would
fail to compile.

So change the pkg-config files to include both -I{$includedir} and
-I{$includir}/lib.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/blkid.pc.in
lib/e2p/e2p.pc.in
lib/et/com_err.pc.in
lib/ext2fs/ext2fs.pc.in
lib/quota/quota.pc.in
lib/ss/ss.pc.in
lib/uuid/uuid.pc.in

index b984f6d0ebbb52c82ecdc8a009c0f66aaa996c69..808fe229bb8b15477423e30973eb52cd369edb22 100644 (file)
@@ -7,5 +7,5 @@ Name: blkid
 Description: Block device id library
 Version: @E2FSPROGS_VERSION@
 Requires.private: uuid
-Cflags: -I${includedir}/blkid
+Cflags: -I${includedir}/blkid -I${includedir}
 Libs: -L${libdir} -lblkid
index 98ee9fb7c9b7d423c8670c30857520d7ae8602c1..c171ae672d419299a66369a53dfba81f7a85d765 100644 (file)
@@ -7,5 +7,5 @@ Name: e2p
 Description: Ext2fs userpace programs utility library
 Version: @E2FSPROGS_VERSION@
 Requires: 
-Cflags: -I${includedir}/e2p
+Cflags: -I${includedir}/e2p -I${includedir}
 Libs: -L${libdir} -le2p
index cb47ce19d62e8e8426853001ae5628b2c9810057..86df8a2abdd6fe5f18f969153d6ad9cf1f8ec079 100644 (file)
@@ -7,6 +7,6 @@ Name: com_err
 Description: Common error description library
 Version: @E2FSPROGS_VERSION@
 Requires:
-Cflags: -I${includedir}
+Cflags: -I${includedir}/et -I${includedir}
 Libs: -L${libdir} -lcom_err
 Libs.private: @SEM_INIT_LIB@
index 8db86635a7b92d10c3b1e0d8090da0e10e32ab7e..efac85e32d591e409b63d93325d7acad3673401d 100644 (file)
@@ -7,5 +7,5 @@ Name: ext2fs
 Description: Ext2fs library
 Version: @E2FSPROGS_VERSION@
 Requires.private: com_err
-Cflags: -I${includedir}/ext2fs
+Cflags: -I${includedir}/ext2fs -I${includedir}
 Libs: -L${libdir} -lext2fs
index bcc3c441cc1d1953e75fcaf595e9d2f1e4d0b09c..1e4b8874b088fa604b260ccad2bb5e13963ae8ef 100644 (file)
@@ -7,5 +7,5 @@ Name: quota
 Description: Quota management library
 Version: @E2FSPROGS_VERSION@
 Requires:
-Cflags: -I${includedir}/quota
+Cflags: -I${includedir}/quota -I${includedir}
 Libs: -L${libdir} -lquota
index cf89361135ff01d85143c4d0e41500fcc9abe099..5c9eccb13045bef5c0fde514931efb7515926ecd 100644 (file)
@@ -7,6 +7,6 @@ Name: ss
 Description: Subsystem command parsing library
 Version: @E2FSPROGS_VERSION@
 Requires.private: com_err
-Cflags: -I${includedir}/ss
+Cflags: -I${includedir}/ss -I${includedir}
 Libs: -L${libdir} -lss
 Libs.private: @DLOPEN_LIB@
index 9e38a32651d1d78804ac632c2aeb8608c27a7a8d..eaa4e4d57c74aae8d04882f23538f19cfb5b2157 100644 (file)
@@ -7,5 +7,5 @@ Name: uuid
 Description: Universally unique id library
 Version: @E2FSPROGS_VERSION@
 Requires: 
-Cflags: -I${includedir}/uuid
+Cflags: -I${includedir}/uuid -I${includedir}
 Libs: -L${libdir} -luuid