diff options
Diffstat (limited to 'app-emulation/xen-tools/files')
25 files changed, 139 insertions, 881 deletions
diff --git a/app-emulation/xen-tools/files/fix-gold-ld.patch b/app-emulation/xen-tools/files/fix-gold-ld.patch deleted file mode 100644 index 654eb25..0000000 --- a/app-emulation/xen-tools/files/fix-gold-ld.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/tools/libfsimage/common/Makefile b/tools/libfsimage/common/Makefile -index cbd60b4..d2b83dd 100644 ---- a/tools/libfsimage/common/Makefile -+++ b/tools/libfsimage/common/Makefile -@@ -5,7 +5,7 @@ MAJOR = 1.0 - MINOR = 0 - - LDFLAGS-$(CONFIG_SunOS) = -Wl,-M -Wl,mapfile-SunOS --LDFLAGS-$(CONFIG_Linux) = -Wl,mapfile-GNU -+LDFLAGS-$(CONFIG_Linux) = - LDFLAGS = $(LDFLAGS-y) - - CFLAGS += $(PTHREAD_CFLAGS) - diff --git a/app-emulation/xen-tools/files/gentoo-patches.conf b/app-emulation/xen-tools/files/gentoo-patches.conf new file mode 100644 index 0000000..6fe9bf0 --- /dev/null +++ b/app-emulation/xen-tools/files/gentoo-patches.conf @@ -0,0 +1,126 @@ +# Drop .config, fixes to gcc-4.6 +_gx001=" xen-4-fix_dotconfig-gcc.patch" +_gx020=" xen-4.3-fix_dotconfig-gcc.patch" + +# Fix texi2html build error with new texi2html, qemu.doc.html +_gx002=" xen-tools-4-docfix.patch" +_gx003=" xen-tools-4-qemu-xen-doc.patch" + +_gx004=" xen-tools-4.2-pod-utf8-chars.patch" +_gx005=" xen-tools-4.2-pod-docs.patch" +_gx006=" xen-tools-4.2-pod-xl.patch" + +# Fix network broadcast on bridged networks +_gx007=" xen-tools-3.4.0-network-bridge-broadcast.patch" + +# Bug 496708 +_gx008=" xen-tools-4-unbundle-ipxe.patch" +#use system-seabios && epatch "${FILESDIR}"/${PN}-4-unbundle-seabios.patch + +# Fix bridge by idella4, bug #362575 +_gx009=" xen-tools-4.1.1-bridge.patch" + +# Conditional patch, fix in ebuild +# Don't build ipxe with pie on hardened, Bug #360805 +#if gcc-specs-pie; then +# epatch "${FILESDIR}"/ipxe-nopie.patch +#fi + +# Prevent double stripping of files at install +_gx010=" xen-4.2.0-nostrip.patch" +_gx024+=" xen-4.4-nostrip.patch" + +# fix jobserver in Makefile +_gx011=" xen-4.2.0-jserver.patch" +_gx021=" xen-4.3-jserver.patch" + +# add missing header, Bug #467200 +_gx012=" xen-4-ulong.patch" +_gx013=" xen-tools-4.2-xen_disk_leak.patch" + +# Set dom0-min-mem to kb; Bug #472982 +_gx014=" xen-4.2-configsxp.patch" + +# Bug 463840 +_gx015=" xen-tools-4.2.2-install.patch" +_gx016=" xen-tools-4.2.2-rt-link.patch" + +# Bug 379537 +_gx017=" fix-gold-ld.patch" + +# Bug 510976 +_gx018=" xen-tools-4.2.4-udev-rules.patch" + +# bundled seabios +_gx019=" xen-tools-4-anti-seabios-download.patch" +_gx032=" xen-tools-4.5-anti-seabios-download.patch" + +# Bug 477676 +_gx022=" xen-tools-4.3-ar-cc.patch" +_gx038=" xen-tools-4.8-ar-cc.patch" + +# Prevent file collision with qemu package Bug 478064 +_gx023=" qemu-bridge.patch" +_gx025=" xen-4.4-qemu-bridge.patch" +_gx031=" xen-4.5-qemu-bridge.patch" +_gx039=" xen-4.8-qemu-bridge.patch" +#mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die + +_gx026=" xen-tools-4.4-api-fix.patch" + +# Fix po file collision with app-emulation/qemu, while USE=qemu is enabled, Bug 508302 +_gx027=" xen-tools-4-qemu-fix-po-collision.patch" + +# Fix build failure with ncurses[tinfo], bug 526526 +_gx028=" xen-tools-4.4.1-tinfo.patch" + +# Don't download ovmf, use pre-released +_gx029=" xen-tools-4-anti-ovmf-download.patch" + +# fix build err while using gcc-4.5.x, c99 +_gx033=" xen-tools-4.4.2-gcc99.patch" +_gx034=" xen-tools-4.5.0-gcc99.patch" + +_gx035=" xen-tools-4.2-pod-docs-r1.patch" +# disable stackcheck for hardened system, bug 569810 +_gx036=" xen-tools-4.6-no-stackcheck.patch" + +# increase stack to fix xenqemu err +# https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg03961.html +_gx037=" xen-tools-4.6-increase-stack-size.patch" + + +#Fix issues with zero-length records in migration v2" +#https://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=shortlog;h=refs/heads/tools-fix-zero-length-records +_gx040=" 0001-docs-Clarify-the-expected-behaviour-of-zero-length-r.patch + 0003-tools-libxc-Avoid-generating-inappropriate-zero-leng.patch + 0004-tools-python-Adjust-migration-v2-library-to-warn-abo.patch" + +_gx041=" 0002-tools-libxc-Tolerate-zero-length-records-in-migratio.patch" + +# xen-tools-4.7.2 patches set +_gpv_xen_tools_472_0=" +${_gx008} ${_gx021} +${_gx022} ${_gx017} ${_gx031} +${_gx027} ${_gx032} +${_gx028} ${_gx029} ${_gx036} +${_gx037} ${_gx040} ${_gx041} +" + +# xen-tools-4.7.3 patches set +_gpv_xen_tools_473_0=" +${_gx008} ${_gx021} +${_gx022} ${_gx017} ${_gx031} +${_gx027} ${_gx032} +${_gx028} ${_gx029} ${_gx036} +${_gx037} ${_gx040} +" + +# xen-tools-4.8.1 patches set +_gpv_xen_tools_481_0=" +${_gx008} +${_gx038} ${_gx017} ${_gx039} +${_gx027} ${_gx032} +${_gx028} ${_gx029} +${_gx037} ${_gx040} +" diff --git a/app-emulation/xen-tools/files/ipxe-nopie.patch b/app-emulation/xen-tools/files/ipxe-nopie.patch deleted file mode 100644 index c5be735..0000000 --- a/app-emulation/xen-tools/files/ipxe-nopie.patch +++ /dev/null @@ -1,29 +0,0 @@ -2011-10-22 Ralf Glauberman <ralfglauberman@gmx.de> - - #360805 Don't compile ipxe with pie on hardened. - * /tools/firmware/etherboot/patches/ipxe-nopie.patche New patch - * /tools/firmware/etherboot/patches/series Add ipxe-nopie.patch - ---- a/tools/firmware/etherboot/patches/ipxe-nopie.patch 1970-01-01 01:00:00.000000000 +0100 -+++ b/tools/firmware/etherboot/patches/ipxe-nopie.patch 2011-03-27 17:45:13.929697782 +0200 -@@ -0,0 +1,11 @@ -+--- ipxe/src/Makefile~ 2011-03-27 17:41:52.000000000 +0200 -++++ ipxe/src/Makefile 2011-03-27 17:43:20.869446433 +0200 -+@@ -4,7 +4,7 @@ -+ # -+ -+ CLEANUP := -+-CFLAGS := -++CFLAGS := -nopie -+ ASFLAGS := -+ LDFLAGS := -+ MAKEDEPS := Makefile ---- a/tools/firmware/etherboot/patches/series 2011-03-25 11:42:50.000000000 +0100 -+++ b/tools/firmware/etherboot/patches/series 2011-03-27 17:45:45.140446216 +0200 -@@ -1,4 +1,5 @@ - boot_prompt_option.patch - build_fix_1.patch - build_fix_2.patch - build_fix_3.patch -+ipxe-nopie.patch - diff --git a/app-emulation/xen-tools/files/xen-4-CVE-2012-6075-XSA-41.patch b/app-emulation/xen-tools/files/xen-4-CVE-2012-6075-XSA-41.patch deleted file mode 100644 index 7513ac3..0000000 --- a/app-emulation/xen-tools/files/xen-4-CVE-2012-6075-XSA-41.patch +++ /dev/null @@ -1,39 +0,0 @@ -authorMichael Contreras <michael@inetric.com> - Mon, 3 Dec 2012 04:11:22 +0000 (20:11 -0800) -committerAnthony Liguori <aliguori@us.ibm.com> - Mon, 3 Dec 2012 14:14:10 +0000 (08:14 -0600) - -The e1000_receive function for the e1000 needs to discard packets longer than -1522 bytes if the SBP and LPE flags are disabled. The linux driver assumes -this behavior and allocates memory based on this assumption. - -Signed-off-by: Michael Contreras <michael@inetric.com> -Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> -hw/e1000.c - ---- tools/qemu-xen/hw/e1000.c -+++ tools/qemu-xen/hw/e1000.c -@@ -59,6 +59,9 @@ static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL); - #define PNPMMIO_SIZE 0x20000 - #define MIN_BUF_SIZE 60 /* Min. octets in an ethernet frame sans FCS */ - -+/* this is the size past which hardware will drop packets when setting LPE=0 */ -+#define MAXIMUM_ETHERNET_VLAN_SIZE 1522 -+ - /* - * HW models: - * E1000_DEV_ID_82540EM works with Windows and Linux -@@ -805,6 +808,13 @@ e1000_receive(NetClientState *nc, const uint8_t *buf, size_t size) - size = sizeof(min_buf); - } - -+ /* Discard oversized packets if !LPE and !SBP. */ -+ if (size > MAXIMUM_ETHERNET_VLAN_SIZE -+ && !(s->mac_reg[RCTL] & E1000_RCTL_LPE) -+ && !(s->mac_reg[RCTL] & E1000_RCTL_SBP)) { -+ return size; -+ } -+ - if (!receive_filter(s, buf, size)) - return size; - diff --git a/app-emulation/xen-tools/files/xen-4-fix_dotconfig-gcc.patch b/app-emulation/xen-tools/files/xen-4-fix_dotconfig-gcc.patch deleted file mode 100644 index 4e08a30..0000000 --- a/app-emulation/xen-tools/files/xen-4-fix_dotconfig-gcc.patch +++ /dev/null @@ -1,245 +0,0 @@ -# Fix gcc-4.6 -diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk ---- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800 -+++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800 -@@ -6,7 +6,7 @@ - - # Define some default flags. - # NB. '-Wcast-qual' is nasty, so I omitted it. --DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls -+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls - DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) - DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) - DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile ---- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800 -+++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800 -@@ -73,7 +73,7 @@ - - -include $(XEN_TARGET_ARCH)/Makefile - --CFLAGS += -Werror -Wmissing-prototypes -+CFLAGS += -Wmissing-prototypes - CFLAGS += -I. $(CFLAGS_xeninclude) - - # Needed for posix_fadvise64() in xc_linux.c -# Drop .config -diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk ---- Config.mk 2012-09-17 18:23:12.000000000 +0800 -+++ Config.mk 2012-12-05 14:01:10.641260261 +0800 -@@ -7,7 +7,6 @@ Drop .config - # fallback for older make - realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))"))) - ---include $(XEN_ROOT)/.config - - # A debug build of Xen and tools? - debug ?= n -@@ -24,7 +24,7 @@ - - # Tools to run on system hosting the build - HOSTCC = gcc --HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -+HOSTCFLAGS = -Wstrict-prototypes -O2 -fomit-frame-pointer - HOSTCFLAGS += -fno-strict-aliasing - - DISTDIR ?= $(XEN_ROOT)/dist -@@ -156,7 +156,7 @@ - - CFLAGS += -std=gnu99 - --CFLAGS += -Wall -Wstrict-prototypes -+CFLAGS += -Wstrict-prototypes - - # Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...' - # and is over-zealous with the printf format lint -diff -ur xen-4.2.1.orig/tools/blktap2/drivers/Makefile xen-4.2.1/tools/blktap2/drivers/Makefile ---- tools/blktap2/drivers/Makefile 2012-12-17 23:00:11.000000000 +0800 -+++ tools/blktap2/drivers/Makefile 2013-01-30 12:31:43.539941099 +0800 -@@ -9,7 +9,7 @@ - LOCK_UTIL = lock-util - INST_DIR = $(SBINDIR) - --CFLAGS += -Werror -g -+CFLAGS += -g - CFLAGS += -Wno-unused - CFLAGS += -fno-strict-aliasing - CFLAGS += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers -diff -ur xen-4.2.1.orig/tools/debugger/gdbsx/Rules.mk xen-4.2.1/tools/debugger/gdbsx/Rules.mk ---- tools/debugger/gdbsx/Rules.mk 2012-12-17 23:00:22.000000000 +0800 -+++ tools/debugger/gdbsx/Rules.mk 2013-01-30 12:31:43.516941098 +0800 -@@ -1,4 +1,4 @@ - include $(XEN_ROOT)/tools/Rules.mk - --CFLAGS += -Werror -Wmissing-prototypes -+CFLAGS += -Wmissing-prototypes - # (gcc 4.3x and later) -Wconversion -Wno-sign-conversion -diff -ur xen-4.2.1.orig/tools/debugger/xenitp/Makefile xen-4.2.1/tools/debugger/xenitp/Makefile ---- tools/debugger/xenitp/Makefile 2012-12-17 23:00:22.000000000 +0800 -+++ tools/debugger/xenitp/Makefile 2013-01-30 12:31:43.516941098 +0800 -@@ -1,7 +1,7 @@ - XEN_ROOT=$(CURDIR)/../../.. - include $(XEN_ROOT)/tools/Rules.mk - --#CFLAGS += -Werror -g -O0 -+#CFLAGS += -g -O0 - - CFLAGS += $(CFLAGS_libxenctrl) - -diff -ur xen-4.2.1.orig/tools/libaio/harness/Makefile xen-4.2.1/tools/libaio/harness/Makefile ---- tools/libaio/harness/Makefile 2012-12-17 23:00:35.000000000 +0800 -+++ tools/libaio/harness/Makefile 2013-01-30 12:31:43.541941099 +0800 -@@ -4,7 +4,7 @@ - HARNESS_SRCS:=main.c - # io_queue.c - --CFLAGS=-Wall -Werror -g -O -laio -+CFLAGS=-Wall -g -O -laio - #-lpthread -lrt - - all: $(PROGS) -diff -ur xen-4.2.1.orig/tools/libfsimage/Rules.mk xen-4.2.1/tools/libfsimage/Rules.mk ---- tools/libfsimage/Rules.mk 2012-12-17 23:00:36.000000000 +0800 -+++ tools/libfsimage/Rules.mk 2013-01-30 12:31:43.515941097 +0800 -@@ -1,7 +1,7 @@ - include $(XEN_ROOT)/tools/Rules.mk - - CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\" --CFLAGS += -Werror -D_GNU_SOURCE -+CFLAGS += -D_GNU_SOURCE - LDFLAGS += -L../common/ - - PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y)) -diff -ur xen-4.2.1.orig/tools/libxl/Makefile xen-4.2.1/tools/libxl/Makefile ---- tools/libxl/Makefile 2012-12-17 23:01:08.000000000 +0800 -+++ tools/libxl/Makefile 2013-01-30 12:31:43.541941099 +0800 -@@ -11,7 +11,7 @@ - XLUMAJOR = 1.0 - XLUMINOR = 1 - --CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \ -+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \ - -Wno-declaration-after-statement -Wformat-nonliteral - CFLAGS += -I. -fPIC - -diff -ur xen-4.2.1.orig/tools/qemu-xen/pc-bios/optionrom/Makefile xen-4.2.1/tools/qemu-xen/pc-bios/optionrom/Makefile ---- tools/qemu-xen/pc-bios/optionrom/Makefile 2012-09-11 02:10:52.000000000 +0800 -+++ tools/qemu-xen/pc-bios/optionrom/Makefile 2013-01-30 12:31:43.528941098 +0800 -@@ -9,7 +9,7 @@ - - .PHONY : all clean build-all - --CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin -+CFLAGS := -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-builtin - CFLAGS += -I$(SRC_PATH) - CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector) - QEMU_CFLAGS = $(CFLAGS) -diff -ur xen-4.2.1.orig/tools/vtpm/Rules.mk xen-4.2.1/tools/vtpm/Rules.mk ---- tools/vtpm/Rules.mk 2012-12-17 23:01:35.000000000 +0800 -+++ tools/vtpm/Rules.mk 2013-01-30 12:31:43.515941097 +0800 -@@ -6,7 +6,7 @@ - # - - # General compiler flags --CFLAGS = -Werror -g3 -+CFLAGS = -g3 - - # Generic project files - HDRS = $(wildcard *.h) -diff -ur xen-4.2.1.orig/tools/vtpm_manager/Rules.mk xen-4.2.1/tools/vtpm_manager/Rules.mk ---- tools/vtpm_manager/Rules.mk 2012-12-17 23:01:35.000000000 +0800 -+++ tools/vtpm_manager/Rules.mk 2013-01-30 12:31:43.511941097 +0800 -@@ -6,7 +6,7 @@ - # - - # General compiler flags --CFLAGS = -Werror -g3 -+CFLAGS = -g3 - - # Generic project files - HDRS = $(wildcard *.h) -diff -ur xen-4.2.1.orig/tools/xenstat/xentop/Makefile xen-4.2.1/tools/xenstat/xentop/Makefile ---- tools/xenstat/xentop/Makefile 2012-12-17 23:01:35.000000000 +0800 -+++ tools/xenstat/xentop/Makefile 2013-01-30 12:31:43.535941098 +0800 -@@ -18,7 +18,7 @@ - all install xentop: - else - --CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat) -+CFLAGS += -DGCC_PRINTF -Wall $(CFLAGS_libxenstat) - LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS) - CFLAGS += -DHOST_$(XEN_OS) - -diff -ur xen-4.2.1.orig/xen/arch/arm/Rules.mk xen-4.2.1/xen/arch/arm/Rules.mk ---- xen/arch/arm/Rules.mk 2012-12-17 23:01:37.000000000 +0800 -+++ xen/arch/arm/Rules.mk 2013-01-30 12:31:43.498941097 +0800 -@@ -9,7 +9,7 @@ - HAS_DEVICE_TREE := y - - CFLAGS += -fno-builtin -fno-common -Wredundant-decls --CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe -+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe - CFLAGS += -I$(BASEDIR)/include - - # Prevent floating-point variables from creeping into Xen. -diff -ur xen-4.2.1.orig/xen/arch/x86/Rules.mk xen-4.2.1/xen/arch/x86/Rules.mk ---- xen/arch/x86/Rules.mk 2012-12-17 23:01:37.000000000 +0800 -+++ xen/arch/x86/Rules.mk 2013-01-30 12:31:43.490941096 +0800 -@@ -24,7 +24,7 @@ - endif - - CFLAGS += -fno-builtin -fno-common -Wredundant-decls --CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe -+CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe - CFLAGS += -I$(BASEDIR)/include - CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic - CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default -diff -ur xen-4.2.1.orig/xen/include/Makefile xen-4.2.1/xen/include/Makefile ---- xen/include/Makefile 2012-12-17 23:01:55.000000000 +0800 -+++ xen/include/Makefile 2013-01-30 12:31:43.502941097 +0800 -@@ -78,7 +78,7 @@ - all: headers.chk - - headers.chk: $(filter-out public/arch-% public/%ctl.h public/xsm/% public/%hvm/save.h, $(wildcard public/*.h public/*/*.h) $(public-y)) Makefile -- for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new -+ for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new - mv $@.new $@ - - endif -diff -ur xen-4.2.1.orig/tools/tests/mce-test/tools/Makefile xen-4.2.1/tools/tests/mce-test/tools/Makefile ---- tools/tests/mce-test/tools/Makefile 2012-12-17 23:01:35.000000000 +0800 -+++ tools/tests/mce-test/tools/Makefile 2013-01-30 13:01:44.890020152 +0800 -@@ -1,7 +1,7 @@ - XEN_ROOT=$(CURDIR)/../../../.. - include $(XEN_ROOT)/tools/Rules.mk - --CFLAGS += -Werror -+CFLAGS += - CFLAGS += $(CFLAGS_libxenctrl) - CFLAGS += $(CFLAGS_libxenguest) - CFLAGS += $(CFLAGS_libxenstore) -diff -ur xen-4.2.1.orig/tools/tests/mem-sharing/Makefile xen-4.2.1/tools/tests/mem-sharing/Makefile ---- tools/tests/mem-sharing/Makefile 2012-12-17 23:01:35.000000000 +0800 -+++ tools/tests/mem-sharing/Makefile 2013-01-30 13:01:44.890020152 +0800 -@@ -1,7 +1,7 @@ - XEN_ROOT=$(CURDIR)/../../.. - include $(XEN_ROOT)/tools/Rules.mk - --CFLAGS += -Werror -+CFLAGS += - - CFLAGS += $(CFLAGS_libxenctrl) - CFLAGS += $(CFLAGS_xeninclude) -diff -ur xen-4.2.1.orig/tools/tests/xen-access/Makefile xen-4.2.1/tools/tests/xen-access/Makefile ---- tools/tests/xen-access/Makefile 2012-12-17 23:01:35.000000000 +0800 -+++ tools/tests/xen-access/Makefile 2013-01-30 13:01:44.891020152 +0800 -@@ -1,7 +1,7 @@ - XEN_ROOT=$(CURDIR)/../../.. - include $(XEN_ROOT)/tools/Rules.mk - --CFLAGS += -Werror -+CFLAGS += - - CFLAGS += $(CFLAGS_libxenctrl) - CFLAGS += $(CFLAGS_libxenguest) - diff --git a/app-emulation/xen-tools/files/xen-4.2-configsxp.patch b/app-emulation/xen-tools/files/xen-4.2-configsxp.patch deleted file mode 100644 index 4c159c1..0000000 --- a/app-emulation/xen-tools/files/xen-4.2-configsxp.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -ur xen-4.2.1.orig/tools/examples/xend-config.sxp xen-4.2.1/tools/examples/xend-config.sxp ---- tools/examples/xend-config.sxp 2012-12-17 23:00:23.000000000 +0800 -+++ tools/examples/xend-config.sxp 2013-06-27 21:32:50.198221774 +0800 -@@ -200,7 +200,7 @@ - #(network-script network-nat) - #(vif-script vif-nat) - --# dom0-min-mem is the lowest permissible memory level (in MB) for dom0. -+# dom0-min-mem is the lowest permissible memory level (in kb) for dom0. - # This is a minimum both for auto-ballooning (as enabled by - # enable-dom0-ballooning below) and for xm mem-set when applied to dom0. - (dom0-min-mem 196) -diff -ur xen-4.2.1.orig/tools/python/xen/xend/tests/xend-config.sxp xen-4.2.1/tools/python/xen/xend/tests/xend-config.sxp ---- tools/python/xen/xend/tests/xend-config.sxp 2012-12-17 23:01:27.000000000 +0800 -+++ tools/python/xen/xend/tests/xend-config.sxp 2013-06-27 21:32:02.726225130 +0800 -@@ -116,7 +116,7 @@ - - - # Dom0 will balloon out when needed to free memory for domU. --# dom0-min-mem is the lowest memory level (in MB) dom0 will get down to. -+# dom0-min-mem is the lowest memory level (in kb) dom0 will get down to. - # If dom0-min-mem=0, dom0 will never balloon out. - (dom0-min-mem 196) - diff --git a/app-emulation/xen-tools/files/xen-4.2.0-anti-download.patch b/app-emulation/xen-tools/files/xen-4.2.0-anti-download.patch deleted file mode 100644 index 95a1ce6..0000000 --- a/app-emulation/xen-tools/files/xen-4.2.0-anti-download.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/firmware/etherboot/Makefile xen-4.2.0/tools/firmware/etherboot/Makefile ---- tools/firmware/etherboot/Makefile 2012-09-17 18:21:18.000000000 +0800 -+++ tools/firmware/etherboot/Makefile 2012-11-21 14:12:54.389536642 +0800 -@@ -28,13 +28,6 @@ - $(MAKE) -C $D/src bin/$(*F).rom - - $T: -- if ! wget -O _$T $(IPXE_TARBALL_URL); then \ -- $(GIT) clone $(IPXE_GIT_URL) $D.git; \ -- (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ -- $(IPXE_GIT_TAG) | gzip >../_$T); \ -- rm -rf $D.git; \ -- fi -- mv _$T $T - - $D/src/arch/i386/Makefile: $T Config - rm -rf $D -diff -ur xen-4.2.0.orig/tools/firmware/Makefile xen-4.2.0/tools/firmware/Makefile ---- tools/firmware/Makefile 2012-09-17 18:21:18.000000000 +0800 -+++ tools/firmware/Makefile 2012-11-21 16:14:21.974868539 +0800 -@@ -18,7 +18,6 @@ - cp ovmf-makefile ovmf/Makefile; - - seabios-dir: -- GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(SEABIOS_UPSTREAM_URL) $(SEABIOS_UPSTREAM_TAG) seabios-dir - cp seabios-config seabios-dir/.config; - - .PHONY: all diff --git a/app-emulation/xen-tools/files/xen-4.2.0-jserver.patch b/app-emulation/xen-tools/files/xen-4.2.0-jserver.patch deleted file mode 100644 index d42080c..0000000 --- a/app-emulation/xen-tools/files/xen-4.2.0-jserver.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/tests/x86_emulator/Makefile xen-4.2.0/tools/tests/x86_emulator/Makefile ---- tools/tests/x86_emulator/Makefile 2012-09-17 18:21:19.000000000 +0800 -+++ tools/tests/x86_emulator/Makefile 2012-11-24 05:06:24.355778737 +0800 -@@ -14,13 +14,13 @@ - .PHONY: blowfish.h - blowfish.h: - rm -f blowfish.bin -- XEN_TARGET_ARCH=x86_32 make -f blowfish.mk all -+ XEN_TARGET_ARCH=x86_32 $(MAKE) -f blowfish.mk all - (echo "static unsigned int blowfish32_code[] = {"; \ - od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\ - echo "};") >$@ - rm -f blowfish.bin - ifeq ($(XEN_COMPILE_ARCH),x86_64) -- XEN_TARGET_ARCH=x86_64 make -f blowfish.mk all -+ XEN_TARGET_ARCH=x86_64 $(MAKE) -f blowfish.mk all - (echo "static unsigned int blowfish64_code[] = {"; \ - od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\ - echo "};") >>$@ - diff --git a/app-emulation/xen-tools/files/xen-4.2.0-nostrip.patch b/app-emulation/xen-tools/files/xen-4.2.0-nostrip.patch deleted file mode 100644 index de06279..0000000 --- a/app-emulation/xen-tools/files/xen-4.2.0-nostrip.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/qemu-xen-traditional/Makefile xen-4.2.0/tools/qemu-xen-traditional/Makefile ---- tools/qemu-xen-traditional/Makefile 2012-09-07 00:05:30.000000000 +0800 -+++ tools/qemu-xen-traditional/Makefile 2012-11-22 06:12:29.433599695 +0800 -@@ -243,7 +243,7 @@ - install: all $(if $(BUILD_DOCS),install-doc) - mkdir -p "$(DESTDIR)$(bindir)" - ifneq ($(TOOLS),) -- $(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)" -+ $(INSTALL) -m 755 $(TOOLS) "$(DESTDIR)$(bindir)" - endif - ifneq ($(BLOBS),) - mkdir -p "$(DESTDIR)$(datadir)" -diff -ur xen-4.2.0.orig/tools/qemu-xen-traditional/Makefile.target xen-4.2.0/tools/qemu-xen-traditional/Makefile.target ---- tools/qemu-xen-traditional/Makefile.target 2012-09-07 00:05:30.000000000 +0800 -+++ tools/qemu-xen-traditional/Makefile.target 2012-11-22 06:26:45.302521231 +0800 -@@ -755,7 +755,7 @@ - - install: all install-hook - ifneq ($(PROGS),) -- $(INSTALL) -m 755 -s $(PROGS) "$(DESTDIR)$(bindir)" -+ $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" - endif - - # Include automatically generated dependency files -diff -ur xen-4.2.0.orig/tools/qemu-xen/Makefile.target xen-4.2.0/tools/qemu-xen/Makefile.target ---- tools/qemu-xen/Makefile.target 2012-09-11 02:10:52.000000000 +0800 -+++ tools/qemu-xen/Makefile.target 2012-11-22 07:13:38.894263291 +0800 -@@ -437,9 +437,6 @@ - install: all - ifneq ($(PROGS),) - $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" --ifneq ($(STRIP),) -- $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) --endif - endif - ifdef CONFIG_TRACE_SYSTEMTAP - ifdef CONFIG_TRACE_SYSTEMTAP diff --git a/app-emulation/xen-tools/files/xen-4.3-jserver.patch b/app-emulation/xen-tools/files/xen-4.3-jserver.patch deleted file mode 100644 index 514fd05..0000000 --- a/app-emulation/xen-tools/files/xen-4.3-jserver.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/tests/x86_emulator/Makefile xen-4.2.0/tools/tests/x86_emulator/Makefile ---- tools/tests/x86_emulator/Makefile 2012-09-17 18:21:19.000000000 +0800 -+++ tools/tests/x86_emulator/Makefile 2012-11-24 05:06:24.355778737 +0800 -@@ -14,13 +14,13 @@ - .PHONY: blowfish.h - blowfish.h: - rm -f blowfish.bin -- XEN_TARGET_ARCH=x86_32 make -f blowfish.mk all -+ XEN_TARGET_ARCH=x86_32 $(MAKE) -f blowfish.mk all - (echo "static unsigned int blowfish32_code[] = {"; \ - od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\ - echo "};") >$@ - rm -f blowfish.bin - ifeq ($(XEN_COMPILE_ARCH),x86_64) -- XEN_TARGET_ARCH=x86_64 make -f blowfish.mk all -+ XEN_TARGET_ARCH=x86_64 $(MAKE) -f blowfish.mk all - (echo "static unsigned int blowfish64_code[] = {"; \ - od -v -t x blowfish.bin | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$$/,/';\ - echo "};") >>$@ - -diff -ur xen-4.2.0.orig/tools/firmware/vgabios/Makefile xen-4.2.0/tools/firmware/vgabios/Makefile ---- tools/firmware/vgabios/Makefile 2013-02-04 13:56:50.973533544 +0800 -+++ tools/firmware/vgabios/Makefile 2013-02-04 13:57:21.380535958 +0800 -@@ -27,7 +27,7 @@ - - .PHONY: release - release: -- VGABIOS_VERS=\"-DVGABIOS_VERS=\\\"$(RELVERS)\\\"\" make bios cirrus-bios -+ VGABIOS_VERS=\"-DVGABIOS_VERS=\\\"$(RELVERS)\\\"\" $(MAKE) bios cirrus-bios - /bin/rm -f *.o *.s *.ld86 \ - temp.awk.* vgabios.*.orig _vgabios_.*.c core *.bak .#* - cp VGABIOS-lgpl-latest.bin ../$(RELEASE).bin diff --git a/app-emulation/xen-tools/files/xen-4.4-nostrip.patch b/app-emulation/xen-tools/files/xen-4.4-nostrip.patch deleted file mode 100644 index 7ddd354..0000000 --- a/app-emulation/xen-tools/files/xen-4.4-nostrip.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/qemu-xen/Makefile.target xen-4.2.0/tools/qemu-xen/Makefile.target ---- tools/qemu-xen/Makefile.target 2012-09-11 02:10:52.000000000 +0800 -+++ tools/qemu-xen/Makefile.target 2012-11-22 07:13:38.894263291 +0800 -@@ -437,9 +437,6 @@ - install: all - ifneq ($(PROGS),) - $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" --ifneq ($(STRIP),) -- $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) --endif - endif - ifdef CONFIG_TRACE_SYSTEMTAP - ifdef CONFIG_TRACE_SYSTEMTAP diff --git a/app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch b/app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch deleted file mode 100644 index 8544561..0000000 --- a/app-emulation/xen-tools/files/xen-4.4-qemu-bridge.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff --git a/tools/qemu-xen/Makefile b/tools/qemu-xen/Makefile -index 4d257f1..db2c2ad 100644 ---- a/tools/qemu-xen/Makefile -+++ b/tools/qemu-xen/Makefile -@@ -62,7 +62,7 @@ $(call set-vpath, $(SRC_PATH)) - - LIBS+=-lz $(LIBS_TOOLS) - --HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF) -+HELPERS-$(CONFIG_LINUX) = xen-bridge-helper$(EXESUF) - - ifdef BUILD_DOCS - DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt -@@ -186,7 +186,7 @@ qemu-img$(EXESUF): qemu-img.o $(block-obj-y) libqemuutil.a libqemustub.a - qemu-nbd$(EXESUF): qemu-nbd.o $(block-obj-y) libqemuutil.a libqemustub.a - qemu-io$(EXESUF): qemu-io.o $(block-obj-y) libqemuutil.a libqemustub.a - --qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o -+xen-bridge-helper$(EXESUF): xen-bridge-helper.o - - fsdev/virtfs-proxy-helper$(EXESUF): fsdev/virtfs-proxy-helper.o fsdev/virtio-9p-marshal.o libqemuutil.a libqemustub.a - fsdev/virtfs-proxy-helper$(EXESUF): LIBS += -lcap -diff --git a/tools/qemu-xen/include/net/net.h b/tools/qemu-xen/include/net/net.h -index 30e4b04..6691ff0 100644 ---- a/tools/qemu-xen/include/net/net.h -+++ b/tools/qemu-xen/include/net/net.h -@@ -178,7 +178,7 @@ NetClientState *net_hub_port_find(int hub_id); - - #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup" - #define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown" --#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/qemu-bridge-helper" -+#define DEFAULT_BRIDGE_HELPER CONFIG_QEMU_HELPERDIR "/xen-bridge-helper" - #define DEFAULT_BRIDGE_INTERFACE "br0" - - void qdev_set_nic_properties(DeviceState *dev, NICInfo *nd); -diff --git a/tools/qemu-xen/qemu-bridge-helper.c b/tools/qemu-xen/qemu-bridge-helper.c -index 6a0974e..74b4635 100644 ---- a/tools/qemu-xen/qemu-bridge-helper.c -+++ b/tools/qemu-xen/qemu-bridge-helper.c -@@ -67,7 +67,7 @@ typedef QSIMPLEQ_HEAD(ACLList, ACLRule) ACLList; - static void usage(void) - { - fprintf(stderr, -- "Usage: qemu-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); -+ "Usage: xen-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); - } - - static int parse_acl_file(const char *filename, ACLList *acl_list) -diff --git a/tools/qemu-xen/qemu-options.hx b/tools/qemu-xen/qemu-options.hx -index d15338e..f7104f1 100644 ---- a/tools/qemu-xen/qemu-options.hx -+++ b/tools/qemu-xen/qemu-options.hx -@@ -1601,7 +1601,7 @@ to disable script execution. - - If running QEMU as an unprivileged user, use the network helper - @var{helper} to configure the TAP interface. The default network --helper executable is @file{/usr/local/libexec/qemu-bridge-helper}. -+helper executable is @file{/usr/local/libexec/xen-bridge-helper}. - - @option{fd}=@var{h} can be used to specify the handle of an already - opened host TAP interface. -@@ -1625,7 +1625,7 @@ qemu-system-i386 linux.img \ - #launch a QEMU instance with the default network helper to - #connect a TAP device to bridge br0 - qemu-system-i386 linux.img \ -- -net nic -net tap,"helper=/usr/local/libexec/qemu-bridge-helper" -+ -net nic -net tap,"helper=/usr/local/libexec/xen-bridge-helper" - @end example - - @item -netdev bridge,id=@var{id}[,br=@var{bridge}][,helper=@var{helper}] -@@ -1634,7 +1634,7 @@ Connect a host TAP network interface to a host bridge device. - - Use the network helper @var{helper} to configure the TAP interface and - attach it to the bridge. The default network helper executable is --@file{/usr/local/libexec/qemu-bridge-helper} and the default bridge -+@file{/usr/local/libexec/xen-bridge-helper} and the default bridge - device is @file{br0}. - - Examples: diff --git a/app-emulation/xen-tools/files/xen-tools-3.4.0-network-bridge-broadcast.patch b/app-emulation/xen-tools/files/xen-tools-3.4.0-network-bridge-broadcast.patch deleted file mode 100644 index c926510..0000000 --- a/app-emulation/xen-tools/files/xen-tools-3.4.0-network-bridge-broadcast.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- xen-3.4.0/tools/hotplug/Linux/network-bridge.orig 2009-05-18 15:05:38.000000000 +0400 -+++ xen-3.4.0/tools/hotplug/Linux/network-bridge 2009-06-09 23:16:05.000000000 +0400 -@@ -101,7 +101,7 @@ - tdev=tmpbridge - - get_ip_info() { -- addr_pfx=`ip addr show dev $1 | egrep '^ *inet' | sed -e 's/ *inet //' -e 's/ .*//'` -+ addr_pfx=`ip addr show dev $1 | egrep '^ *inet ' | sed -e 's/ *inet //' -e "s/$1//"` - gateway=`ip route show dev $1 | fgrep default | sed 's/default via //'` - } - diff --git a/app-emulation/xen-tools/files/xen-tools-4-docfix.patch b/app-emulation/xen-tools/files/xen-tools-4-docfix.patch deleted file mode 100644 index c9205a4..0000000 --- a/app-emulation/xen-tools/files/xen-tools-4-docfix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur xen-4.2.0.orig/tools/qemu-xen-traditional/Makefile xen-4.2.0/tools/qemu-xen-traditional/Makefile ---- xen-4.2.0.orig/tools/qemu-xen-traditional/Makefile 2012-09-07 00:05:30.000000000 +0800 -+++ xen-4.2.0/tools/qemu-xen-traditional/Makefile 2013-01-29 11:12:20.502989453 +0800 -@@ -275,7 +275,7 @@ - - # documentation - %.html: %.texi -- texi2html -monolithic -number $< -+ texi2html -monolithic $< - - %.info: %.texi - makeinfo $< -o $@ diff --git a/app-emulation/xen-tools/files/xen-tools-4-unbundle-ipxe.patch b/app-emulation/xen-tools/files/xen-tools-4-unbundle-ipxe.patch deleted file mode 100644 index 902c9ac..0000000 --- a/app-emulation/xen-tools/files/xen-tools-4-unbundle-ipxe.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- xen-4.2.0/tools/firmware/hvmloader/Makefile.orig 2012-05-27 21:57:04.481812859 +0100 -+++ xen-4.2.0/tools/firmware/hvmloader/Makefile 2012-06-02 18:52:44.935034128 +0100 -@@ -48,7 +48,7 @@ - else - CIRRUSVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.cirrus.bin - endif --ETHERBOOT_ROMS := $(addprefix ../etherboot/ipxe/src/bin/, $(addsuffix .rom, $(ETHERBOOT_NICS))) -+ETHERBOOT_ROMS := $(addprefix /usr/share/ipxe/, $(addsuffix .rom, $(ETHERBOOT_NICS))) - endif - - ROMS := ---- xen-4.2.0/Config.mk.orig 2012-05-27 21:57:04.479812884 +0100 -+++ xen-4.2.0/Config.mk 2012-06-02 18:55:14.087169469 +0100 -@@ -206,7 +206,7 @@ - # Wed Jun 26 16:30:45 2013 +0100 - # xen: Don't perform SMP setup. - --ETHERBOOT_NICS ?= rtl8139 8086100e -+ETHERBOOT_NICS ?= 10ec8139 8086100e - - # Specify which qemu-dm to use. This may be `ioemu' to use the old - # Mercurial in-tree version, or a local directory, or a git URL. ---- xen-4.2.0/tools/firmware/Makefile.orig 2012-05-27 21:57:04.480812871 +0100 -+++ xen-4.2.0/tools/firmware/Makefile 2012-06-02 19:03:52.254691484 +0100 -@@ -10,7 +10,7 @@ - #SUBDIRS-$(CONFIG_SEABIOS) += seabios-dir - SUBDIRS-$(CONFIG_ROMBIOS) += rombios - SUBDIRS-$(CONFIG_ROMBIOS) += vgabios --SUBDIRS-$(CONFIG_ROMBIOS) += etherboot -+#SUBDIRS-$(CONFIG_ROMBIOS) += etherboot - SUBDIRS-y += hvmloader - - ovmf: diff --git a/app-emulation/xen-tools/files/xen-tools-4.1.1-bridge.patch b/app-emulation/xen-tools/files/xen-tools-4.1.1-bridge.patch deleted file mode 100644 index 4b3a4ba..0000000 --- a/app-emulation/xen-tools/files/xen-tools-4.1.1-bridge.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur xen-4.1.1.orig//tools/hotplug/Linux/network-bridge xen-4.1.1/tools/hotplug/Linux/network-bridge ---- xen-4.1.1.orig//tools/hotplug/Linux/network-bridge 2011-10-14 02:28:43.481714285 +0800 -+++ xen-4.1.1/tools/hotplug/Linux/network-bridge 2011-10-16 01:06:11.226673108 +0800 -@@ -216,7 +216,7 @@ - return - fi - -- if [ `brctl show | wc -l` != 1 ]; then -+ if [ `brctl show | grep $netdev | wc -l` != 0 ]; then - return - fi - diff --git a/app-emulation/xen-tools/files/xen-tools-4.3-ar-cc.patch b/app-emulation/xen-tools/files/xen-tools-4.3-ar-cc.patch deleted file mode 100644 index 174b404..0000000 --- a/app-emulation/xen-tools/files/xen-tools-4.3-ar-cc.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff -ur xen-4.3.0.orig/tools/debugger/gdbsx/gx/Makefile xen-4.3.0/tools/debugger/gdbsx/gx/Makefile ---- tools/debugger/gdbsx/gx/Makefile 2013-07-09 18:46:56.000000000 +0800 -+++ tools/debugger/gdbsx/gx/Makefile 2013-07-23 16:14:53.930752663 +0800 -@@ -3,6 +3,7 @@ - - GX_OBJS := gx_comm.o gx_main.o gx_utils.o gx_local.o - GX_HDRS := $(wildcard *.h) -+AR="ar" - - .PHONY: all - all: gx_all.a -@@ -16,5 +17,5 @@ - # $(CC) -c $(CFLAGS) -o $@ $< - - gx_all.a: $(GX_OBJS) Makefile $(GX_HDRS) -- ar cr $@ $(GX_OBJS) # problem with ld using -m32 -+ $(AR) cr $@ $(GX_OBJS) # problem with ld using -m32 - -diff -ur xen-4.3.0.orig/tools/firmware/rombios/Makefile xen-4.3.0/tools/firmware/rombios/Makefile ---- tools/firmware/rombios/Makefile 2013-07-09 18:46:56.000000000 +0800 -+++ tools/firmware/rombios/Makefile 2013-07-23 21:57:21.258085143 +0800 -@@ -1,5 +1,6 @@ - XEN_ROOT = $(CURDIR)/../../.. - include $(XEN_ROOT)/tools/Rules.mk -+CC="gcc" - - SUBDIRS := 32bit - -@@ -16,7 +17,7 @@ - rm -f $(DEPS) - - BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c -- gcc -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c -+ $(CC) -DBX_SMP_PROCESSORS=1 -E -P $< > _rombios_.c - bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c - sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s - as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt -@@ -26,6 +27,6 @@ - rm -f _rombios_.s - - biossums: biossums.c -- gcc -o biossums biossums.c -+ $(CC) -o biossums biossums.c - - -include $(DEPS) -diff -ur xen-4.3.0.orig/tools/firmware/vgabios/Makefile xen-4.3.0/tools/firmware/vgabios/Makefile ---- tools/firmware/vgabios/Makefile 2013-07-09 18:46:56.000000000 +0800 -+++ tools/firmware/vgabios/Makefile 2013-07-23 22:42:39.041261388 +0800 -@@ -37,7 +37,7 @@ - tar czvf ../$(RELEASE).tgz --exclude CVS -C .. $(RELEASE)/ - - vgabios.bin: biossums vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h -- $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DVBE $(VGABIOS_DATE) > _vgabios_.c -+ $(CC) -E -P vgabios.c $(VGABIOS_VERS) -DVBE $(VGABIOS_DATE) > _vgabios_.c - $(BCC) -o vgabios.s -C-c -D__i86__ -S -0 _vgabios_.c - sed -e 's/^\.text//' -e 's/^\.data//' vgabios.s > _vgabios_.s - $(AS86) _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt -@@ -47,7 +47,7 @@ - ls -l VGABIOS-lgpl-latest.bin - - vgabios.debug.bin: biossums vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h -- $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DVBE -DDEBUG $(VGABIOS_DATE) > _vgabios-debug_.c -+ $(CC) -E -P vgabios.c $(VGABIOS_VERS) -DVBE -DDEBUG $(VGABIOS_DATE) > _vgabios-debug_.c - $(BCC) -o vgabios-debug.s -C-c -D__i86__ -S -0 _vgabios-debug_.c - sed -e 's/^\.text//' -e 's/^\.data//' vgabios-debug.s > _vgabios-debug_.s - $(AS86) _vgabios-debug_.s -b vgabios.debug.bin -u -w- -g -0 -j -O -l vgabios.debug.txt -@@ -57,7 +57,7 @@ - ls -l VGABIOS-lgpl-latest.debug.bin - - vgabios-cirrus.bin: biossums vgabios.c vgabios.h vgafonts.h vgatables.h clext.c -- $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS -DPCIBIOS $(VGABIOS_DATE) > _vgabios-cirrus_.c -+ $(CC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS -DPCIBIOS $(VGABIOS_DATE) > _vgabios-cirrus_.c - $(BCC) -o vgabios-cirrus.s -C-c -D__i86__ -S -0 _vgabios-cirrus_.c - sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus.s > _vgabios-cirrus_.s - $(AS86) _vgabios-cirrus_.s -b vgabios-cirrus.bin -u -w- -g -0 -j -O -l vgabios-cirrus.txt -@@ -67,7 +67,7 @@ - ls -l VGABIOS-lgpl-latest.cirrus.bin - - vgabios-cirrus.debug.bin: biossums vgabios.c vgabios.h vgafonts.h vgatables.h clext.c -- $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS -DCIRRUS_DEBUG -DPCIBIOS $(VGABIOS_DATE) > _vgabios-cirrus-debug_.c -+ $(CC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS -DCIRRUS_DEBUG -DPCIBIOS $(VGABIOS_DATE) > _vgabios-cirrus-debug_.c - $(BCC) -o vgabios-cirrus-debug.s -C-c -D__i86__ -S -0 _vgabios-cirrus-debug_.c - sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus-debug.s > _vgabios-cirrus-debug_.s - $(AS86) _vgabios-cirrus-debug_.s -b vgabios-cirrus.debug.bin -u -w- -g -0 -j -O -l vgabios-cirrus.debug.txt diff --git a/app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch b/app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch deleted file mode 100644 index fc0124c..0000000 --- a/app-emulation/xen-tools/files/xen-tools-4.4-api-fix.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/tools/configure b/tools/configure -index afc3000..6187468 100755 ---- a/tools/configure -+++ b/tools/configure -@@ -4615,7 +4615,7 @@ if test x"${PERL}" = x"no" - then - as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 - fi --if test "x$xapi" = "xy"; then : -+if test "x$xenapi" = "xy"; then : - - # Extract the first word of "curl-config", so it can be a program name with args. - set dummy curl-config; ac_word=$2 -diff --git a/tools/configure.ac b/tools/configure.ac -index 0754f0e..cc884f7 100644 ---- a/tools/configure.ac -+++ b/tools/configure.ac -@@ -150,7 +150,7 @@ AC_PROG_INSTALL - AC_PATH_PROG([BISON], [bison]) - AC_PATH_PROG([FLEX], [flex]) - AX_PATH_PROG_OR_FAIL([PERL], [perl]) --AS_IF([test "x$xapi" = "xy"], [ -+AS_IF([test "x$xenapi" = "xy"], [ - AX_PATH_PROG_OR_FAIL([CURL], [curl-config]) - AX_PATH_PROG_OR_FAIL([XML], [xml2-config]) - ]) -diff --git a/tools/libxen/Makefile b/tools/libxen/Makefile -index b66f0bc..94b854b 100644 ---- a/tools/libxen/Makefile -+++ b/tools/libxen/Makefile -@@ -22,12 +22,15 @@ MAJOR = 1.0 - MINOR = 0 - - CFLAGS += -Iinclude \ -- $(shell $(XML2_CONFIG) --cflags) \ -- $(shell $(CURL_CONFIG) --cflags) \ - -fPIC - -+ifeq ($(LIBXENAPI_BINDINGS),y) -+CFLAGS += $(shell $(XML2_CONFIG) --cflags) \ -+ $(shell $(CURL_CONFIG) --cflags) -+ - LDFLAGS += $(shell $(XML2_CONFIG) --libs) \ - $(shell $(CURL_CONFIG) --libs) -+endif - - LIBXENAPI_HDRS = $(wildcard include/xen/api/*.h) include/xen/api/xen_all.h - LIBXENAPI_OBJS = $(patsubst %.c, %.o, $(wildcard src/*.c)) diff --git a/app-emulation/xen-tools/files/xen-tools-9999-qemu.patch b/app-emulation/xen-tools/files/xen-tools-9999-qemu.patch deleted file mode 100644 index 2059d6c..0000000 --- a/app-emulation/xen-tools/files/xen-tools-9999-qemu.patch +++ /dev/null @@ -1,56 +0,0 @@ -diff -uNr a/tools/Makefile b/tools/Makefile ---- a/tools/Makefile 2012-03-10 07:19:16.000000000 +0100 -+++ b/tools/Makefile 2012-03-12 17:19:04.000000000 +0100 -@@ -118,11 +118,17 @@ - $(GIT) reset --hard $(QEMU_TAG); \ - fi - --subdir-all-qemu-xen-traditional-dir subdir-install-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find -+subdir-all-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find - set -e; \ - $(buildmakevars2shellvars); \ - cd qemu-xen-traditional-dir; \ - $(QEMU_ROOT)/xen-setup $(IOEMU_CONFIGURE_CROSS); \ -+ $(MAKE) -+ -+subdir-install-qemu-xen-traditional-dir: qemu-xen-traditional-dir-find -+ set -e; \ -+ $(buildmakevars2shellvars); \ -+ cd qemu-xen-traditional-dir; \ - $(MAKE) install - - subdir-clean-qemu-xen-traditional-dir: -@@ -140,14 +146,14 @@ - $(GIT) reset --hard $(QEMU_UPSTREAM_REVISION); \ - fi - --subdir-all-qemu-xen-dir subdir-install-qemu-xen-dir: qemu-xen-dir-find -+subdir-all-qemu-xen-dir: qemu-xen-dir-find - if test -d $(QEMU_UPSTREAM_URL) ; then \ - source=$(QEMU_UPSTREAM_URL); \ - else \ - source=.; \ - fi; \ - cd qemu-xen-dir; \ -- $$source/configure --enable-xen --target-list=i386-softmmu \ -+ CFLAGS="" $$source/configure --enable-xen --target-list=i386-softmmu \ - --source-path=$$source \ - --extra-cflags="-I$(XEN_ROOT)/tools/include \ - -I$(XEN_ROOT)/tools/libxc \ -@@ -156,8 +162,16 @@ - -L$(XEN_ROOT)/tools/xenstore" \ - --bindir=$(LIBEXEC) \ - --disable-kvm \ -+ --disable-docs \ -+ --datadir=$(DESTDIR)/usr/share/xen/qemu-upstream \ -+ --sysconfdir=$(DESTDIR)/etc/xen/qemu-upstream \ - --python=$(PYTHON) \ - $(IOEMU_CONFIGURE_CROSS); \ -+ sed -i 's#$$(sysconfdir)/qemu#$$(sysconfdir)#' Makefile; \ -+ $(MAKE) -+ -+subdir-install-qemu-xen-dir: qemu-xen-dir-find -+ cd qemu-xen-dir; \ - $(MAKE) install - - subdir-clean-qemu-xen-dir: diff --git a/app-emulation/xen-tools/files/xencommons.initd b/app-emulation/xen-tools/files/xencommons.initd index 5ece118..d1fbb18 100644 --- a/app-emulation/xen-tools/files/xencommons.initd +++ b/app-emulation/xen-tools/files/xencommons.initd @@ -1,7 +1,6 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xencommons.initd,v 1.1 2013/12/06 23:34:11 idella4 Exp $ depend() { before xenstored diff --git a/app-emulation/xen-tools/files/xenconsoled.initd b/app-emulation/xen-tools/files/xenconsoled.initd index e2d245f..d31737a 100644 --- a/app-emulation/xen-tools/files/xenconsoled.initd +++ b/app-emulation/xen-tools/files/xenconsoled.initd @@ -1,7 +1,6 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenconsoled.initd,v 1.6 2014/02/13 07:59:09 dlan Exp $ depend() { need xenstored diff --git a/app-emulation/xen-tools/files/xend.initd-r2 b/app-emulation/xen-tools/files/xend.initd-r2 deleted file mode 100644 index 837decc..0000000 --- a/app-emulation/xen-tools/files/xend.initd-r2 +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xend.initd-r2,v 1.5 2014/01/02 04:58:53 idella4 Exp $ - -extra_commands="status" - -depend() { - need net xenconsoled xenstored - before xendomains sshd -} - -await_daemons_up() { - for ((i=0; i<5; i++)); do - sleep 1 - /usr/sbin/xend status && return 0 - done - return 1 -} - -is_privileged_domain() { - grep -qsE '^control_d$' /proc/xen/capabilities - return $? -} - -start() { - if is_privileged_domain ; then - ebegin "Starting Xen control daemon" - /usr/sbin/xend start - /usr/sbin/xend status || await_daemons_up - eend $? - else - eerror "Can't start xend - this is not a privileged domain." - return 1 - fi -} - -stop() { - if [ "$(xm list | wc -l)" -gt 2 ]; then - ebegin " Stopping all domains" - /usr/sbin/xl shutdown -a -w >/dev/null - eend $? - fi - - ebegin "Stopping Xen control daemon" - /usr/sbin/xend stop - eend $? -} - -status() { - is_privileged_domain && /usr/sbin/xend status -} diff --git a/app-emulation/xen-tools/files/xendomains.initd-r2 b/app-emulation/xen-tools/files/xendomains.initd-r2 index 103384c..c1a7081 100644 --- a/app-emulation/xen-tools/files/xendomains.initd-r2 +++ b/app-emulation/xen-tools/files/xendomains.initd-r2 @@ -1,7 +1,6 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains.initd-r2,v 1.8 2013/07/27 06:11:03 idella4 Exp $ extra_commands="status" @@ -77,7 +76,7 @@ stop() { # Stop all domains with config files in AUTODIR. DOMAINS="$(ls "${AUTODIR:=/etc/xen/auto}/"* 2>/dev/null | sort -r)" - if [[ "$PARALLEL_SHUTDOWN" == "yes" ]] ; then + if [ "$PARALLEL_SHUTDOWN" = "yes" ] ; then for dom in $DOMAINS ; do name=$(get_domname ${dom}) if is_running ${name} ; then diff --git a/app-emulation/xen-tools/files/xenqemudev.initd b/app-emulation/xen-tools/files/xenqemudev.initd index 6f7066e..90da3ac 100644 --- a/app-emulation/xen-tools/files/xenqemudev.initd +++ b/app-emulation/xen-tools/files/xenqemudev.initd @@ -1,7 +1,6 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenqemudev.initd,v 1.2 2013/12/07 06:49:41 idella4 Exp $ depend() { need xencommons xenstored xenconsoled @@ -16,7 +15,11 @@ xen_setvars() { . /etc/xen/scripts/hotplugpath.sh XENQEMUDEV_PIDFILE=/run/xenqemudev.pid + + # xen-4.5 change the path XEN_QEMU="${LIBEXEC}/qemu-system-i386" + [ -e ${XEN_QEMU} ] && return + XEN_QEMU="${LIBEXEC_BIN}/qemu-system-i386" } xen_qemu_start() { diff --git a/app-emulation/xen-tools/files/xenstored.initd b/app-emulation/xen-tools/files/xenstored.initd index 09009ea..d92616b 100755..100644 --- a/app-emulation/xen-tools/files/xenstored.initd +++ b/app-emulation/xen-tools/files/xenstored.initd @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 @@ -22,7 +22,7 @@ start() { --pidfile /run/xenstored.pid \ -- --pid-file=/run/xenstored.pid \ $XENSTORED_OPTS - until xenstore-exists \ || ((15 < ++i)) + until xenstore-exists / || $((15 < ++i)) do echo -n . sleep 1 |