All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
@ 2016-10-25  9:53 Roger Pau Monne
  2016-10-25 13:26 ` Wei Liu
  0 siblings, 1 reply; 7+ messages in thread
From: Roger Pau Monne @ 2016-10-25  9:53 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Alexander Nusov, Ian Jackson, Roger Pau Monne

pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the
default search path, fix this by having a PKG_INSTALLDIR variable that can
be changed on a per-OS basis.

It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but
sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which
expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of
the default pkg-config search path).

This patch should not change the behavior for Linux installs.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Alexander Nusov <alexander.nusov@nfvexpress.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Alexander Nusov <alexander.nusov@nfvexpress.com>
---
Changes since v2:
 - Add DESTDIR prefix.

Changes since v1:
 - Remove leftovers from a previous attempt at fixing the issue.
---
 config/FreeBSD.mk    | 1 +
 config/Paths.mk.in   | 2 ++
 tools/libxl/Makefile | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/config/FreeBSD.mk b/config/FreeBSD.mk
index bb3a5d0..afeaefb 100644
--- a/config/FreeBSD.mk
+++ b/config/FreeBSD.mk
@@ -2,3 +2,4 @@ include $(XEN_ROOT)/config/StdGNU.mk
 
 # No wget on FreeBSD base system
 WGET = ftp
+PKG_INSTALLDIR = ${prefix}/libdata/pkgconfig
diff --git a/config/Paths.mk.in b/config/Paths.mk.in
index 62cea48..a603295 100644
--- a/config/Paths.mk.in
+++ b/config/Paths.mk.in
@@ -56,3 +56,5 @@ XENFIRMWAREDIR           := @XENFIRMWAREDIR@
 
 XEN_CONFIG_DIR           := @XEN_CONFIG_DIR@
 XEN_SCRIPT_DIR           := @XEN_SCRIPT_DIR@
+
+PKG_INSTALLDIR           := ${SHAREDIR}/pkgconfig
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
index a3c0af8..97bc8ca 100644
--- a/tools/libxl/Makefile
+++ b/tools/libxl/Makefile
@@ -297,8 +297,8 @@ install: all
 	$(INSTALL_DATA) libxlutil.a $(DESTDIR)$(libdir)
 	$(INSTALL_DATA) libxl.h libxl_event.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h libxlutil.h $(DESTDIR)$(includedir)
 	$(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh
-	$(INSTALL_DATA) xenlight.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/
-	$(INSTALL_DATA) xlutil.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/
+	$(INSTALL_DATA) xenlight.pc $(DESTDIR)$(PKG_INSTALLDIR)
+	$(INSTALL_DATA) xlutil.pc $(DESTDIR)$(PKG_INSTALLDIR)
 
 .PHONY: clean
 clean:
-- 
2.7.4 (Apple Git-66)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-10-25  9:53 [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD Roger Pau Monne
@ 2016-10-25 13:26 ` Wei Liu
  2016-10-26 12:02   ` Wei Liu
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Liu @ 2016-10-25 13:26 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Alexander Nusov, Ian Jackson, Wei Liu

On Tue, Oct 25, 2016 at 11:53:28AM +0200, Roger Pau Monne wrote:
> pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the
> default search path, fix this by having a PKG_INSTALLDIR variable that can
> be changed on a per-OS basis.
> 
> It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but
> sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which
> expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of
> the default pkg-config search path).
> 
> This patch should not change the behavior for Linux installs.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Reported-by: Alexander Nusov <alexander.nusov@nfvexpress.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>

> ---
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>
> Cc: Alexander Nusov <alexander.nusov@nfvexpress.com>
> ---
> Changes since v2:
>  - Add DESTDIR prefix.
> 
> Changes since v1:
>  - Remove leftovers from a previous attempt at fixing the issue.
> ---
>  config/FreeBSD.mk    | 1 +
>  config/Paths.mk.in   | 2 ++
>  tools/libxl/Makefile | 4 ++--
>  3 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/config/FreeBSD.mk b/config/FreeBSD.mk
> index bb3a5d0..afeaefb 100644
> --- a/config/FreeBSD.mk
> +++ b/config/FreeBSD.mk
> @@ -2,3 +2,4 @@ include $(XEN_ROOT)/config/StdGNU.mk
>  
>  # No wget on FreeBSD base system
>  WGET = ftp
> +PKG_INSTALLDIR = ${prefix}/libdata/pkgconfig
> diff --git a/config/Paths.mk.in b/config/Paths.mk.in
> index 62cea48..a603295 100644
> --- a/config/Paths.mk.in
> +++ b/config/Paths.mk.in
> @@ -56,3 +56,5 @@ XENFIRMWAREDIR           := @XENFIRMWAREDIR@
>  
>  XEN_CONFIG_DIR           := @XEN_CONFIG_DIR@
>  XEN_SCRIPT_DIR           := @XEN_SCRIPT_DIR@
> +
> +PKG_INSTALLDIR           := ${SHAREDIR}/pkgconfig
> diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
> index a3c0af8..97bc8ca 100644
> --- a/tools/libxl/Makefile
> +++ b/tools/libxl/Makefile
> @@ -297,8 +297,8 @@ install: all
>  	$(INSTALL_DATA) libxlutil.a $(DESTDIR)$(libdir)
>  	$(INSTALL_DATA) libxl.h libxl_event.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h libxlutil.h $(DESTDIR)$(includedir)
>  	$(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh
> -	$(INSTALL_DATA) xenlight.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/
> -	$(INSTALL_DATA) xlutil.pc $(DESTDIR)$(SHAREDIR)/pkgconfig/
> +	$(INSTALL_DATA) xenlight.pc $(DESTDIR)$(PKG_INSTALLDIR)
> +	$(INSTALL_DATA) xlutil.pc $(DESTDIR)$(PKG_INSTALLDIR)
>  
>  .PHONY: clean
>  clean:
> -- 
> 2.7.4 (Apple Git-66)
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-10-25 13:26 ` Wei Liu
@ 2016-10-26 12:02   ` Wei Liu
  2016-11-19 12:59     ` Alexander Nusov
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Liu @ 2016-10-26 12:02 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Alexander Nusov, Ian Jackson, Wei Liu

