From 3f5f0c3020a54b21184513a1d0a8172603cbc94c Mon Sep 17 00:00:00 2001 From: schnoebe Date: Wed, 21 May 2014 04:06:03 +0000 Subject: Pullup ticket #4412 - requested by bouer sysutils/xentools41: Fix build on NetBSD 6.x and NetBSD 5.x Revisions pulled up: - sysutils/xentools41/distinfo 1.36 - sysutils/xentools41/patches/patch-xenstat_libxenstat_Makefile 1.2 - sysutils/xentools41/patches/patch-xenstat_xentop_Makefile 1.1 --- Module Name: pkgsrc Committed By: bouyer Date: Wed May 14 20:22:41 UTC 2014 Modified Files: pkgsrc/sysutils/xentools41: distinfo pkgsrc/sysutils/xentools41/patches: patch-xenstat_libxenstat_Makefile Added Files: pkgsrc/sysutils/xentools41/patches: patch-xenstat_xentop_Makefile Log Message: Make it build on netbsd-6 (and maybe netbsd-5): Don't include other libraries in an archive, our ar seems to not support it. Instead, list all libraries at link time. --- sysutils/xentools41/distinfo | 5 +++-- .../xentools41/patches/patch-xenstat_libxenstat_Makefile | 13 +++++++++++-- sysutils/xentools41/patches/patch-xenstat_xentop_Makefile | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 sysutils/xentools41/patches/patch-xenstat_xentop_Makefile diff --git a/sysutils/xentools41/distinfo b/sysutils/xentools41/distinfo index 6ad2b37d6a7..10024d4091a 100644 --- a/sysutils/xentools41/distinfo +++ b/sysutils/xentools41/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.35 2014/02/13 11:12:58 drochner Exp $ +$NetBSD: distinfo,v 1.35.2.1 2014/05/21 04:06:03 schnoebe Exp $ SHA1 (ipxe-git-v1.0.0.tar.gz) = da052c8de5f3485fe0253c19cf52ed6d72528485 RMD160 (ipxe-git-v1.0.0.tar.gz) = dcd9b6eaafa1ce05c1ebf2a15f2f73ad7a8c5547 @@ -59,5 +59,6 @@ SHA1 (patch-ocaml_common.make) = c59d32301198d65691ab23529dd791de5ac40199 SHA1 (patch-ocaml_xenstored_define.ml) = f44841625554ceba6e83dbb41f688993c2a8d9a2 SHA1 (patch-ocaml_xenstored_utils.ml) = cc792a696743fa348b274b1c23783ea1a0d7da47 SHA1 (patch-qemu-phy-devices) = fef90e50ef0a58db2f2b49b6c23218f371791de5 -SHA1 (patch-xenstat_libxenstat_Makefile) = d797b824afd98ec3dd17c5f9ac1307f0eaab8214 +SHA1 (patch-xenstat_libxenstat_Makefile) = 800dfa58e9f65cfc9694ff4ee8a85c96d6336cfe +SHA1 (patch-xenstat_xentop_Makefile) = 6b59d1a8024f0b7f493a2205afd1d90495f01151 SHA1 (patch-xenstore_Makefile) = 4fa0ed7b76a96011c3cca9c5017be4b5151489f7 diff --git a/sysutils/xentools41/patches/patch-xenstat_libxenstat_Makefile b/sysutils/xentools41/patches/patch-xenstat_libxenstat_Makefile index 3a438ef3676..95fb8b8fc08 100644 --- a/sysutils/xentools41/patches/patch-xenstat_libxenstat_Makefile +++ b/sysutils/xentools41/patches/patch-xenstat_libxenstat_Makefile @@ -1,8 +1,17 @@ -$NetBSD: patch-xenstat_libxenstat_Makefile,v 1.1 2013/04/11 19:57:53 joerg Exp $ +$NetBSD: patch-xenstat_libxenstat_Makefile,v 1.1.10.1 2014/05/21 04:06:03 schnoebe Exp $ --- xenstat/libxenstat/Makefile.orig 2013-03-25 19:37:42.000000000 +0000 +++ xenstat/libxenstat/Makefile -@@ -57,13 +57,13 @@ $(SHLIB): $(OBJECTS-y) +@@ -40,7 +40,7 @@ + LDFLAGS+=-Lsrc -L$(XEN_XENSTORE)/ -L$(XEN_LIBXC)/ + LDLIBS-y = -lxenstore -lxenctrl + LDLIBS-$(CONFIG_SunOS) += -lkstat +-ARLIBS-y = $(XEN_XENSTORE)/libxenstore.so $(XEN_LIBXC)/libxenctrl.so ++ARLIBS-y = + ARLIBS-x86_64 = /usr/lib/amd64/libkstat.so + ARLIBS-x86_32 = /usr/lib/libkstat.so + ARLIBS-$(CONFIG_SunOS) += $(ARLIBS-$(XEN_TARGET_ARCH)) +@@ -57,13 +57,13 @@ $(OBJECTS-y) $(LDLIBS-y) src/xenstat.o: src/xenstat.c src/xenstat.h src/xenstat_priv.h diff --git a/sysutils/xentools41/patches/patch-xenstat_xentop_Makefile b/sysutils/xentools41/patches/patch-xenstat_xentop_Makefile new file mode 100644 index 00000000000..7dfc61daf78 --- /dev/null +++ b/sysutils/xentools41/patches/patch-xenstat_xentop_Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-xenstat_xentop_Makefile,v 1.1.2.2 2014/05/21 04:06:03 schnoebe Exp $ + +--- xenstat/xentop/Makefile.orig 2014-05-14 15:15:54.000000000 +0200 ++++ xenstat/xentop/Makefile 2014-05-14 15:15:56.000000000 +0200 +@@ -19,8 +19,8 @@ + else + + CFLAGS += -DGCC_PRINTF -Wall -Werror -I$(XEN_LIBXENSTAT) +-LDFLAGS += -L$(XEN_LIBXENSTAT) +-LDLIBS += -lxenstat $(CURSES_LIBS) $(SOCKET_LIBS) ++LDFLAGS += -L$(XEN_LIBXENSTAT) -L$(XEN_XENSTORE) -L$(XEN_LIBXC) ++LDLIBS += -lxenstat -lxenstore -lxenctrl $(CURSES_LIBS) $(SOCKET_LIBS) + CFLAGS += -DHOST_$(XEN_OS) + + .PHONY: all -- cgit v1.2.3