On 07/08/2014 12:51 PM, Lukas Slebodnik wrote:
On (08/07/14 10:26), Pavel Březina wrote:
On 07/07/2014 02:01 PM, Lukas Slebodnik wrote:
On (03/07/14 14:35), Jakub Hrozek wrote:
On Wed, Jul 02, 2014 at 01:46:49PM +0200, Pavel Březina wrote:
cmake complained about this when building openlmi
What was the error you were seeing?
As a note, I was reading the pkg-config docs again:
http://people.freedesktop.org/~dbn/pkg-config-guide.html
and I think it's correct we use Requires and not Requires.private since
we do expose some libdbus types in our public header.
Field 'Requires' should contain a list of packages, therwise there is a warning
user@a80c17581d5a:/tmp$ pkg-config --libs sss_simpleifp
Requires field occurs twice in
'/usr/lib/x86_64-linux-gnu/pkgconfig/sss_simpleifp.pc'
user@a80c17581d5a:/tmp$ pkg-config --version
0.26
I think we can remove dependency "dbus-1". The review process of sss_simpleifp
was very long and there were lots of changes.
The dbus dependency is there once you include sss_sifp_dbus.h, so it is a
question whether we can remove it from pkgconfig.
I see.
In this case, you patch was right.
I tested compilation of simple program (attached in mail). It works without any
problem.
gcc sifp.c -Wl,--as-needed `pkg-config --libs sss_simpleifp`
Pavel could you test with cmake in openlmi?
I'm inclined to ack this patch, but I'd like to see the particular error
first.
From 3b945c3da5b3717752451cac7868b285f158eabd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Wed, 2 Jul 2014 13:45:53 +0200
Subject: [PATCH] sss_sifp: pkg-config requires is a comma separated list
---
src/lib/sifp/sss_simpleifp.pc.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/sifp/sss_simpleifp.pc.in b/src/lib/sifp/sss_simpleifp.pc.in
index
a8b625608b0e8451b8fa44e1a927d51a3e11cef1..e57ed8db4174db433d0aad56cbd8179c140e0b17
100644
--- a/src/lib/sifp/sss_simpleifp.pc.in
+++ b/src/lib/sifp/sss_simpleifp.pc.in
@@ -4,8 +4,7 @@ includedir=@includedir@
Name: sss_simpleifp
Description: A library that simplifies work with the InfoPipe responder
Version: @VERSION@
-Requires: dbus-1
-Requires: dhash
+Requires: dbus-1, dhash
Libs: -L@libdir@ -lsss_simpleifp
Cflags: -I${includedir}
URL: http://fedorahosted.org/sssd/
Could you add next line to this file?
prefix=@prefix@
because there is another pkg-config warning
user@a80c17581d5a:/tmp$ pkg-config --libs sss_simpleifp
Variable 'prefix' not defined in
'/usr/lib/x86_64-linux-gnu/pkgconfig/sss_simpleifp.pc'
Hmm, didn't we remove it during the review process?
Yes, it was; but it was not good idea :-)
It is not problem with default prefix "/usr". (fedora)
You can try to install into different prefix(exec_prefix) "/usr/local/"
sh-4.2$ cat /usr/local/lib/pkgconfig/sss_simpleifp.pc
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: sss_simpleifp
Description: A library that simplifies work with the InfoPipe responder
Version: 1.11.92
Requires: dbus-1
Requires: dhash
Libs: -L${exec_prefix}/lib -lsss_simpleifp
Cflags: -I${includedir}
URL: http://fedorahosted.org/sssd/
sh-4.2$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config --libs
sss_simpleifp
Variable 'exec_prefix' not defined in
'/usr/local/lib/pkgconfig/sss_simpleifp.pc'
You should add both variables prefix and exec_prefix
prefix=@prefix@
exec_prefix=@exec_prefix@
LS
Hi, thanks. Patches are attached.
From 2956a495d6b64edd6a6b97de9484665c2c99ecc2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Wed, 2 Jul 2014 13:45:53 +0200
Subject: [PATCH 1/2] sss_sifp: pkg-config requires is a comma separated list
---
src/lib/sifp/sss_simpleifp.pc.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/sifp/sss_simpleifp.pc.in b/src/lib/sifp/sss_simpleifp.pc.in
index a8b625608b0e8451b8fa44e1a927d51a3e11cef1..e57ed8db4174db433d0aad56cbd8179c140e0b17 100644
--- a/src/lib/sifp/sss_simpleifp.pc.in
+++ b/src/lib/sifp/sss_simpleifp.pc.in
@@ -4,8 +4,7 @@ includedir=@includedir@
Name: sss_simpleifp
Description: A library that simplifies work with the InfoPipe responder
Version: @VERSION@
-Requires: dbus-1
-Requires: dhash
+Requires: dbus-1, dhash
Libs: -L@libdir@ -lsss_simpleifp
Cflags: -I${includedir}
URL: http://fedorahosted.org/sssd/
--
1.7.11.7
From 73615efea61e5697ee7b8f685c3a21a7d43acf74 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Tue, 8 Jul 2014 19:37:04 +0200
Subject: [PATCH 2/2] sss_sifp: add prefix and exec_prefix to pkg-config
---
src/lib/sifp/sss_simpleifp.pc.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lib/sifp/sss_simpleifp.pc.in b/src/lib/sifp/sss_simpleifp.pc.in
index e57ed8db4174db433d0aad56cbd8179c140e0b17..a8c3400bef743193e6c3c8a6c63a71a6b2832ca0 100644
--- a/src/lib/sifp/sss_simpleifp.pc.in
+++ b/src/lib/sifp/sss_simpleifp.pc.in
@@ -1,3 +1,5 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
--
1.7.11.7
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel