pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xentools48 Move /var/lib/xenstored to /var/ru...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/301d084b30f2
branches:  trunk
changeset: 377090:301d084b30f2
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Tue Mar 13 15:15:01 2018 +0000

description:
Move /var/lib/xenstored to /var/run, so that it is automatically cleared
on reboot. From Greg A. Woods in PR pkg/53095
Bump PKGREVISION.

diffstat:

 sysutils/xentools48/Makefile                              |   5 +--
 sysutils/xentools48/distinfo                              |   5 +++-
 sysutils/xentools48/patches/patch-m4_paths.m4             |  16 +++++++++++++++
 sysutils/xentools48/patches/patch-tools_libxl_libxl_dom.c |  13 ++++++++++++
 sysutils/xentools48/patches/patch-tools_xenstore_xs_lib.c |  13 ++++++++++++
 5 files changed, 48 insertions(+), 4 deletions(-)

diffs (111 lines):

diff -r ebb53af9b512 -r 301d084b30f2 sysutils/xentools48/Makefile
--- a/sysutils/xentools48/Makefile      Tue Mar 13 15:09:24 2018 +0000
+++ b/sysutils/xentools48/Makefile      Tue Mar 13 15:15:01 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2018/01/27 17:37:51 abs Exp $
+# $NetBSD: Makefile,v 1.18 2018/03/13 15:15:01 bouyer Exp $
 #
 VERSION=       4.8.3
 VERSION_IPXE=  827dd1bfee67daa683935ce65316f7e0f057fe1c
@@ -19,7 +19,7 @@
 CATEGORIES=            sysutils
 MASTER_SITES=          https://downloads.xenproject.org/release/xen/${VERSION}/
 
-PKGREVISION=           1
+PKGREVISION=           2
 
 DISTFILES=             ${DISTNAME}.tar.gz
 
@@ -187,7 +187,6 @@
 CONF_FILES+=           ${EGDIR}/oxenstored.conf ${PKG_SYSCONFDIR}/oxenstored.conf
 
 OWN_DIRS=              ${PKG_SYSCONFDIR}/scripts ${VARBASE}/log/xen
-OWN_DIRS+=             ${VARBASE}/lib/xen
 
 .for s in ${XEND_SCRIPTS}
 CONF_FILES_PERMS+=     ${EGDIR}/scripts/${s} ${PKG_SYSCONFDIR}/scripts/${s} \
diff -r ebb53af9b512 -r 301d084b30f2 sysutils/xentools48/distinfo
--- a/sysutils/xentools48/distinfo      Tue Mar 13 15:09:24 2018 +0000
+++ b/sysutils/xentools48/distinfo      Tue Mar 13 15:15:01 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2018/01/27 17:37:51 abs Exp $
+$NetBSD: distinfo,v 1.10 2018/03/13 15:15:01 bouyer Exp $
 
 SHA1 (xen48/gmp-4.3.2.tar.bz2) = c011e8feaf1bb89158bd55eaabd7ef8fdd101a2c
 RMD160 (xen48/gmp-4.3.2.tar.bz2) = a8f3f41501ece290c348aeb4444bbea40bc53e71
@@ -61,6 +61,7 @@
 SHA1 (patch-extras_mini-os_include_time.h) = ab3b0794bf892ce6a036aa889c6852d65b508596
 SHA1 (patch-extras_mini-os_lib_sys.c) = 9dd4bcab9deed5132d0fe88a0fe0d33b3fc7d09c
 SHA1 (patch-extras_mini-os_lock.c) = e28753793dee483c1ffad8ea8ed2706353046b50
+SHA1 (patch-m4_paths.m4) = 19250964fd808cad30a2aca3de011650a2788251
 SHA1 (patch-stubdom_Makefile) = 6c52ae9af4003fdc199980b6725265fde5a06545
 SHA1 (patch-stubdom_newlib.patch) = e937cd046db217e45b1de76bd0950f514666bc12
 SHA1 (patch-stubdom_vtpmmgr_marshal.h) = 63bb39894e3c6b81b699966ddfa19cb779e916fc
@@ -90,6 +91,7 @@
 SHA1 (patch-tools_libs_foreignmemory_private.h) = ed97af7fef60ba8752625b19f4e7027a5bc7ac54
 SHA1 (patch-tools_libxl_Makefile) = 6ae383af726e2525c74f5d58b1a8893e55694217
 SHA1 (patch-tools_libxl_libxl__create.c) = 8d4984705fff4a3907cc2a436115c400ef732141
