1 |
dlan 14/03/23 02:37:25 |
2 |
|
3 |
Modified: xenstored.initd |
4 |
Added: xen-tools-4.4-api-fix.patch xen-4.4-nostrip.patch |
5 |
xen-4.4-qemu-bridge.patch |
6 |
Log: |
7 |
bump to 4.4.0 |
8 |
|
9 |
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55) |
10 |
|
11 |
Revision Changes Path |
12 |
1.16 app-emulation/xen-tools/files/xenstored.initd |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?rev=1.16&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?rev=1.16&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?r1=1.15&r2=1.16 |
17 |
|
18 |
Index: xenstored.initd |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd,v |
21 |
retrieving revision 1.15 |
22 |
retrieving revision 1.16 |
23 |
diff -u -r1.15 -r1.16 |
24 |
--- xenstored.initd 23 Feb 2014 13:35:36 -0000 1.15 |
25 |
+++ xenstored.initd 23 Mar 2014 02:37:25 -0000 1.16 |
26 |
@@ -29,6 +29,9 @@ |
27 |
done |
28 |
einfo "Setting domain0 name record" |
29 |
/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0" |
30 |
+ local V=$(xl info| awk "/xen_minor/ { print \$3 }") |
31 |
+ [ $V -ge 4 ] && /usr/bin/xenstore-write "/local/domain/0/domid" 0 |
32 |
+ |
33 |
eend $* |
34 |
} |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.1 app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch?rev=1.1&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch?rev=1.1&content-type=text/plain |
43 |
|
44 |
Index: xen-tools-4.4-api-fix.patch |
45 |
=================================================================== |
46 |
diff --git a/tools/configure b/tools/configure |
47 |
index afc3000..6187468 100755 |
48 |
--- a/tools/configure |
49 |
+++ b/tools/configure |
50 |
@@ -4615,7 +4615,7 @@ if test x"${PERL}" = x"no" |
51 |
then |
52 |
as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 |
53 |
fi |
54 |
-if test "x$xapi" = "xy"; then : |
55 |
+if test "x$xenapi" = "xy"; then : |
56 |
|
57 |
# Extract the first word of "curl-config", so it can be a program name with args. |
58 |
set dummy curl-config; ac_word=$2 |
59 |
diff --git a/tools/configure.ac b/tools/configure.ac |
60 |
index 0754f0e..cc884f7 100644 |
61 |
--- a/tools/configure.ac |
62 |
+++ b/tools/configure.ac |
63 |
@@ -150,7 +150,7 @@ AC_PROG_INSTALL |
64 |
AC_PATH_PROG([BISON], [bison]) |
65 |
AC_PATH_PROG([FLEX], [flex]) |
66 |
AX_PATH_PROG_OR_FAIL([PERL], [perl]) |
67 |
-AS_IF([test "x$xapi" = "xy"], [ |
68 |
+AS_IF([test "x$xenapi" = "xy"], [ |
69 |
AX_PATH_PROG_OR_FAIL([CURL], [curl-config]) |
70 |
AX_PATH_PROG_OR_FAIL([XML], [xml2-config]) |
71 |
]) |
72 |
diff --git a/tools/libxen/Makefile b/tools/libxen/Makefile |
73 |
index b66f0bc..94b854b 100644 |
74 |
--- a/tools/libxen/Makefile |
75 |
+++ b/tools/libxen/Makefile |
76 |
@@ -22,12 +22,15 @@ MAJOR = 1.0 |
77 |
MINOR = 0 |
78 |
|
79 |
CFLAGS += -Iinclude \ |
80 |
- $(shell $(XML2_CONFIG) --cflags) \ |
81 |
- $(shell $(CURL_CONFIG) --cflags) \ |
82 |
-fPIC |
83 |
|
84 |
+ifeq ($(LIBXENAPI_BINDINGS),y) |
85 |
+CFLAGS += $(shell $(XML2_CONFIG) --cflags) \ |
86 |
+ $(shell $(CURL_CONFIG) --cflags) |
87 |
+ |
88 |
LDFLAGS += $(shell $(XML2_CONFIG) --libs) \ |
89 |
$(shell $(CURL_CONFIG) --libs) |
90 |
+endif |
91 |
|
92 |
LIBXENAPI_HDRS = $(wildcard include/xen/api/*.h) include/xen/api/xen_all.h |
93 |
LIBXENAPI_OBJS = $(patsubst %.c, %.o, $(wildcard src/*.c)) |
94 |
|
95 |
|
96 |
|
97 |
1.1 app-emulation/xen-tools/files/xen-4.4-nostrip.patch |
98 |
|
99 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-4.4-nostrip.patch?rev=1.1&view=markup |
100 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-4.4-nostrip.patch?rev=1.1&content-type=text/plain |
101 |
|
102 |
Index: xen-4.4-nostrip.patch |
103 |
=================================================================== |
104 |
diff -ur xen-4.2.0.orig/tools/qemu-xen/Makefile.target xen-4.2.0/tools/qemu-xen/Makefile.target |
105 |
--- tools/qemu-xen/Makefile.target 2012-09-11 02:10:52.000000000 +0800 |
106 |
+++ tools/qemu-xen/Makefile.target 2012-11-22 07:13:38.894263291 +0800 |
107 |
@@ -437,9 +437,6 @@ |
108 |
install: all |
109 |
ifneq ($(PROGS),) |
110 |
$(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" |
111 |
-ifneq ($(STRIP),) |
112 |
- $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) |
113 |
-endif |
114 |
endif |
115 |
ifdef CONFIG_TRACE_SYSTEMTAP |
116 |
ifdef CONFIG_TRACE_SYSTEMTAP |
117 |
|
118 |
|
119 |
|
120 |
1.1 app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch |
121 |
|
122 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch?rev=1.1&view=markup |
123 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch?rev=1.1&content-type=text/plain |
124 |
|
125 |
Index: xen-4.4-qemu-bridge.patch |
126 |
=================================================================== |
127 |
diff --git a/tools/qemu-xen/Makefile b/tools/qemu-xen/Makefile |
128 |
index 4d257f1..db2c2ad 100644 |
129 |
--- a/tools/qemu-xen/Makefile |
130 |
+++ b/tools/qemu-xen/Makefile |
131 |
@@ -62,7 +62,7 @@ $(call set-vpath, $(SRC_PATH)) |
132 |
|
133 |
LIBS+=-lz $(LIBS_TOOLS) |
134 |
|
135 |
-HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF) |
136 |
+HELPERS-$(CONFIG_LINUX) = xen-bridge-helper$(EXESUF) |
137 |
|
138 |
ifdef BUILD_DOCS |
139 |
DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt |
140 |
@@ -186,7 +186,7 @@ qemu-img$(EXESUF): qemu-img.o $(block-obj-y) libqemuutil.a libqemustub.a |
141 |
qemu-nbd$(EXESUF): qemu-nbd.o $(block-obj-y) libqemuutil.a libqemustub.a |
142 |
qemu-io$(EXESUF): qemu-io.o $(block-obj-y) libqemuutil.a libqemustub.a |
143 |
|
144 |
-qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o |
145 |
+xen-bridge-helper$(EXESUF): xen-bridge-helper.o |
146 |
|
147 |
fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o libqemuutil.a libqemustub.a |
148 |
fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap |
149 |
diff --git a/tools/qemu-xen/include/net/net.h b/tools/qemu-xen/include/net/net.h |
150 |
index 30e4b04..6691ff0 100644 |
151 |
--- a/tools/qemu-xen/include/net/net.h |
152 |
+++ b/tools/qemu-xen/include/net/net.h |
153 |
@@ -178,7 +178,7 @@ NetClientState *net_hub_port_find(int hub_id); |
154 |
|
155 |
#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" |
156 |
#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown" |
157 |
-#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/qemu-bridge-helper" |
158 |
+#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/xen-bridge-helper" |
159 |
#define DEFAULT_BRIDGE_INTERFACE "br0" |
160 |
|
161 |
void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd); |
162 |
diff --git a/tools/qemu-xen/qemu-bridge-helper.c b/tools/qemu-xen/qemu-bridge-helper.c |
163 |
index 6a0974e..74b4635 100644 |
164 |
--- a/tools/qemu-xen/qemu-bridge-helper.c |
165 |
+++ b/tools/qemu-xen/qemu-bridge-helper.c |
166 |
@@ -67,7 +67,7 @@ typedef QSIMPLEQ_HEAD(ACLList, ACLRule) ACLList; |
167 |
static void usage(void) |
168 |
{ |
169 |
fprintf(stderr, |
170 |
- "Usage: qemu-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); |
171 |
+ "Usage: xen-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); |
172 |
} |
173 |
|
174 |
static int parse_acl_file(const char *filename, ACLList *acl_list) |
175 |
diff --git a/tools/qemu-xen/qemu-options.hx b/tools/qemu-xen/qemu-options.hx |
176 |
index d15338e..f7104f1 100644 |
177 |
--- a/tools/qemu-xen/qemu-options.hx |
178 |
+++ b/tools/qemu-xen/qemu-options.hx |
179 |
@@ -1601,7 +1601,7 @@ to disable script execution. |
180 |
|
181 |
If running QEMU as an unprivileged user, use the network helper |
182 |
@var{helper} to configure the TAP interface. The default network |
183 |
-helper executable is @file{/usr/local/libexec/qemu-bridge-helper}. |
184 |
+helper executable is @file{/usr/local/libexec/xen-bridge-helper}. |
185 |
|
186 |
@option{fd}=@var{h} can be used to specify the handle of an already |
187 |
opened host TAP interface. |
188 |
@@ -1625,7 +1625,7 @@ qemu-system-i386 linux.img \ |
189 |
#launch a QEMU instance with the default network helper to |
190 |
#connect a TAP device to bridge br0 |
191 |
qemu-system-i386 linux.img \ |
192 |
- -net nic -net tap,"helper=/usr/local/libexec/qemu-bridge-helper" |
193 |
+ -net nic -net tap,"helper=/usr/local/libexec/xen-bridge-helper" |
194 |
@end example |
195 |
|
196 |
@item -netdev bridge,id=@var{id}[,br=@var{bridge}][,helper=@var{helper}] |
197 |
@@ -1634,7 +1634,7 @@ Connect a host TAP network interface to a host bridge device. |
198 |
|
199 |
Use the network helper @var{helper} to configure the TAP interface and |
200 |
attach it to the bridge. The default network helper executable is |
201 |
-@file{/usr/local/libexec/qemu-bridge-helper} and the default bridge |
202 |
+@file{/usr/local/libexec/xen-bridge-helper} and the default bridge |
203 |
device is @file{br0}. |
204 |
|
205 |
Examples: |