On Tue, Oct 25, 2016 at 02:26:55PM +0100, Wei Liu wrote:
> On Tue, Oct 25, 2016 at 11:53:28AM +0200, Roger Pau Monne wrote:
> > pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the
> > default search path, fix this by having a PKG_INSTALLDIR variable that can
> > be changed on a per-OS basis.
> > 
> > It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but
> > sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which
> > expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of
> > the default pkg-config search path).
> > 
> > This patch should not change the behavior for Linux installs.
> > 
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > Reported-by: Alexander Nusov <alexander.nusov@nfvexpress.com>
> 
> Acked-by: Wei Liu <wei.liu2@citrix.com>

Applied.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-10-26 12:02   ` Wei Liu
@ 2016-11-19 12:59     ` Alexander Nusov
  2016-11-29  9:14       ` Wei Liu
  2016-12-02 16:16       ` Roger Pau Monne
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Nusov @ 2016-11-19 12:59 UTC (permalink / raw)
  To: Wei Liu; +Cc: xen-devel, Ian Jackson, Roger Pau Monne


[-- Attachment #1.1: Type: text/plain, Size: 1712 bytes --]

Hello,



I've reinstalled xen from ports on FreeBSD-11.0

and it seems xenlight.pc is not being installed to /usr/local/libdata/pkgconfig/ directory.



root@controller:/usr/ports/devel/libvirt # find /usr/ -type f -name xenlight.pc
/usr/local/share/pkgconfig/xenlight.pc
root@controller:/usr/ports/devel/libvirt #

Name  : xen
Version : 4.7.0_2

Name  : xen-tools
Version : 4.7.0_4

could you apply this fix for FreeBSD ports tree please?

original issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213744


--

Thanks,

Alex




---- On Wed, 26 Oct 2016 15:02:15 +0300Wei Liu &lt;wei.liu2@citrix.com&gt; wrote ----




On Tue, Oct 25, 2016 at 02:26:55PM +0100, Wei Liu wrote: 

&gt; On Tue, Oct 25, 2016 at 11:53:28AM +0200, Roger Pau Monne wrote: 

&gt; &gt; pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the 

&gt; &gt; default search path, fix this by having a PKG_INSTALLDIR variable that can 

&gt; &gt; be changed on a per-OS basis. 

&gt; &gt; 

&gt; &gt; It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but 

&gt; &gt; sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which 

&gt; &gt; expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of 

&gt; &gt; the default pkg-config search path). 

&gt; &gt; 

&gt; &gt; This patch should not change the behavior for Linux installs. 

&gt; &gt; 

&gt; &gt; Signed-off-by: Roger Pau Monné &lt;roger.pau@citrix.com&gt; 

&gt; &gt; Reported-by: Alexander Nusov &lt;alexander.nusov@nfvexpress.com&gt; 

&gt; 

&gt; Acked-by: Wei Liu &lt;wei.liu2@citrix.com&gt; 

 

Applied. 