+SHA1 (patch-tools_libxl_libxl_dom.c) = 0c4a96523d13de65aaa71ef705c3579ee8d641f3
 SHA1 (patch-tools_libxl_libxl_event.c) = 8147122d03102eccc45c48a7d6ca1aa5d6286040
 SHA1 (patch-tools_libxl_libxl_internal.h) = 613edc0fa055b23f5dc2a2448456d3d6005337fe
 SHA1 (patch-tools_libxl_libxl_uuid.c) = 1eb8c027dbeb7e67df7475ee6e4d87220140c65b
@@ -120,4 +122,5 @@
 SHA1 (patch-tools_qemu-xen_xen-hvm.c) = 8faeba31a6f6452d50437a4564b32eb0f8965333
 SHA1 (patch-tools_xenpaging_xenpaging.c) = 0a154b97f1f452a5f80f7c9a835a1f216f12f7e1
 SHA1 (patch-tools_xenstore_xc.c) = cf49b65cba064667e13bb041d1f0099c76ab6a40
+SHA1 (patch-tools_xenstore_xs_lib.c) = e3a8f6e3b149c3ab0f4ec8dcfa455983f94e6c16
 SHA1 (patch-tools_xentrace_xentrace.c) = f964c7555f454358a39f28a2e75db8ee100a4243
diff -r ebb53af9b512 -r 301d084b30f2 sysutils/xentools48/patches/patch-m4_paths.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools48/patches/patch-m4_paths.m4     Tue Mar 13 15:15:01 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-m4_paths.m4,v 1.1 2018/03/13 15:15:01 bouyer Exp $
+
+--- m4/paths.m4.orig
++++ m4/paths.m4
+@@ -135,8 +135,9 @@ XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
+ AC_SUBST(XEN_SCRIPT_DIR)
+ 
+ case "$host_os" in
+-*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
+-*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
++*freebsd*) XEN_LOCK_DIR=$rundir_path ;;
++*netbsd*) XEN_LOCK_DIR=$rundir_path ;;
++*openbsd*) XEN_LOCK_DIR=$rundir_path ;;
+ *) XEN_LOCK_DIR=$localstatedir/lock ;;
+ esac
+ AC_SUBST(XEN_LOCK_DIR)
diff -r ebb53af9b512 -r 301d084b30f2 sysutils/xentools48/patches/patch-tools_libxl_libxl_dom.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools48/patches/patch-tools_libxl_libxl_dom.c Tue Mar 13 15:15:01 2018 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-tools_libxl_libxl_dom.c,v 1.1 2018/03/13 15:15:01 bouyer Exp $
+
+--- tools/libxl/libxl_dom.c.orig
++++ tools/libxl/libxl_dom.c
+@@ -1361,7 +1361,7 @@ const char *libxl__userdata_path(libxl__gc *gc, uint32_t domid,
+         goto out;
+     }
+     uuid_string = GCSPRINTF(LIBXL_UUID_FMT, LIBXL_UUID_BYTES(info.uuid));
+-    path = GCSPRINTF(XEN_LIB_DIR "/userdata-%s.%u.%s.%s",
++    path = GCSPRINTF(XEN_RUN_DIR "/userdata-%s.%u.%s.%s",
+                      wh, domid, uuid_string, userdata_userid);
+ 
+  out:
diff -r ebb53af9b512 -r 301d084b30f2 sysutils/xentools48/patches/patch-tools_xenstore_xs_lib.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools48/patches/patch-tools_xenstore_xs_lib.c Tue Mar 13 15:15:01 2018 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-tools_xenstore_xs_lib.c,v 1.1 2018/03/13 15:15:01 bouyer Exp $
+
+--- tools/xenstore/xs_lib.c.orig
++++ tools/xenstore/xs_lib.c
+@@ -52,7 +52,7 @@ static const char *xs_daemon_path(void)
+ const char *xs_daemon_tdb(void)
+ {
+       static char buf[PATH_MAX];
+-      snprintf(buf, sizeof(buf), "%s/tdb", xs_daemon_rootdir());
++      snprintf(buf, sizeof(buf), "%s/tdb", xs_daemon_rundir());
+       return buf;
+ }
+ 



Home | Main Index | Thread Index | Old Index