Skip to contentSkip to conversation

tools: Fix pkg-config file for libxenstore

PATCH Superseded Andrew Cooper 4 participants 7 messages Mar 22, 2021 – Mar 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Fix pkg-config file for libxenstore

There is no dependency on libxenctrl.

Fixes 1b008e99 ("tools: provide pkg-config file for libxenstore")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Jan Beulich <[email protected]>

This has been fixed in Xen 4.15 by the uselibs.mk logic, but 4.14 and older cause everything linking against libxenstore to also try linking against libxenctrl. It also causes RPM to create unexpected dependencies between subpackages, which is a problem when trying to separate the stable and unstable libs.

---
 tools/xenstore/xenstore.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/xenstore.pc.in +1 -1
index 2f64a6b824..98c3f1ab39 100644
@@ -8,4 +8,4 @@ Version: @@version@@
 Cflags: -I${includedir} @@cflagslocal@@
 Libs: @@libsflag@@${libdir} -lxenstore
 Libs.private: -ldl
-Requires.private: xenevtchn,xencontrol,xengnttab,xentoolcore
+Requires.private: xenevtchn,xengnttab,xentoolcore
Signature · 1 line
2.11.0
#1 lore raw
Quoted 24 lines · Andrew Cooper

There is no dependency on libxenctrl.

Fixes 1b008e99 ("tools: provide pkg-config file for libxenstore")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Jan Beulich <[email protected]>

This has been fixed in Xen 4.15 by the uselibs.mk logic, but 4.14 and older cause everything linking against libxenstore to also try linking against libxenctrl. It also causes RPM to create unexpected dependencies between subpackages, which is a problem when trying to separate the stable and unstable libs.

---
  tools/xenstore/xenstore.pc.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/xenstore.pc.in +0 -0
index 2f64a6b824..98c3f1ab39 100644

tools/xenstore/xenstore.pc.in Version: @@version@@ · line 11

Quoted 5 lines
tools/xenstore/xenstore.pc.in +1 -1
@@ -8,4 +8,4 @@ Version: @@version@@
  Cflags: -I${includedir} @@cflagslocal@@
  Libs: @@libsflag@@${libdir} -lxenstore
  Libs.private: -ldl
-Requires.private: xenevtchn,xencontrol,xengnttab,xentoolcore
+Requires.private: xenevtchn,xengnttab,xentoolcore

Any reason you are keeping xenevtchn and xengnttab?

Juergen

#2 lore raw
Quoted 22 lines · Jürgen Groß
Quoted 21 lines · Andrew Cooper

There is no dependency on libxenctrl.

Fixes 1b008e99 ("tools: provide pkg-config file for libxenstore")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Jan Beulich <[email protected]>

This has been fixed in Xen 4.15 by the uselibs.mk logic, but 4.14 and older
cause everything linking against libxenstore to also try linking against libxenctrl.  It also causes RPM to create unexpected dependencies between
subpackages, which is a problem when trying to separate the stable and unstable libs.
---
  tools/xenstore/xenstore.pc.in | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

tools/xenstore/xenstore.pc.in Version: @@version@@ · line 11

Quoted 11 lines
tools/xenstore/xenstore.pc.in +0 -0
index 2f64a6b824..98c3f1ab39 100644
@@ -8,4 +8,4 @@ Version: @@version@@

  Cflags: -I${includedir} @@cflagslocal@@
  Libs: @@libsflag@@${libdir} -lxenstore
  Libs.private: -ldl

tools/xenstore/xenstore.pc.in +1 -1
-Requires.private: xenevtchn,xencontrol,xengnttab,xentoolcore
+Requires.private: xenevtchn,xengnttab,xentoolcore

Any reason you are keeping xenevtchn and xengnttab?

Oh - good point.  I misread uselibs.  Its only toolcore who's dependency remains in 4.15.

I'll send out a v2.

~Andrew

#3 lore raw

PATCH v2 1/1 tools: Fix pkg-config file for libxenstore

In reply to Andrew Cooper

There are no dependenices on evtchn, ctrl or gnttab.

Fixes 1b008e99 ("tools: provide pkg-config file for libxenstore")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Jan Beulich <[email protected]>

v2:
* Drop xenevtchn and xengnttab as well

This has been fixed in Xen 4.15 by the uselibs.mk logic, but 4.14 and older cause everything linking against libxenstore to also try linking against libxenctrl. It also causes RPM to create unexpected dependencies between subpackages, which is a problem when trying to separate the stable and unstable libs.

---
 tools/xenstore/xenstore.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/xenstore.pc.in +1 -1
index 2f64a6b824..2a278b4395 100644
@@ -8,4 +8,4 @@ Version: @@version@@
 Cflags: -I${includedir} @@cflagslocal@@
 Libs: @@libsflag@@${libdir} -lxenstore
 Libs.private: -ldl
-Requires.private: xenevtchn,xencontrol,xengnttab,xentoolcore
+Requires.private: xentoolcore
Signature · 1 line
2.11.0
#6 lore raw

Wei Liu writes ("Re: [PATCH v2 for-4.14] tools: Fix pkg-config file for libxenstore"):

Quoted 7 lines · Andrew Cooper
Quoted 4 lines

There are no dependenices on evtchn, ctrl or gnttab.

Fixes 1b008e99 ("tools: provide pkg-config file for libxenstore")

Having slept on this and I am not convinced that this warrants backporting. I prefer to take a generally cautious approach to changes to packaging and the build system, as this is much less disruptive to downstreams.

Ian.