[-- Attachment #1.2: Type: text/html, Size: 3039 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-11-19 12:59     ` Alexander Nusov
@ 2016-11-29  9:14       ` Wei Liu
  2016-12-02 16:16       ` Roger Pau Monne
  1 sibling, 0 replies; 7+ messages in thread
From: Wei Liu @ 2016-11-29  9:14 UTC (permalink / raw)
  To: Alexander Nusov; +Cc: xen-devel, Wei Liu, Ian Jackson, Roger Pau Monne

On Sat, Nov 19, 2016 at 03:59:08PM +0300, Alexander Nusov wrote:
> Hello,
> 
> 
> 
> I've reinstalled xen from ports on FreeBSD-11.0
> 
> and it seems xenlight.pc is not being installed to /usr/local/libdata/pkgconfig/ directory.
> 
> 
> 
> root@controller:/usr/ports/devel/libvirt # find /usr/ -type f -name xenlight.pc
> /usr/local/share/pkgconfig/xenlight.pc
> root@controller:/usr/ports/devel/libvirt #
> 
> Name  : xen
> Version : 4.7.0_2
> 
> Name  : xen-tools
> Version : 4.7.0_4
> 
> could you apply this fix for FreeBSD ports tree please?
> 
> original issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213744
> 
> 

FAOD this request should be sent to Roger, who maintains xen port in
FreeBSD.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-11-19 12:59     ` Alexander Nusov
  2016-11-29  9:14       ` Wei Liu
@ 2016-12-02 16:16       ` Roger Pau Monne
  2016-12-02 22:21         ` Alexander Nusov
  1 sibling, 1 reply; 7+ messages in thread
From: Roger Pau Monne @ 2016-12-02 16:16 UTC (permalink / raw)
  To: Alexander Nusov; +Cc: xen-devel, Wei Liu, Ian Jackson

On Sat, Nov 19, 2016 at 03:59:08PM +0300, Alexander Nusov wrote:
> Hello,
> 
> 
> 
> I've reinstalled xen from ports on FreeBSD-11.0
> 
> and it seems xenlight.pc is not being installed to /usr/local/libdata/pkgconfig/ directory.
> 
> 
> 
> root@controller:/usr/ports/devel/libvirt # find /usr/ -type f -name xenlight.pc
> /usr/local/share/pkgconfig/xenlight.pc
> root@controller:/usr/ports/devel/libvirt #
> 
> Name  : xen
> Version : 4.7.0_2
> 
> Name  : xen-tools
> Version : 4.7.0_4
> 
> could you apply this fix for FreeBSD ports tree please?
> 
> original issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213744

Hello,

Sorry for the delay, this should be fixed in 
https://svnweb.freebsd.org/ports?view=revision&revision=427568 I hope the new 
binary packages will appear soon (over the weekend).

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD
  2016-12-02 16:16       ` Roger Pau Monne
@ 2016-12-02 22:21         ` Alexander Nusov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Nusov @ 2016-12-02 22:21 UTC (permalink / raw)
  To: Roger Pau Monne; +Cc: xen-devel, Wei Liu, Ian Jackson


[-- Attachment #1.1: Type: text/plain, Size: 1072 bytes --]

Thanks!



--

alex




---- On Fri, 02 Dec 2016 19:16:33 +0300 Roger Pau Monne &lt;roger.pau@citrix.com&gt; wrote ----




On Sat, Nov 19, 2016 at 03:59:08PM +0300, Alexander Nusov wrote: 

&gt; Hello, 

&gt; 

&gt; 

&gt; 

&gt; I've reinstalled xen from ports on FreeBSD-11.0 

&gt; 

&gt; and it seems xenlight.pc is not being installed to /usr/local/libdata/pkgconfig/ directory. 

&gt; 

&gt; 

&gt; 

&gt; root@controller:/usr/ports/devel/libvirt # find /usr/ -type f -name xenlight.pc 

&gt; /usr/local/share/pkgconfig/xenlight.pc 

&gt; root@controller:/usr/ports/devel/libvirt # 

&gt; 

&gt; Name : xen 

&gt; Version : 4.7.0_2 

&gt; 

&gt; Name : xen-tools 

&gt; Version : 4.7.0_4 

&gt; 

&gt; could you apply this fix for FreeBSD ports tree please? 

&gt; 

&gt; original issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213744 

 

Hello, 

 

Sorry for the delay, this should be fixed in 

https://svnweb.freebsd.org/ports?view=revision&amp;revision=427568 I hope the new 

binary packages will appear soon (over the weekend). 

 

Roger. 







[-- Attachment #1.2: Type: text/html, Size: 2208 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-12-02 22:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-25  9:53 [PATCH v3 for-4.8] tools/configure: fix pkg-config install path for FreeBSD Roger Pau Monne
2016-10-25 13:26 ` Wei Liu
2016-10-26 12:02   ` Wei Liu
2016-11-19 12:59     ` Alexander Nusov
2016-11-29  9:14       ` Wei Liu
2016-12-02 16:16       ` Roger Pau Monne
2016-12-02 22:21         ` Alexander Nusov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.