1 |
commit: 84bf2b9c833cde1fcaa35aa8b59fd86a67d2659b |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 28 16:37:03 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 28 16:50:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84bf2b9c |
7 |
|
8 |
app-emulation/xen: drop old vulnerable versions |
9 |
|
10 |
Gentoo-Bug: 588780 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
app-emulation/xen/Manifest | 11 -- |
15 |
.../xen/files/xen-4-fix_dotconfig-gcc.patch | 37 ---- |
16 |
app-emulation/xen/files/xen-4.2-efi.patch | 33 ---- |
17 |
app-emulation/xen/files/xen-4.5-efi.patch | 37 ---- |
18 |
app-emulation/xen/xen-4.6.0-r10.ebuild | 197 -------------------- |
19 |
app-emulation/xen/xen-4.6.0-r9.ebuild | 197 -------------------- |
20 |
app-emulation/xen/xen-4.6.1-r1.ebuild | 199 -------------------- |
21 |
app-emulation/xen/xen-4.6.1-r2.ebuild | 199 -------------------- |
22 |
app-emulation/xen/xen-4.6.1-r3.ebuild | 193 -------------------- |
23 |
app-emulation/xen/xen-4.6.1.ebuild | 200 --------------------- |
24 |
app-emulation/xen/xen-4.6.3.ebuild | 193 -------------------- |
25 |
app-emulation/xen/xen-4.7.0.ebuild | 193 -------------------- |
26 |
12 files changed, 1689 deletions(-) |
27 |
|
28 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
29 |
index 905cd14..93dc0da 100644 |
30 |
--- a/app-emulation/xen/Manifest |
31 |
+++ b/app-emulation/xen/Manifest |
32 |
@@ -1,14 +1,3 @@ |
33 |
-DIST xen-4.6.0-upstream-patches-0.tar.xz 19280 SHA256 8ef2d139f86cb52d2208a17c974e5a85356183ee359ab4b91882067548806e0c SHA512 9fde8d9def1d75e50c10069af7f9fea4b5b6992b7089eb554e1e2a4c78dd080f2977128d0dd541eeb735b951e7d6614a07101f7703457e7743ac6b3be962cdfe WHIRLPOOL 861c7f150811912422f6f5eb77437744d1456740a43bef3dfd88a2e6d6836c0e8460b788ccd4f14a7144652d65a825c08aa984ec4240b2b1ac6d09237695d19d |
34 |
-DIST xen-4.6.0.tar.gz 19694350 SHA256 6fa1c2431df55aa5950d248e6093b8c8c0f11c357a0adbd348a2186478e80909 SHA512 b4b02f306ffea360f539dd8c231b2f58c00c3638fdb665cb659c7291b475b40f1075bc59d49a6144767729e57b8bc40a1cfd9030d61de2b8fa4ac97d43655c2b WHIRLPOOL d3f01183440ca1875b6e850bd116db0c382383433e50c0902d3268e9e36b39d184fc65e925bdb5363ef4ca7a232fee15b4749c89baf789137b8a8248565c75a8 |
35 |
-DIST xen-4.6.1-upstream-patches-0.tar.xz 92472 SHA256 7b32cbd57571d838ec606c5bd2b98a51e14a6bcf44d2d61007c274fa3b6b5eb6 SHA512 2f8e9273601c70eac88fb9d94bcb607bc5ea76514f9cdee0e96309b9a9d78db881d94c57a518ad5cef398fa57274b9940ba1553d0984bb5504ca27b6b62a6003 WHIRLPOOL 9b2592f33587fc85b091fbfb357d4ab4914f39286f3207a0d8aebf26259f0ebd1eb7d6bede7da9a202427cf9c7d97c11c4c84c5f90584948b1f3c32fefac5164 |
36 |
-DIST xen-4.6.1.tar.gz 19693042 SHA256 44cc2fccba1e147ef4c8da0584ce0f24189c8743de0e3e9a9226da88ddb5f589 SHA512 f01a0b7874abf8b3a81432428d7ba2d5aceb9d75ae20310f8ef49a3a0df927720a51d49090f74fda7f374c779e121ad26da6966a6f2623ed1a7743b4c080427c WHIRLPOOL b4eec12118d602d1b41edee32ed7c0c61646974060bc44e3eedaf78f7c3015c151998f72573fd2bab1992263dd98f09992772334bae7826048d187de7ed022e5 |
37 |
DIST xen-4.6.3.tar.gz 19707041 SHA256 02badfce9a037bd1bd4a94210c1f6b85467746216c71795805102b514bcf1fc4 SHA512 187a860b40c05139f22b8498a5fae1db173c3110d957147af29a56cb83b7111c9dc4946d65f9dffc847001fc01c5e9bf51886eaa1194bb9cfd0b6dbcd43a2c5c WHIRLPOOL f80fa73727218567b8d6c8d6bab9dfd577c4bb84ac737b084e4396128e8c4aa79776a277f73c283d5b12f17764b183b67fbf8596e240042dd0709f28cbab777e |
38 |
DIST xen-4.7.0.tar.gz 20702550 SHA256 be5876144d49729572ae06142e0bb93f1c1f2695578141eff2931995add24623 SHA512 2c52c8ef145dfab7d069e79318d5d631e1106a0ddc79d88b3bacf36c7f15cea67dccb704a245e785d2a1e42c6fb6c0ad74832f564aaeec025ad7b864031f0921 WHIRLPOOL 9725ac9fe94e78aab47b0534b5ee1a190106a773bf7d6204fed736abe7069b71937717b6680833736bd02a3a3a43f2eb2162fe7c0d992ddd47d12158b5d9835f |
39 |
-DIST xen-security-patches-0.tar.xz 5944 SHA256 c0456793064185f0781668264a09a2412a25e2ff8c4ce0d332204e37b94d7e96 SHA512 de812e66563e608548b220aa00c8fd71973af748a00cea79959f46a5b6893a38248d2ea455026af43f47e3f5e566d08b5a6f3d18f22e940d75d2a2ca76cec3d3 WHIRLPOOL 3e18d32798bdfe584ee8d102963090b569ec3660fd5723d8c608091e5c7d935c1edced5e258d92bf51fe06975455a3ae33dfedd01702c6076aedf97ea61f2d1b |
40 |
-DIST xen-security-patches-00.tar.gz 4280 SHA256 1cb3d3d4af15202ce8ea5d6a5982b8c9a4623e565c732c64f5ec949cf55a11c0 SHA512 06e8fa8bda712564a18712640087a920545da3dc6bd6d94762f7f7fee33afb807f2d517e8d6177a683baf8ec04832acf57557f8125973f00e7de6109b3d5131b WHIRLPOOL 8b1b7caa37b73f442f440f599d9ae8d1562c6361c693b4d18540dbe7de4fa8046e3139f19dfdff35a316466ed7f017a3a99d430eb28e0716a0c6b52d8aec5b0b |
41 |
-DIST xen-security-patches-01.tar.gz 4683 SHA256 ca1e565180aff5485f217735faa24bea2f7fc821d5c5a506d1854291681fdc28 SHA512 538d5df0c3b5b5277613af3a3fc11aa46a16cfdfdc88488da5020e3ad38580b8cdb12778e251c4b41c6b5cfe37d8266a599b8b15b4032491c0689e442b388847 WHIRLPOOL a22492288fa04919c60d9e7e15181bc7eb05f457b0aad0e8ece172443fd4208d4bdeb692ef713b99aa83eb030caf3dfcf1236b5d8de13e152b93096aa2e869b8 |
42 |
-DIST xen-security-patches-10.tar.gz 13289 SHA256 8937b3c0045f83ac0685ce129c99be8ab035f2ed92605d0c1100d4f898d978a3 SHA512 698963479149bd63695b3ffd7d108b798ce6c694560f2908b639f3a1b00d37d4994fbc1e0e21aaba1f3a113653d5b37c28679bc1d97d75a805844345c9c070c0 WHIRLPOOL 8c2433c35499819906abf5cb8898dac23cbf7523cc4b4e9291e696eb2871971a7300d3f54865ac32738a1b67c1de18e227085f14c5717b60ec951d5038fa0493 |
43 |
-DIST xen-security-patches-12.tar.xz 5172 SHA256 1d3c238cbefc243a17770722895f6bc725e807641a93908d3e4002b26e4f2a8b SHA512 06f80b12c30d18f84e880ffb529fe2b90e7ade1cb3479d2fbc21447cf2c5d50c7ba3a14ddd0b31f63e87af520bf80812158e4097e657f8316bdb5f8b443c9828 WHIRLPOOL 49b776cf3d1d05758dfe9ce9f5f5cb0573eaec5f1273648eedb04b408587bb3cfe8838ea551a29423cc30622c7426e852740138fa2795898f25c22de148f91c9 |
44 |
DIST xen-security-patches-13.tar.xz 3192 SHA256 2721580673d4d4f6f8997961ca6f08d8f818279916d37e5e996af0b4ea008fc7 SHA512 4fd15ca8b611d67b4868f027f9833403b756b87e2f1142a7a0ca41b4fee6143fe57b62ba5360e99c9295fdd0a356048af545c19ea96e075da5aba97845d4a3af WHIRLPOOL 4fd99edcf9afc7937da48131c4d4a82eadf911fd62778dbdf937d7fb914e20d16b2765f538179d9d8ecca5d042ee39736fd1d8cbf01d7fc3e753032472e6bc65 |
45 |
-DIST xen-security-patches-9.tar.gz 9793 SHA256 2167d7bc2a631cf13d5b49c9577dbc8d128517e8ecbf90ef85c38f52ab3187aa SHA512 42f4997f35cc06333584a9a3c65366493094b60a6c67928b6165f3fb7d35d3a8f9dc0c3eadd4522de0d99bcc8511afba1d5e543396399b37983eb547abedca44 WHIRLPOOL 8abb68b4ac10fbc2b590c8a29cd2474d5392d3958542dad7f21ba4ad51c7541bb1686ed2629323e214c3e72b0de7212f25a4681f653d4179404c9f4c53e3d83a |
46 |
-DIST xen-upstream-patches-0.tar.gz 2297 SHA256 bf21272ad029391d30bf31896efcadc75267538f6c7de5d239453f19659d58ee SHA512 3f5d60aaebd181bddab4dd02e0064de2f75672f44a687a7331fa40e81d56763fea84504081a449d11403b21ad0ba2dac075f0b1796809ef8d16e244f6be99e3d WHIRLPOOL 4ebe79c8f2ea1c45e88e59941e477ed5639dbca3fe95c9a67e07afb0f4b6fb8b7fea8e58422d7c8f906299e4f37c14b4db15200997e5a92b647df98fa93e10c7 |
47 |
|
48 |
diff --git a/app-emulation/xen/files/xen-4-fix_dotconfig-gcc.patch b/app-emulation/xen/files/xen-4-fix_dotconfig-gcc.patch |
49 |
deleted file mode 100644 |
50 |
index c0dbd20..0000000 |
51 |
--- a/app-emulation/xen/files/xen-4-fix_dotconfig-gcc.patch |
52 |
+++ /dev/null |
53 |
@@ -1,37 +0,0 @@ |
54 |
-# Fix gcc-4.6 |
55 |
-diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk |
56 |
---- extras/mini-os/minios.mk 2012-09-17 18:21:17.000000000 +0800 |
57 |
-+++ extras/mini-os/minios.mk 2012-12-05 14:01:10.653260260 +0800 |
58 |
-@@ -6,7 +6,7 @@ |
59 |
- |
60 |
- # Define some default flags. |
61 |
- # NB. '-Wcast-qual' is nasty, so I omitted it. |
62 |
--DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls |
63 |
-+DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls |
64 |
- DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) |
65 |
- DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline) |
66 |
- DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline |
67 |
-diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile |
68 |
---- tools/libxc/Makefile 2012-09-17 18:21:18.000000000 +0800 |
69 |
-+++ tools/libxc/Makefile 2012-12-05 14:01:10.653260260 +0800 |
70 |
-@@ -73,7 +73,7 @@ |
71 |
- |
72 |
- -include $(XEN_TARGET_ARCH)/Makefile |
73 |
- |
74 |
--CFLAGS += -Werror -Wmissing-prototypes |
75 |
-+CFLAGS += -Wmissing-prototypes |
76 |
- CFLAGS += -I. $(CFLAGS_xeninclude) |
77 |
- |
78 |
- # Needed for posix_fadvise64() in xc_linux.c |
79 |
-# Drop .config |
80 |
-diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk |
81 |
---- Config.mk 2012-09-17 18:23:12.000000000 +0800 |
82 |
-+++ Config.mk 2012-12-05 14:01:10.641260261 +0800 |
83 |
-@@ -7,7 +7,6 @@ |
84 |
- # fallback for older make |
85 |
- realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))"))) |
86 |
- |
87 |
---include $(XEN_ROOT)/.config |
88 |
- |
89 |
- # A debug build of Xen and tools? |
90 |
- debug ?= n |
91 |
|
92 |
diff --git a/app-emulation/xen/files/xen-4.2-efi.patch b/app-emulation/xen/files/xen-4.2-efi.patch |
93 |
deleted file mode 100644 |
94 |
index 6e38aaa..0000000 |
95 |
--- a/app-emulation/xen/files/xen-4.2-efi.patch |
96 |
+++ /dev/null |
97 |
@@ -1,33 +0,0 @@ |
98 |
-diff -ur xen-4.2.0.orig/xen/arch/x86/Makefile xen-4.2.0/xen/arch/x86/Makefile |
99 |
---- xen/arch/x86/Makefile 2012-09-17 18:21:19.000000000 +0800 |
100 |
-+++ xen/arch/x86/Makefile 2013-02-23 20:37:30.679918815 +0800 |
101 |
-@@ -112,7 +112,7 @@ |
102 |
- $(@D)/.$(@F).1.o -o $@ |
103 |
- rm -f $(@D)/.$(@F).[0-9]* |
104 |
- |
105 |
--EFI_LDFLAGS = $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 |
106 |
-+EFI_LDFLAGS = -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 |
107 |
- EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug |
108 |
- EFI_LDFLAGS += --section-alignment=0x200000 --file-alignment=0x20 |
109 |
- EFI_LDFLAGS += --major-image-version=$(XEN_VERSION) |
110 |
---- xen/Makefile 2013-03-07 14:34:01.819453278 +0000 |
111 |
-+++ xen/Makefile 2013-03-07 15:56:44.753044655 +0000 |
112 |
-@@ -31,9 +31,15 @@ |
113 |
- _install: $(TARGET).gz |
114 |
- [ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot |
115 |
- $(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz |
116 |
-- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz |
117 |
-- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz |
118 |
-- ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz |
119 |
-+ if [ 'x$(EFI_VENDOR)' == 'x' ]; then \ |
120 |
-+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz; \ |
121 |
-+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz; \ |
122 |
-+ ln -f -s $(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz; \ |
123 |
-+ else \ |
124 |
-+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).$(XEN_SUBVERSION).gz; \ |
125 |
-+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_VERSION).gz; \ |
126 |
-+ cp $(DESTDIR)/boot/$(notdir $(TARGET))-$(XEN_FULLVERSION).gz $(DESTDIR)/boot/$(notdir $(TARGET)).gz; \ |
127 |
-+ fi; \ |
128 |
- $(INSTALL_DATA) $(TARGET)-syms $(DESTDIR)/boot/$(notdir $(TARGET))-syms-$(XEN_FULLVERSION) |
129 |
- if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \ |
130 |
- [ -d $(DESTDIR)$(EFI_DIR) ] || $(INSTALL_DIR) $(DESTDIR)$(EFI_DIR); \ |
131 |
|
132 |
diff --git a/app-emulation/xen/files/xen-4.5-efi.patch b/app-emulation/xen/files/xen-4.5-efi.patch |
133 |
deleted file mode 100644 |
134 |
index 76ff44a..0000000 |
135 |
--- a/app-emulation/xen/files/xen-4.5-efi.patch |
136 |
+++ /dev/null |
137 |
@@ -1,37 +0,0 @@ |
138 |
-diff --git a/xen/Makefile b/xen/Makefile |
139 |
-index 39839a3..d2603f0 100644 |
140 |
---- a/xen/Makefile |
141 |
-+++ b/xen/Makefile |
142 |
-@@ -38,9 +38,15 @@ _install: Z=$(CONFIG_XEN_INSTALL_SUFFIX) |
143 |
- _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX) |
144 |
- [ -d $(D)/boot ] || $(INSTALL_DIR) $(D)/boot |
145 |
- $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_FULLVERSION)$(Z) |
146 |
-- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z) |
147 |
-- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z) |
148 |
-- ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z) |
149 |
-+ if [ 'x$(EFI_VENDOR)' == 'x' ]; then \ |
150 |
-+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z); \ |
151 |
-+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z);\ |
152 |
-+ ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z); \ |
153 |
-+ else \ |
154 |
-+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z); \ |
155 |
-+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z);\ |
156 |
-+ $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z); \ |
157 |
-+ fi; \ |
158 |
- $(INSTALL_DATA) $(TARGET)-syms $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION) |
159 |
- if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \ |
160 |
- [ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \ |
161 |
-diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile |
162 |
-index d502bdf..a2121b0 100644 |
163 |
---- a/xen/arch/x86/Makefile |
164 |
-+++ b/xen/arch/x86/Makefile |
165 |
-@@ -112,7 +112,7 @@ $(TARGET)-syms: prelink.o xen.lds $(BASEDIR)/common/symbols-dummy.o |
166 |
- $(@D)/.$(@F).1.o -o $@ |
167 |
- rm -f $(@D)/.$(@F).[0-9]* |
168 |
- |
169 |
--EFI_LDFLAGS = $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 |
170 |
-+EFI_LDFLAGS = -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 |
171 |
- EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug |
172 |
- EFI_LDFLAGS += --section-alignment=0x200000 --file-alignment=0x20 |
173 |
- EFI_LDFLAGS += --major-image-version=$(XEN_VERSION) |
174 |
- |
175 |
|
176 |
diff --git a/app-emulation/xen/xen-4.6.0-r10.ebuild b/app-emulation/xen/xen-4.6.0-r10.ebuild |
177 |
deleted file mode 100644 |
178 |
index 9402472..0000000 |
179 |
--- a/app-emulation/xen/xen-4.6.0-r10.ebuild |
180 |
+++ /dev/null |
181 |
@@ -1,197 +0,0 @@ |
182 |
-# Copyright 1999-2016 Gentoo Foundation |
183 |
-# Distributed under the terms of the GNU General Public License v2 |
184 |
-# $Id$ |
185 |
- |
186 |
-EAPI=5 |
187 |
- |
188 |
-PYTHON_COMPAT=( python2_7 ) |
189 |
- |
190 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
191 |
- |
192 |
-MY_PV=${PV/_/-} |
193 |
-MY_P=${PN}-${PV/_/-} |
194 |
- |
195 |
-if [[ $PV == *9999 ]]; then |
196 |
- inherit git-r3 |
197 |
- KEYWORDS="" |
198 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
199 |
- SRC_URI="" |
200 |
-else |
201 |
- KEYWORDS="~amd64 ~arm -x86" |
202 |
- UPSTREAM_VER=0 |
203 |
- SECURITY_VER=0 |
204 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
205 |
- # first instance of UPS_VER (usptream ver) |
206 |
- UPS_VER=0 |
207 |
- SEC_VER=10 |
208 |
- GENTOO_VER= |
209 |
- |
210 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
211 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
212 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
213 |
- [[ -n ${SECURITY_VER} ]] && \ |
214 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
215 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SEC_VER}.tar.gz" |
216 |
- [[ -n ${GENTOO_VER} ]] && \ |
217 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
218 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
219 |
- ${UPSTREAM_PATCHSET_URI} |
220 |
- ${SECURITY_PATCHSET_URI} |
221 |
- ${GENTOO_PATCHSET_URI}" |
222 |
-fi |
223 |
- |
224 |
-DESCRIPTION="The Xen virtual machine monitor" |
225 |
-HOMEPAGE="http://xen.org/" |
226 |
-LICENSE="GPL-2" |
227 |
-SLOT="0" |
228 |
-IUSE="custom-cflags debug efi flask" |
229 |
- |
230 |
-DEPEND="${PYTHON_DEPS} |
231 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
232 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
233 |
-RDEPEND="" |
234 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
235 |
- |
236 |
-# no tests are available for the hypervisor |
237 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
238 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
239 |
-RESTRICT="test splitdebug strip" |
240 |
- |
241 |
-# Approved by QA team in bug #144032 |
242 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
243 |
- |
244 |
-REQUIRED_USE="arm? ( debug )" |
245 |
- |
246 |
-S="${WORKDIR}/${MY_P}" |
247 |
- |
248 |
-pkg_setup() { |
249 |
- python-any-r1_pkg_setup |
250 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
251 |
- if use amd64; then |
252 |
- export XEN_TARGET_ARCH="x86_64" |
253 |
- elif use arm; then |
254 |
- export XEN_TARGET_ARCH="arm32" |
255 |
- elif use arm64; then |
256 |
- export XEN_TARGET_ARCH="arm64" |
257 |
- else |
258 |
- die "Unsupported architecture!" |
259 |
- fi |
260 |
- fi |
261 |
- |
262 |
- if use flask ; then |
263 |
- export "XSM_ENABLE=y" |
264 |
- export "FLASK_ENABLE=y" |
265 |
- fi |
266 |
-} |
267 |
- |
268 |
-src_prepare() { |
269 |
- # Upstream's patchset |
270 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
271 |
- EPATCH_SUFFIX="patch" \ |
272 |
- EPATCH_FORCE="yes" \ |
273 |
- EPATCH_OPTS="-p1" \ |
274 |
- epatch "${WORKDIR}"/patches-upstream \ |
275 |
- "${WORKDIR}"/libexec.patch |
276 |
- fi |
277 |
- |
278 |
- if [[ -n ${SECURITY_VER} ]]; then |
279 |
- einfo "Try to apply Xen Security patcheset" |
280 |
- # apply main xen patches |
281 |
- # Two parallel systems, both work side by side |
282 |
- # Over time they may concdense into one. This will suffice for now |
283 |
- EPATCH_SUFFIX="patch" |
284 |
- EPATCH_FORCE="yes" |
285 |
- for i in ${XEN_SECURITY_MAIN}; do |
286 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
287 |
- done |
288 |
- |
289 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
290 |
- epatch $i |
291 |
- done |
292 |
- fi |
293 |
- |
294 |
- # Gentoo's patchset |
295 |
- if [[ -n ${GENTOO_VER} ]]; then |
296 |
- EPATCH_SUFFIX="patch" \ |
297 |
- EPATCH_FORCE="yes" \ |
298 |
- epatch "${WORKDIR}"/patches-gentoo |
299 |
- fi |
300 |
- |
301 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
302 |
- |
303 |
- # Drop .config |
304 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
305 |
- |
306 |
- if use efi; then |
307 |
- export EFI_VENDOR="gentoo" |
308 |
- export EFI_MOUNTPOINT="boot" |
309 |
- fi |
310 |
- |
311 |
- # if the user *really* wants to use their own custom-cflags, let them |
312 |
- if use custom-cflags; then |
313 |
- einfo "User wants their own CFLAGS - removing defaults" |
314 |
- # try and remove all the default custom-cflags |
315 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
316 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
317 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
318 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
319 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
320 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
321 |
- -i {} \; || die "failed to re-set custom-cflags" |
322 |
- fi |
323 |
- |
324 |
- # remove -Werror for gcc-4.6's sake |
325 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
326 |
- xargs sed -i 's/ *-Werror */ /' |
327 |
- # not strictly necessary to fix this |
328 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
329 |
- |
330 |
- epatch_user |
331 |
-} |
332 |
- |
333 |
-src_configure() { |
334 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
335 |
- |
336 |
- use debug && myopt="${myopt} debug=y" |
337 |
- |
338 |
- if use custom-cflags; then |
339 |
- filter-flags -fPIE -fstack-protector |
340 |
- replace-flags -O3 -O2 |
341 |
- else |
342 |
- unset CFLAGS |
343 |
- unset LDFLAGS |
344 |
- unset ASFLAGS |
345 |
- fi |
346 |
-} |
347 |
- |
348 |
-src_compile() { |
349 |
- # Send raw LDFLAGS so that --as-needed works |
350 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
351 |
-} |
352 |
- |
353 |
-src_install() { |
354 |
- local myopt |
355 |
- use debug && myopt="${myopt} debug=y" |
356 |
- |
357 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
358 |
- if use efi; then |
359 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
360 |
- fi |
361 |
- |
362 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
363 |
- |
364 |
- # make install likes to throw in some extra EFI bits if it built |
365 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
366 |
-} |
367 |
- |
368 |
-pkg_postinst() { |
369 |
- elog "Official Xen Guide and the unoffical wiki page:" |
370 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
371 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
372 |
- |
373 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
374 |
- |
375 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
376 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
377 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
378 |
-} |
379 |
|
380 |
diff --git a/app-emulation/xen/xen-4.6.0-r9.ebuild b/app-emulation/xen/xen-4.6.0-r9.ebuild |
381 |
deleted file mode 100644 |
382 |
index 04e2f63..0000000 |
383 |
--- a/app-emulation/xen/xen-4.6.0-r9.ebuild |
384 |
+++ /dev/null |
385 |
@@ -1,197 +0,0 @@ |
386 |
-# Copyright 1999-2016 Gentoo Foundation |
387 |
-# Distributed under the terms of the GNU General Public License v2 |
388 |
-# $Id$ |
389 |
- |
390 |
-EAPI=5 |
391 |
- |
392 |
-PYTHON_COMPAT=( python2_7 ) |
393 |
- |
394 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
395 |
- |
396 |
-MY_PV=${PV/_/-} |
397 |
-MY_P=${PN}-${PV/_/-} |
398 |
- |
399 |
-if [[ $PV == *9999 ]]; then |
400 |
- inherit git-r3 |
401 |
- KEYWORDS="" |
402 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
403 |
- SRC_URI="" |
404 |
-else |
405 |
- KEYWORDS="amd64 ~arm ~arm64 -x86" |
406 |
- UPSTREAM_VER=0 |
407 |
- SECURITY_VER=0 |
408 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
409 |
- # first instance of UPS_VER (usptream ver) |
410 |
- UPS_VER=0 |
411 |
- SEC_VER=9 |
412 |
- GENTOO_VER= |
413 |
- |
414 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
415 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
416 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
417 |
- [[ -n ${SECURITY_VER} ]] && \ |
418 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
419 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SEC_VER}.tar.gz" |
420 |
- [[ -n ${GENTOO_VER} ]] && \ |
421 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
422 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
423 |
- ${UPSTREAM_PATCHSET_URI} |
424 |
- ${SECURITY_PATCHSET_URI} |
425 |
- ${GENTOO_PATCHSET_URI}" |
426 |
-fi |
427 |
- |
428 |
-DESCRIPTION="The Xen virtual machine monitor" |
429 |
-HOMEPAGE="http://xen.org/" |
430 |
-LICENSE="GPL-2" |
431 |
-SLOT="0" |
432 |
-IUSE="custom-cflags debug efi flask" |
433 |
- |
434 |
-DEPEND="${PYTHON_DEPS} |
435 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
436 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
437 |
-RDEPEND="" |
438 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
439 |
- |
440 |
-# no tests are available for the hypervisor |
441 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
442 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
443 |
-RESTRICT="test splitdebug strip" |
444 |
- |
445 |
-# Approved by QA team in bug #144032 |
446 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
447 |
- |
448 |
-REQUIRED_USE="arm? ( debug )" |
449 |
- |
450 |
-S="${WORKDIR}/${MY_P}" |
451 |
- |
452 |
-pkg_setup() { |
453 |
- python-any-r1_pkg_setup |
454 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
455 |
- if use amd64; then |
456 |
- export XEN_TARGET_ARCH="x86_64" |
457 |
- elif use arm; then |
458 |
- export XEN_TARGET_ARCH="arm32" |
459 |
- elif use arm64; then |
460 |
- export XEN_TARGET_ARCH="arm64" |
461 |
- else |
462 |
- die "Unsupported architecture!" |
463 |
- fi |
464 |
- fi |
465 |
- |
466 |
- if use flask ; then |
467 |
- export "XSM_ENABLE=y" |
468 |
- export "FLASK_ENABLE=y" |
469 |
- fi |
470 |
-} |
471 |
- |
472 |
-src_prepare() { |
473 |
- # Upstream's patchset |
474 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
475 |
- EPATCH_SUFFIX="patch" \ |
476 |
- EPATCH_FORCE="yes" \ |
477 |
- EPATCH_OPTS="-p1" \ |
478 |
- epatch "${WORKDIR}"/patches-upstream \ |
479 |
- "${WORKDIR}"/libexec.patch |
480 |
- fi |
481 |
- |
482 |
- if [[ -n ${SECURITY_VER} ]]; then |
483 |
- einfo "Try to apply Xen Security patcheset" |
484 |
- # apply main xen patches |
485 |
- # Two parallel systems, both work side by side |
486 |
- # Over time they may concdense into one. This will suffice for now |
487 |
- EPATCH_SUFFIX="patch" |
488 |
- EPATCH_FORCE="yes" |
489 |
- for i in ${XEN_SECURITY_MAIN}; do |
490 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
491 |
- done |
492 |
- |
493 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
494 |
- epatch $i |
495 |
- done |
496 |
- fi |
497 |
- |
498 |
- # Gentoo's patchset |
499 |
- if [[ -n ${GENTOO_VER} ]]; then |
500 |
- EPATCH_SUFFIX="patch" \ |
501 |
- EPATCH_FORCE="yes" \ |
502 |
- epatch "${WORKDIR}"/patches-gentoo |
503 |
- fi |
504 |
- |
505 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
506 |
- |
507 |
- # Drop .config |
508 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
509 |
- |
510 |
- if use efi; then |
511 |
- export EFI_VENDOR="gentoo" |
512 |
- export EFI_MOUNTPOINT="boot" |
513 |
- fi |
514 |
- |
515 |
- # if the user *really* wants to use their own custom-cflags, let them |
516 |
- if use custom-cflags; then |
517 |
- einfo "User wants their own CFLAGS - removing defaults" |
518 |
- # try and remove all the default custom-cflags |
519 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
520 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
521 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
522 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
523 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
524 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
525 |
- -i {} \; || die "failed to re-set custom-cflags" |
526 |
- fi |
527 |
- |
528 |
- # remove -Werror for gcc-4.6's sake |
529 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
530 |
- xargs sed -i 's/ *-Werror */ /' |
531 |
- # not strictly necessary to fix this |
532 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
533 |
- |
534 |
- epatch_user |
535 |
-} |
536 |
- |
537 |
-src_configure() { |
538 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
539 |
- |
540 |
- use debug && myopt="${myopt} debug=y" |
541 |
- |
542 |
- if use custom-cflags; then |
543 |
- filter-flags -fPIE -fstack-protector |
544 |
- replace-flags -O3 -O2 |
545 |
- else |
546 |
- unset CFLAGS |
547 |
- unset LDFLAGS |
548 |
- unset ASFLAGS |
549 |
- fi |
550 |
-} |
551 |
- |
552 |
-src_compile() { |
553 |
- # Send raw LDFLAGS so that --as-needed works |
554 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
555 |
-} |
556 |
- |
557 |
-src_install() { |
558 |
- local myopt |
559 |
- use debug && myopt="${myopt} debug=y" |
560 |
- |
561 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
562 |
- if use efi; then |
563 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
564 |
- fi |
565 |
- |
566 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
567 |
- |
568 |
- # make install likes to throw in some extra EFI bits if it built |
569 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
570 |
-} |
571 |
- |
572 |
-pkg_postinst() { |
573 |
- elog "Official Xen Guide and the unoffical wiki page:" |
574 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
575 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
576 |
- |
577 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
578 |
- |
579 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
580 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
581 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
582 |
-} |
583 |
|
584 |
diff --git a/app-emulation/xen/xen-4.6.1-r1.ebuild b/app-emulation/xen/xen-4.6.1-r1.ebuild |
585 |
deleted file mode 100644 |
586 |
index ce56970..0000000 |
587 |
--- a/app-emulation/xen/xen-4.6.1-r1.ebuild |
588 |
+++ /dev/null |
589 |
@@ -1,199 +0,0 @@ |
590 |
-# Copyright 1999-2016 Gentoo Foundation |
591 |
-# Distributed under the terms of the GNU General Public License v2 |
592 |
-# $Id$ |
593 |
- |
594 |
-EAPI=5 |
595 |
- |
596 |
-PYTHON_COMPAT=( python2_7 ) |
597 |
- |
598 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
599 |
- |
600 |
-MY_PV=${PV/_/-} |
601 |
-MY_P=${PN}-${PV/_/-} |
602 |
- |
603 |
-if [[ $PV == *9999 ]]; then |
604 |
- inherit git-r3 |
605 |
- KEYWORDS="" |
606 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
607 |
- SRC_URI="" |
608 |
-else |
609 |
- KEYWORDS="~amd64 ~arm -x86" |
610 |
- UPSTREAM_VER= |
611 |
- SECURITY_VER=00 |
612 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
613 |
- # first instance of UPS_VER (usptream ver) |
614 |
- UPS_VER= |
615 |
- SEC_VER= |
616 |
- GENTOO_VER= |
617 |
- |
618 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
619 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
620 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
621 |
- [[ -n ${SECURITY_VER} ]] && \ |
622 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.gz" |
623 |
- [[ -n ${GENTOO_VER} ]] && \ |
624 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
625 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
626 |
- ${UPSTREAM_PATCHSET_URI} |
627 |
- ${SECURITY_PATCHSET_URI} |
628 |
- ${GENTOO_PATCHSET_URI}" |
629 |
-fi |
630 |
- |
631 |
-DESCRIPTION="The Xen virtual machine monitor" |
632 |
-HOMEPAGE="http://xen.org/" |
633 |
-LICENSE="GPL-2" |
634 |
-SLOT="0" |
635 |
-IUSE="custom-cflags debug efi flask" |
636 |
- |
637 |
-DEPEND="${PYTHON_DEPS} |
638 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
639 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
640 |
-RDEPEND="" |
641 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
642 |
- |
643 |
-# no tests are available for the hypervisor |
644 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
645 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
646 |
-RESTRICT="test splitdebug strip" |
647 |
- |
648 |
-# Approved by QA team in bug #144032 |
649 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
650 |
- |
651 |
-REQUIRED_USE="arm? ( debug )" |
652 |
- |
653 |
-S="${WORKDIR}/${MY_P}" |
654 |
- |
655 |
-pkg_setup() { |
656 |
- python-any-r1_pkg_setup |
657 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
658 |
- if use amd64; then |
659 |
- export XEN_TARGET_ARCH="x86_64" |
660 |
- elif use arm; then |
661 |
- export XEN_TARGET_ARCH="arm32" |
662 |
- elif use arm64; then |
663 |
- export XEN_TARGET_ARCH="arm64" |
664 |
- else |
665 |
- die "Unsupported architecture!" |
666 |
- fi |
667 |
- fi |
668 |
- |
669 |
- if use flask ; then |
670 |
- export "XSM_ENABLE=y" |
671 |
- export "FLASK_ENABLE=y" |
672 |
- fi |
673 |
-} |
674 |
- |
675 |
-src_prepare() { |
676 |
- # Upstream's patchset |
677 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
678 |
- EPATCH_SUFFIX="patch" \ |
679 |
- EPATCH_FORCE="yes" \ |
680 |
- EPATCH_OPTS="-p1" \ |
681 |
- epatch "${WORKDIR}"/patches-upstream \ |
682 |
- "${WORKDIR}"/libexec.patch |
683 |
- fi |
684 |
- |
685 |
- if [[ -n ${SECURITY_VER} ]]; then |
686 |
- einfo "Try to apply Xen Security patcheset" |
687 |
- # apply main xen patches |
688 |
- # Two parallel systems, both work side by side |
689 |
- # Over time they may concdense into one. This will suffice for now |
690 |
- EPATCH_SUFFIX="patch" |
691 |
- EPATCH_FORCE="yes" |
692 |
- for i in ${XEN_SECURITY_MAIN}; do |
693 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
694 |
- done |
695 |
- |
696 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
697 |
- epatch $i |
698 |
- done |
699 |
- fi |
700 |
- |
701 |
- # Gentoo's patchset |
702 |
- if [[ -n ${GENTOO_VER} ]]; then |
703 |
- EPATCH_SUFFIX="patch" \ |
704 |
- EPATCH_FORCE="yes" \ |
705 |
- epatch "${WORKDIR}"/patches-gentoo |
706 |
- fi |
707 |
- |
708 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
709 |
- |
710 |
- # Drop .config |
711 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
712 |
- |
713 |
- if use efi; then |
714 |
- export EFI_VENDOR="gentoo" |
715 |
- export EFI_MOUNTPOINT="boot" |
716 |
- fi |
717 |
- |
718 |
- # if the user *really* wants to use their own custom-cflags, let them |
719 |
- if use custom-cflags; then |
720 |
- einfo "User wants their own CFLAGS - removing defaults" |
721 |
- # try and remove all the default custom-cflags |
722 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
723 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
724 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
725 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
726 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
727 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
728 |
- -i {} \; || die "failed to re-set custom-cflags" |
729 |
- fi |
730 |
- |
731 |
- # remove -Werror for gcc-4.6's sake |
732 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
733 |
- xargs sed -i 's/ *-Werror */ /' |
734 |
- # not strictly necessary to fix this |
735 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
736 |
- |
737 |
- # Bug #575868 converted to a sed statement, typo of one char |
738 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
739 |
- |
740 |
- epatch_user |
741 |
-} |
742 |
- |
743 |
-src_configure() { |
744 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
745 |
- |
746 |
- use debug && myopt="${myopt} debug=y" |
747 |
- |
748 |
- if use custom-cflags; then |
749 |
- filter-flags -fPIE -fstack-protector |
750 |
- replace-flags -O3 -O2 |
751 |
- else |
752 |
- unset CFLAGS |
753 |
- unset LDFLAGS |
754 |
- unset ASFLAGS |
755 |
- fi |
756 |
-} |
757 |
- |
758 |
-src_compile() { |
759 |
- # Send raw LDFLAGS so that --as-needed works |
760 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
761 |
-} |
762 |
- |
763 |
-src_install() { |
764 |
- local myopt |
765 |
- use debug && myopt="${myopt} debug=y" |
766 |
- |
767 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
768 |
- if use efi; then |
769 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
770 |
- fi |
771 |
- |
772 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
773 |
- |
774 |
- # make install likes to throw in some extra EFI bits if it built |
775 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
776 |
-} |
777 |
- |
778 |
-pkg_postinst() { |
779 |
- elog "Official Xen Guide and the unoffical wiki page:" |
780 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
781 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
782 |
- |
783 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
784 |
- |
785 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
786 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
787 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
788 |
-} |
789 |
|
790 |
diff --git a/app-emulation/xen/xen-4.6.1-r2.ebuild b/app-emulation/xen/xen-4.6.1-r2.ebuild |
791 |
deleted file mode 100644 |
792 |
index 4461a53..0000000 |
793 |
--- a/app-emulation/xen/xen-4.6.1-r2.ebuild |
794 |
+++ /dev/null |
795 |
@@ -1,199 +0,0 @@ |
796 |
-# Copyright 1999-2016 Gentoo Foundation |
797 |
-# Distributed under the terms of the GNU General Public License v2 |
798 |
-# $Id$ |
799 |
- |
800 |
-EAPI=5 |
801 |
- |
802 |
-PYTHON_COMPAT=( python2_7 ) |
803 |
- |
804 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
805 |
- |
806 |
-MY_PV=${PV/_/-} |
807 |
-MY_P=${PN}-${PV/_/-} |
808 |
- |
809 |
-if [[ $PV == *9999 ]]; then |
810 |
- inherit git-r3 |
811 |
- KEYWORDS="" |
812 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
813 |
- SRC_URI="" |
814 |
-else |
815 |
- KEYWORDS="~amd64 ~arm -x86" |
816 |
- UPSTREAM_VER= |
817 |
- SECURITY_VER=01 |
818 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
819 |
- # first instance of UPS_VER (usptream ver) |
820 |
- UPS_VER= |
821 |
- SEC_VER= |
822 |
- GENTOO_VER= |
823 |
- |
824 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
825 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
826 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
827 |
- [[ -n ${SECURITY_VER} ]] && \ |
828 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.gz" |
829 |
- [[ -n ${GENTOO_VER} ]] && \ |
830 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
831 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
832 |
- ${UPSTREAM_PATCHSET_URI} |
833 |
- ${SECURITY_PATCHSET_URI} |
834 |
- ${GENTOO_PATCHSET_URI}" |
835 |
-fi |
836 |
- |
837 |
-DESCRIPTION="The Xen virtual machine monitor" |
838 |
-HOMEPAGE="http://xen.org/" |
839 |
-LICENSE="GPL-2" |
840 |
-SLOT="0" |
841 |
-IUSE="custom-cflags debug efi flask" |
842 |
- |
843 |
-DEPEND="${PYTHON_DEPS} |
844 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
845 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
846 |
-RDEPEND="" |
847 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
848 |
- |
849 |
-# no tests are available for the hypervisor |
850 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
851 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
852 |
-RESTRICT="test splitdebug strip" |
853 |
- |
854 |
-# Approved by QA team in bug #144032 |
855 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
856 |
- |
857 |
-REQUIRED_USE="arm? ( debug )" |
858 |
- |
859 |
-S="${WORKDIR}/${MY_P}" |
860 |
- |
861 |
-pkg_setup() { |
862 |
- python-any-r1_pkg_setup |
863 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
864 |
- if use amd64; then |
865 |
- export XEN_TARGET_ARCH="x86_64" |
866 |
- elif use arm; then |
867 |
- export XEN_TARGET_ARCH="arm32" |
868 |
- elif use arm64; then |
869 |
- export XEN_TARGET_ARCH="arm64" |
870 |
- else |
871 |
- die "Unsupported architecture!" |
872 |
- fi |
873 |
- fi |
874 |
- |
875 |
- if use flask ; then |
876 |
- export "XSM_ENABLE=y" |
877 |
- export "FLASK_ENABLE=y" |
878 |
- fi |
879 |
-} |
880 |
- |
881 |
-src_prepare() { |
882 |
- # Upstream's patchset |
883 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
884 |
- EPATCH_SUFFIX="patch" \ |
885 |
- EPATCH_FORCE="yes" \ |
886 |
- EPATCH_OPTS="-p1" \ |
887 |
- epatch "${WORKDIR}"/patches-upstream \ |
888 |
- "${WORKDIR}"/libexec.patch |
889 |
- fi |
890 |
- |
891 |
- if [[ -n ${SECURITY_VER} ]]; then |
892 |
- einfo "Try to apply Xen Security patcheset" |
893 |
- # apply main xen patches |
894 |
- # Two parallel systems, both work side by side |
895 |
- # Over time they may concdense into one. This will suffice for now |
896 |
- EPATCH_SUFFIX="patch" |
897 |
- EPATCH_FORCE="yes" |
898 |
- for i in ${XEN_SECURITY_MAIN}; do |
899 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
900 |
- done |
901 |
- |
902 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
903 |
- epatch $i |
904 |
- done |
905 |
- fi |
906 |
- |
907 |
- # Gentoo's patchset |
908 |
- if [[ -n ${GENTOO_VER} ]]; then |
909 |
- EPATCH_SUFFIX="patch" \ |
910 |
- EPATCH_FORCE="yes" \ |
911 |
- epatch "${WORKDIR}"/patches-gentoo |
912 |
- fi |
913 |
- |
914 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
915 |
- |
916 |
- # Drop .config |
917 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
918 |
- |
919 |
- if use efi; then |
920 |
- export EFI_VENDOR="gentoo" |
921 |
- export EFI_MOUNTPOINT="boot" |
922 |
- fi |
923 |
- |
924 |
- # if the user *really* wants to use their own custom-cflags, let them |
925 |
- if use custom-cflags; then |
926 |
- einfo "User wants their own CFLAGS - removing defaults" |
927 |
- # try and remove all the default custom-cflags |
928 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
929 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
930 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
931 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
932 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
933 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
934 |
- -i {} \; || die "failed to re-set custom-cflags" |
935 |
- fi |
936 |
- |
937 |
- # remove -Werror for gcc-4.6's sake |
938 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
939 |
- xargs sed -i 's/ *-Werror */ /' |
940 |
- # not strictly necessary to fix this |
941 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
942 |
- |
943 |
- # Bug #575868 converted to a sed statement, typo of one char |
944 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
945 |
- |
946 |
- epatch_user |
947 |
-} |
948 |
- |
949 |
-src_configure() { |
950 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
951 |
- |
952 |
- use debug && myopt="${myopt} debug=y" |
953 |
- |
954 |
- if use custom-cflags; then |
955 |
- filter-flags -fPIE -fstack-protector |
956 |
- replace-flags -O3 -O2 |
957 |
- else |
958 |
- unset CFLAGS |
959 |
- unset LDFLAGS |
960 |
- unset ASFLAGS |
961 |
- fi |
962 |
-} |
963 |
- |
964 |
-src_compile() { |
965 |
- # Send raw LDFLAGS so that --as-needed works |
966 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
967 |
-} |
968 |
- |
969 |
-src_install() { |
970 |
- local myopt |
971 |
- use debug && myopt="${myopt} debug=y" |
972 |
- |
973 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
974 |
- if use efi; then |
975 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
976 |
- fi |
977 |
- |
978 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
979 |
- |
980 |
- # make install likes to throw in some extra EFI bits if it built |
981 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
982 |
-} |
983 |
- |
984 |
-pkg_postinst() { |
985 |
- elog "Official Xen Guide and the unoffical wiki page:" |
986 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
987 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
988 |
- |
989 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
990 |
- |
991 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
992 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
993 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
994 |
-} |
995 |
|
996 |
diff --git a/app-emulation/xen/xen-4.6.1-r3.ebuild b/app-emulation/xen/xen-4.6.1-r3.ebuild |
997 |
deleted file mode 100644 |
998 |
index 8a514ff..0000000 |
999 |
--- a/app-emulation/xen/xen-4.6.1-r3.ebuild |
1000 |
+++ /dev/null |
1001 |
@@ -1,193 +0,0 @@ |
1002 |
-# Copyright 1999-2016 Gentoo Foundation |
1003 |
-# Distributed under the terms of the GNU General Public License v2 |
1004 |
-# $Id$ |
1005 |
- |
1006 |
-EAPI=5 |
1007 |
- |
1008 |
-PYTHON_COMPAT=( python2_7 ) |
1009 |
- |
1010 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
1011 |
- |
1012 |
-MY_PV=${PV/_/-} |
1013 |
-MY_P=${PN}-${PV/_/-} |
1014 |
- |
1015 |
-if [[ $PV == *9999 ]]; then |
1016 |
- inherit git-r3 |
1017 |
- KEYWORDS="" |
1018 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
1019 |
- SRC_URI="" |
1020 |
-else |
1021 |
- KEYWORDS="~amd64 ~arm -x86" |
1022 |
- UPSTREAM_VER=0 |
1023 |
- SECURITY_VER=12 |
1024 |
- GENTOO_VER= |
1025 |
- |
1026 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
1027 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
1028 |
- [[ -n ${SECURITY_VER} ]] && \ |
1029 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
1030 |
- [[ -n ${GENTOO_VER} ]] && \ |
1031 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
1032 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
1033 |
- ${UPSTREAM_PATCHSET_URI} |
1034 |
- ${SECURITY_PATCHSET_URI} |
1035 |
- ${GENTOO_PATCHSET_URI}" |
1036 |
-fi |
1037 |
- |
1038 |
-DESCRIPTION="The Xen virtual machine monitor" |
1039 |
-HOMEPAGE="http://xen.org/" |
1040 |
-LICENSE="GPL-2" |
1041 |
-SLOT="0" |
1042 |
-IUSE="custom-cflags debug efi flask" |
1043 |
- |
1044 |
-DEPEND="${PYTHON_DEPS} |
1045 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
1046 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
1047 |
-RDEPEND="" |
1048 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
1049 |
- |
1050 |
-# no tests are available for the hypervisor |
1051 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
1052 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
1053 |
-RESTRICT="test splitdebug strip" |
1054 |
- |
1055 |
-# Approved by QA team in bug #144032 |
1056 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
1057 |
- |
1058 |
-REQUIRED_USE="arm? ( debug )" |
1059 |
- |
1060 |
-S="${WORKDIR}/${MY_P}" |
1061 |
- |
1062 |
-pkg_setup() { |
1063 |
- python-any-r1_pkg_setup |
1064 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
1065 |
- if use amd64; then |
1066 |
- export XEN_TARGET_ARCH="x86_64" |
1067 |
- elif use arm; then |
1068 |
- export XEN_TARGET_ARCH="arm32" |
1069 |
- elif use arm64; then |
1070 |
- export XEN_TARGET_ARCH="arm64" |
1071 |
- else |
1072 |
- die "Unsupported architecture!" |
1073 |
- fi |
1074 |
- fi |
1075 |
- |
1076 |
- if use flask ; then |
1077 |
- export "XSM_ENABLE=y" |
1078 |
- export "FLASK_ENABLE=y" |
1079 |
- fi |
1080 |
-} |
1081 |
- |
1082 |
-src_prepare() { |
1083 |
- # Upstream's patchset |
1084 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
1085 |
- EPATCH_SUFFIX="patch" \ |
1086 |
- EPATCH_FORCE="yes" \ |
1087 |
- EPATCH_OPTS="-p1" \ |
1088 |
- epatch "${WORKDIR}"/patches-upstream |
1089 |
- fi |
1090 |
- |
1091 |
- # Security patchset |
1092 |
- if [[ -n ${SECURITY_VER} ]]; then |
1093 |
- einfo "Try to apply Xen Security patch set" |
1094 |
- # apply main xen patches |
1095 |
- # Two parallel systems, both work side by side |
1096 |
- # Over time they may concdense into one. This will suffice for now |
1097 |
- EPATCH_SUFFIX="patch" |
1098 |
- EPATCH_FORCE="yes" |
1099 |
- |
1100 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
1101 |
- |
1102 |
- for i in ${XEN_SECURITY_MAIN}; do |
1103 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
1104 |
- done |
1105 |
- fi |
1106 |
- |
1107 |
- # Gentoo's patchset |
1108 |
- if [[ -n ${GENTOO_VER} ]]; then |
1109 |
- EPATCH_SUFFIX="patch" \ |
1110 |
- EPATCH_FORCE="yes" \ |
1111 |
- epatch "${WORKDIR}"/patches-gentoo |
1112 |
- fi |
1113 |
- |
1114 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
1115 |
- |
1116 |
- # Drop .config |
1117 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
1118 |
- |
1119 |
- if use efi; then |
1120 |
- export EFI_VENDOR="gentoo" |
1121 |
- export EFI_MOUNTPOINT="boot" |
1122 |
- fi |
1123 |
- |
1124 |
- # if the user *really* wants to use their own custom-cflags, let them |
1125 |
- if use custom-cflags; then |
1126 |
- einfo "User wants their own CFLAGS - removing defaults" |
1127 |
- # try and remove all the default custom-cflags |
1128 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
1129 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
1130 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
1131 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
1132 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
1133 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
1134 |
- -i {} \; || die "failed to re-set custom-cflags" |
1135 |
- fi |
1136 |
- |
1137 |
- # remove -Werror for gcc-4.6's sake |
1138 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
1139 |
- xargs sed -i 's/ *-Werror */ /' |
1140 |
- # not strictly necessary to fix this |
1141 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
1142 |
- |
1143 |
- # Bug #575868 converted to a sed statement, typo of one char |
1144 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
1145 |
- |
1146 |
- epatch_user |
1147 |
-} |
1148 |
- |
1149 |
-src_configure() { |
1150 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
1151 |
- |
1152 |
- use debug && myopt="${myopt} debug=y" |
1153 |
- |
1154 |
- if use custom-cflags; then |
1155 |
- filter-flags -fPIE -fstack-protector |
1156 |
- replace-flags -O3 -O2 |
1157 |
- else |
1158 |
- unset CFLAGS |
1159 |
- unset LDFLAGS |
1160 |
- unset ASFLAGS |
1161 |
- fi |
1162 |
-} |
1163 |
- |
1164 |
-src_compile() { |
1165 |
- # Send raw LDFLAGS so that --as-needed works |
1166 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
1167 |
-} |
1168 |
- |
1169 |
-src_install() { |
1170 |
- local myopt |
1171 |
- use debug && myopt="${myopt} debug=y" |
1172 |
- |
1173 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
1174 |
- if use efi; then |
1175 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
1176 |
- fi |
1177 |
- |
1178 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
1179 |
- |
1180 |
- # make install likes to throw in some extra EFI bits if it built |
1181 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
1182 |
-} |
1183 |
- |
1184 |
-pkg_postinst() { |
1185 |
- elog "Official Xen Guide and the unoffical wiki page:" |
1186 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
1187 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
1188 |
- |
1189 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
1190 |
- |
1191 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
1192 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
1193 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
1194 |
-} |
1195 |
|
1196 |
diff --git a/app-emulation/xen/xen-4.6.1.ebuild b/app-emulation/xen/xen-4.6.1.ebuild |
1197 |
deleted file mode 100644 |
1198 |
index 6277f0c..0000000 |
1199 |
--- a/app-emulation/xen/xen-4.6.1.ebuild |
1200 |
+++ /dev/null |
1201 |
@@ -1,200 +0,0 @@ |
1202 |
-# Copyright 1999-2016 Gentoo Foundation |
1203 |
-# Distributed under the terms of the GNU General Public License v2 |
1204 |
-# $Id$ |
1205 |
- |
1206 |
-EAPI=5 |
1207 |
- |
1208 |
-PYTHON_COMPAT=( python2_7 ) |
1209 |
- |
1210 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
1211 |
- |
1212 |
-MY_PV=${PV/_/-} |
1213 |
-MY_P=${PN}-${PV/_/-} |
1214 |
- |
1215 |
-if [[ $PV == *9999 ]]; then |
1216 |
- inherit git-r3 |
1217 |
- KEYWORDS="" |
1218 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
1219 |
- SRC_URI="" |
1220 |
-else |
1221 |
- KEYWORDS="~amd64 ~arm ~arm64 -x86" |
1222 |
- UPSTREAM_VER= |
1223 |
- SECURITY_VER= |
1224 |
- # var set to reflect https://dev.gentoo.org/~idella4/ |
1225 |
- # first instance of UPS_VER (usptream ver) |
1226 |
- UPS_VER= |
1227 |
- SEC_VER= |
1228 |
- GENTOO_VER= |
1229 |
- |
1230 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
1231 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
1232 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-upstream-patches-${UPS_VER}.tar.gz" |
1233 |
- [[ -n ${SECURITY_VER} ]] && \ |
1234 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~idella4/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz |
1235 |
- https://dev.gentoo.org/~idella4/distfiles/${PN}-security-patches-${SEC_VER}.tar.gz" |
1236 |
- [[ -n ${GENTOO_VER} ]] && \ |
1237 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
1238 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
1239 |
- ${UPSTREAM_PATCHSET_URI} |
1240 |
- ${SECURITY_PATCHSET_URI} |
1241 |
- ${GENTOO_PATCHSET_URI}" |
1242 |
-fi |
1243 |
- |
1244 |
-DESCRIPTION="The Xen virtual machine monitor" |
1245 |
-HOMEPAGE="http://xen.org/" |
1246 |
-LICENSE="GPL-2" |
1247 |
-SLOT="0" |
1248 |
-IUSE="custom-cflags debug efi flask" |
1249 |
- |
1250 |
-DEPEND="${PYTHON_DEPS} |
1251 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
1252 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
1253 |
-RDEPEND="" |
1254 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
1255 |
- |
1256 |
-# no tests are available for the hypervisor |
1257 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
1258 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
1259 |
-RESTRICT="test splitdebug strip" |
1260 |
- |
1261 |
-# Approved by QA team in bug #144032 |
1262 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
1263 |
- |
1264 |
-REQUIRED_USE="arm? ( debug )" |
1265 |
- |
1266 |
-S="${WORKDIR}/${MY_P}" |
1267 |
- |
1268 |
-pkg_setup() { |
1269 |
- python-any-r1_pkg_setup |
1270 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
1271 |
- if use amd64; then |
1272 |
- export XEN_TARGET_ARCH="x86_64" |
1273 |
- elif use arm; then |
1274 |
- export XEN_TARGET_ARCH="arm32" |
1275 |
- elif use arm64; then |
1276 |
- export XEN_TARGET_ARCH="arm64" |
1277 |
- else |
1278 |
- die "Unsupported architecture!" |
1279 |
- fi |
1280 |
- fi |
1281 |
- |
1282 |
- if use flask ; then |
1283 |
- export "XSM_ENABLE=y" |
1284 |
- export "FLASK_ENABLE=y" |
1285 |
- fi |
1286 |
-} |
1287 |
- |
1288 |
-src_prepare() { |
1289 |
- # Upstream's patchset |
1290 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
1291 |
- EPATCH_SUFFIX="patch" \ |
1292 |
- EPATCH_FORCE="yes" \ |
1293 |
- EPATCH_OPTS="-p1" \ |
1294 |
- epatch "${WORKDIR}"/patches-upstream \ |
1295 |
- "${WORKDIR}"/libexec.patch |
1296 |
- fi |
1297 |
- |
1298 |
- if [[ -n ${SECURITY_VER} ]]; then |
1299 |
- einfo "Try to apply Xen Security patcheset" |
1300 |
- # apply main xen patches |
1301 |
- # Two parallel systems, both work side by side |
1302 |
- # Over time they may concdense into one. This will suffice for now |
1303 |
- EPATCH_SUFFIX="patch" |
1304 |
- EPATCH_FORCE="yes" |
1305 |
- for i in ${XEN_SECURITY_MAIN}; do |
1306 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
1307 |
- done |
1308 |
- |
1309 |
- for i in "${WORKDIR}"/xen-sec/xsa*.patch; do |
1310 |
- epatch $i |
1311 |
- done |
1312 |
- fi |
1313 |
- |
1314 |
- # Gentoo's patchset |
1315 |
- if [[ -n ${GENTOO_VER} ]]; then |
1316 |
- EPATCH_SUFFIX="patch" \ |
1317 |
- EPATCH_FORCE="yes" \ |
1318 |
- epatch "${WORKDIR}"/patches-gentoo |
1319 |
- fi |
1320 |
- |
1321 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
1322 |
- |
1323 |
- # Drop .config |
1324 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
1325 |
- |
1326 |
- if use efi; then |
1327 |
- export EFI_VENDOR="gentoo" |
1328 |
- export EFI_MOUNTPOINT="boot" |
1329 |
- fi |
1330 |
- |
1331 |
- # if the user *really* wants to use their own custom-cflags, let them |
1332 |
- if use custom-cflags; then |
1333 |
- einfo "User wants their own CFLAGS - removing defaults" |
1334 |
- # try and remove all the default custom-cflags |
1335 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
1336 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
1337 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
1338 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
1339 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
1340 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
1341 |
- -i {} \; || die "failed to re-set custom-cflags" |
1342 |
- fi |
1343 |
- |
1344 |
- # remove -Werror for gcc-4.6's sake |
1345 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
1346 |
- xargs sed -i 's/ *-Werror */ /' |
1347 |
- # not strictly necessary to fix this |
1348 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
1349 |
- |
1350 |
- # Bug #575868 converted to a sed statement, typo of one char |
1351 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
1352 |
- |
1353 |
- epatch_user |
1354 |
-} |
1355 |
- |
1356 |
-src_configure() { |
1357 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
1358 |
- |
1359 |
- use debug && myopt="${myopt} debug=y" |
1360 |
- |
1361 |
- if use custom-cflags; then |
1362 |
- filter-flags -fPIE -fstack-protector |
1363 |
- replace-flags -O3 -O2 |
1364 |
- else |
1365 |
- unset CFLAGS |
1366 |
- unset LDFLAGS |
1367 |
- unset ASFLAGS |
1368 |
- fi |
1369 |
-} |
1370 |
- |
1371 |
-src_compile() { |
1372 |
- # Send raw LDFLAGS so that --as-needed works |
1373 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
1374 |
-} |
1375 |
- |
1376 |
-src_install() { |
1377 |
- local myopt |
1378 |
- use debug && myopt="${myopt} debug=y" |
1379 |
- |
1380 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
1381 |
- if use efi; then |
1382 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
1383 |
- fi |
1384 |
- |
1385 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
1386 |
- |
1387 |
- # make install likes to throw in some extra EFI bits if it built |
1388 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
1389 |
-} |
1390 |
- |
1391 |
-pkg_postinst() { |
1392 |
- elog "Official Xen Guide and the unoffical wiki page:" |
1393 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
1394 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
1395 |
- |
1396 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
1397 |
- |
1398 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
1399 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
1400 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
1401 |
-} |
1402 |
|
1403 |
diff --git a/app-emulation/xen/xen-4.6.3.ebuild b/app-emulation/xen/xen-4.6.3.ebuild |
1404 |
deleted file mode 100644 |
1405 |
index 97198be..0000000 |
1406 |
--- a/app-emulation/xen/xen-4.6.3.ebuild |
1407 |
+++ /dev/null |
1408 |
@@ -1,193 +0,0 @@ |
1409 |
-# Copyright 1999-2016 Gentoo Foundation |
1410 |
-# Distributed under the terms of the GNU General Public License v2 |
1411 |
-# $Id$ |
1412 |
- |
1413 |
-EAPI=5 |
1414 |
- |
1415 |
-PYTHON_COMPAT=( python2_7 ) |
1416 |
- |
1417 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
1418 |
- |
1419 |
-MY_PV=${PV/_/-} |
1420 |
-MY_P=${PN}-${PV/_/-} |
1421 |
- |
1422 |
-if [[ $PV == *9999 ]]; then |
1423 |
- inherit git-r3 |
1424 |
- KEYWORDS="" |
1425 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
1426 |
- SRC_URI="" |
1427 |
-else |
1428 |
- KEYWORDS="~amd64 ~arm -x86" |
1429 |
- UPSTREAM_VER= |
1430 |
- SECURITY_VER= |
1431 |
- GENTOO_VER= |
1432 |
- |
1433 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
1434 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
1435 |
- [[ -n ${SECURITY_VER} ]] && \ |
1436 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
1437 |
- [[ -n ${GENTOO_VER} ]] && \ |
1438 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
1439 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
1440 |
- ${UPSTREAM_PATCHSET_URI} |
1441 |
- ${SECURITY_PATCHSET_URI} |
1442 |
- ${GENTOO_PATCHSET_URI}" |
1443 |
-fi |
1444 |
- |
1445 |
-DESCRIPTION="The Xen virtual machine monitor" |
1446 |
-HOMEPAGE="http://xen.org/" |
1447 |
-LICENSE="GPL-2" |
1448 |
-SLOT="0" |
1449 |
-IUSE="custom-cflags debug efi flask" |
1450 |
- |
1451 |
-DEPEND="${PYTHON_DEPS} |
1452 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
1453 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
1454 |
-RDEPEND="" |
1455 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
1456 |
- |
1457 |
-# no tests are available for the hypervisor |
1458 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
1459 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
1460 |
-RESTRICT="test splitdebug strip" |
1461 |
- |
1462 |
-# Approved by QA team in bug #144032 |
1463 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
1464 |
- |
1465 |
-REQUIRED_USE="arm? ( debug )" |
1466 |
- |
1467 |
-S="${WORKDIR}/${MY_P}" |
1468 |
- |
1469 |
-pkg_setup() { |
1470 |
- python-any-r1_pkg_setup |
1471 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
1472 |
- if use amd64; then |
1473 |
- export XEN_TARGET_ARCH="x86_64" |
1474 |
- elif use arm; then |
1475 |
- export XEN_TARGET_ARCH="arm32" |
1476 |
- elif use arm64; then |
1477 |
- export XEN_TARGET_ARCH="arm64" |
1478 |
- else |
1479 |
- die "Unsupported architecture!" |
1480 |
- fi |
1481 |
- fi |
1482 |
- |
1483 |
- if use flask ; then |
1484 |
- export "XSM_ENABLE=y" |
1485 |
- export "FLASK_ENABLE=y" |
1486 |
- fi |
1487 |
-} |
1488 |
- |
1489 |
-src_prepare() { |
1490 |
- # Upstream's patchset |
1491 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
1492 |
- EPATCH_SUFFIX="patch" \ |
1493 |
- EPATCH_FORCE="yes" \ |
1494 |
- EPATCH_OPTS="-p1" \ |
1495 |
- epatch "${WORKDIR}"/patches-upstream |
1496 |
- fi |
1497 |
- |
1498 |
- # Security patchset |
1499 |
- if [[ -n ${SECURITY_VER} ]]; then |
1500 |
- einfo "Try to apply Xen Security patch set" |
1501 |
- # apply main xen patches |
1502 |
- # Two parallel systems, both work side by side |
1503 |
- # Over time they may concdense into one. This will suffice for now |
1504 |
- EPATCH_SUFFIX="patch" |
1505 |
- EPATCH_FORCE="yes" |
1506 |
- |
1507 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
1508 |
- |
1509 |
- for i in ${XEN_SECURITY_MAIN}; do |
1510 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
1511 |
- done |
1512 |
- fi |
1513 |
- |
1514 |
- # Gentoo's patchset |
1515 |
- if [[ -n ${GENTOO_VER} ]]; then |
1516 |
- EPATCH_SUFFIX="patch" \ |
1517 |
- EPATCH_FORCE="yes" \ |
1518 |
- epatch "${WORKDIR}"/patches-gentoo |
1519 |
- fi |
1520 |
- |
1521 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
1522 |
- |
1523 |
- # Drop .config |
1524 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
1525 |
- |
1526 |
- if use efi; then |
1527 |
- export EFI_VENDOR="gentoo" |
1528 |
- export EFI_MOUNTPOINT="boot" |
1529 |
- fi |
1530 |
- |
1531 |
- # if the user *really* wants to use their own custom-cflags, let them |
1532 |
- if use custom-cflags; then |
1533 |
- einfo "User wants their own CFLAGS - removing defaults" |
1534 |
- # try and remove all the default custom-cflags |
1535 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
1536 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
1537 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
1538 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
1539 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
1540 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
1541 |
- -i {} \; || die "failed to re-set custom-cflags" |
1542 |
- fi |
1543 |
- |
1544 |
- # remove -Werror for gcc-4.6's sake |
1545 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
1546 |
- xargs sed -i 's/ *-Werror */ /' |
1547 |
- # not strictly necessary to fix this |
1548 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
1549 |
- |
1550 |
- # Bug #575868 converted to a sed statement, typo of one char |
1551 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
1552 |
- |
1553 |
- epatch_user |
1554 |
-} |
1555 |
- |
1556 |
-src_configure() { |
1557 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
1558 |
- |
1559 |
- use debug && myopt="${myopt} debug=y" |
1560 |
- |
1561 |
- if use custom-cflags; then |
1562 |
- filter-flags -fPIE -fstack-protector |
1563 |
- replace-flags -O3 -O2 |
1564 |
- else |
1565 |
- unset CFLAGS |
1566 |
- unset LDFLAGS |
1567 |
- unset ASFLAGS |
1568 |
- fi |
1569 |
-} |
1570 |
- |
1571 |
-src_compile() { |
1572 |
- # Send raw LDFLAGS so that --as-needed works |
1573 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
1574 |
-} |
1575 |
- |
1576 |
-src_install() { |
1577 |
- local myopt |
1578 |
- use debug && myopt="${myopt} debug=y" |
1579 |
- |
1580 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
1581 |
- if use efi; then |
1582 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
1583 |
- fi |
1584 |
- |
1585 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
1586 |
- |
1587 |
- # make install likes to throw in some extra EFI bits if it built |
1588 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
1589 |
-} |
1590 |
- |
1591 |
-pkg_postinst() { |
1592 |
- elog "Official Xen Guide and the unoffical wiki page:" |
1593 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
1594 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
1595 |
- |
1596 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
1597 |
- |
1598 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
1599 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
1600 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
1601 |
-} |
1602 |
|
1603 |
diff --git a/app-emulation/xen/xen-4.7.0.ebuild b/app-emulation/xen/xen-4.7.0.ebuild |
1604 |
deleted file mode 100644 |
1605 |
index 97198be..0000000 |
1606 |
--- a/app-emulation/xen/xen-4.7.0.ebuild |
1607 |
+++ /dev/null |
1608 |
@@ -1,193 +0,0 @@ |
1609 |
-# Copyright 1999-2016 Gentoo Foundation |
1610 |
-# Distributed under the terms of the GNU General Public License v2 |
1611 |
-# $Id$ |
1612 |
- |
1613 |
-EAPI=5 |
1614 |
- |
1615 |
-PYTHON_COMPAT=( python2_7 ) |
1616 |
- |
1617 |
-inherit eutils multilib mount-boot flag-o-matic python-any-r1 toolchain-funcs |
1618 |
- |
1619 |
-MY_PV=${PV/_/-} |
1620 |
-MY_P=${PN}-${PV/_/-} |
1621 |
- |
1622 |
-if [[ $PV == *9999 ]]; then |
1623 |
- inherit git-r3 |
1624 |
- KEYWORDS="" |
1625 |
- EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
1626 |
- SRC_URI="" |
1627 |
-else |
1628 |
- KEYWORDS="~amd64 ~arm -x86" |
1629 |
- UPSTREAM_VER= |
1630 |
- SECURITY_VER= |
1631 |
- GENTOO_VER= |
1632 |
- |
1633 |
- [[ -n ${UPSTREAM_VER} ]] && \ |
1634 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
1635 |
- [[ -n ${SECURITY_VER} ]] && \ |
1636 |
- SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
1637 |
- [[ -n ${GENTOO_VER} ]] && \ |
1638 |
- GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
1639 |
- SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz |
1640 |
- ${UPSTREAM_PATCHSET_URI} |
1641 |
- ${SECURITY_PATCHSET_URI} |
1642 |
- ${GENTOO_PATCHSET_URI}" |
1643 |
-fi |
1644 |
- |
1645 |
-DESCRIPTION="The Xen virtual machine monitor" |
1646 |
-HOMEPAGE="http://xen.org/" |
1647 |
-LICENSE="GPL-2" |
1648 |
-SLOT="0" |
1649 |
-IUSE="custom-cflags debug efi flask" |
1650 |
- |
1651 |
-DEPEND="${PYTHON_DEPS} |
1652 |
- efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
1653 |
- !efi? ( >=sys-devel/binutils-2.22 )" |
1654 |
-RDEPEND="" |
1655 |
-PDEPEND="~app-emulation/xen-tools-${PV}" |
1656 |
- |
1657 |
-# no tests are available for the hypervisor |
1658 |
-# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
1659 |
-# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
1660 |
-RESTRICT="test splitdebug strip" |
1661 |
- |
1662 |
-# Approved by QA team in bug #144032 |
1663 |
-QA_WX_LOAD="boot/xen-syms-${PV}" |
1664 |
- |
1665 |
-REQUIRED_USE="arm? ( debug )" |
1666 |
- |
1667 |
-S="${WORKDIR}/${MY_P}" |
1668 |
- |
1669 |
-pkg_setup() { |
1670 |
- python-any-r1_pkg_setup |
1671 |
- if [[ -z ${XEN_TARGET_ARCH} ]]; then |
1672 |
- if use amd64; then |
1673 |
- export XEN_TARGET_ARCH="x86_64" |
1674 |
- elif use arm; then |
1675 |
- export XEN_TARGET_ARCH="arm32" |
1676 |
- elif use arm64; then |
1677 |
- export XEN_TARGET_ARCH="arm64" |
1678 |
- else |
1679 |
- die "Unsupported architecture!" |
1680 |
- fi |
1681 |
- fi |
1682 |
- |
1683 |
- if use flask ; then |
1684 |
- export "XSM_ENABLE=y" |
1685 |
- export "FLASK_ENABLE=y" |
1686 |
- fi |
1687 |
-} |
1688 |
- |
1689 |
-src_prepare() { |
1690 |
- # Upstream's patchset |
1691 |
- if [[ -n ${UPSTREAM_VER} ]]; then |
1692 |
- EPATCH_SUFFIX="patch" \ |
1693 |
- EPATCH_FORCE="yes" \ |
1694 |
- EPATCH_OPTS="-p1" \ |
1695 |
- epatch "${WORKDIR}"/patches-upstream |
1696 |
- fi |
1697 |
- |
1698 |
- # Security patchset |
1699 |
- if [[ -n ${SECURITY_VER} ]]; then |
1700 |
- einfo "Try to apply Xen Security patch set" |
1701 |
- # apply main xen patches |
1702 |
- # Two parallel systems, both work side by side |
1703 |
- # Over time they may concdense into one. This will suffice for now |
1704 |
- EPATCH_SUFFIX="patch" |
1705 |
- EPATCH_FORCE="yes" |
1706 |
- |
1707 |
- source "${WORKDIR}"/patches-security/${PV}.conf |
1708 |
- |
1709 |
- for i in ${XEN_SECURITY_MAIN}; do |
1710 |
- epatch "${WORKDIR}"/patches-security/xen/$i |
1711 |
- done |
1712 |
- fi |
1713 |
- |
1714 |
- # Gentoo's patchset |
1715 |
- if [[ -n ${GENTOO_VER} ]]; then |
1716 |
- EPATCH_SUFFIX="patch" \ |
1717 |
- EPATCH_FORCE="yes" \ |
1718 |
- epatch "${WORKDIR}"/patches-gentoo |
1719 |
- fi |
1720 |
- |
1721 |
- epatch "${FILESDIR}"/${PN}-4.6-efi.patch |
1722 |
- |
1723 |
- # Drop .config |
1724 |
- sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
1725 |
- |
1726 |
- if use efi; then |
1727 |
- export EFI_VENDOR="gentoo" |
1728 |
- export EFI_MOUNTPOINT="boot" |
1729 |
- fi |
1730 |
- |
1731 |
- # if the user *really* wants to use their own custom-cflags, let them |
1732 |
- if use custom-cflags; then |
1733 |
- einfo "User wants their own CFLAGS - removing defaults" |
1734 |
- # try and remove all the default custom-cflags |
1735 |
- find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
1736 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
1737 |
- -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
1738 |
- -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
1739 |
- -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
1740 |
- -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
1741 |
- -i {} \; || die "failed to re-set custom-cflags" |
1742 |
- fi |
1743 |
- |
1744 |
- # remove -Werror for gcc-4.6's sake |
1745 |
- find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ |
1746 |
- xargs sed -i 's/ *-Werror */ /' |
1747 |
- # not strictly necessary to fix this |
1748 |
- sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
1749 |
- |
1750 |
- # Bug #575868 converted to a sed statement, typo of one char |
1751 |
- sed -e "s:granter’s:granter's:" -i xen/include/public/grant_table.h || die |
1752 |
- |
1753 |
- epatch_user |
1754 |
-} |
1755 |
- |
1756 |
-src_configure() { |
1757 |
- use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
1758 |
- |
1759 |
- use debug && myopt="${myopt} debug=y" |
1760 |
- |
1761 |
- if use custom-cflags; then |
1762 |
- filter-flags -fPIE -fstack-protector |
1763 |
- replace-flags -O3 -O2 |
1764 |
- else |
1765 |
- unset CFLAGS |
1766 |
- unset LDFLAGS |
1767 |
- unset ASFLAGS |
1768 |
- fi |
1769 |
-} |
1770 |
- |
1771 |
-src_compile() { |
1772 |
- # Send raw LDFLAGS so that --as-needed works |
1773 |
- emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
1774 |
-} |
1775 |
- |
1776 |
-src_install() { |
1777 |
- local myopt |
1778 |
- use debug && myopt="${myopt} debug=y" |
1779 |
- |
1780 |
- # The 'make install' doesn't 'mkdir -p' the subdirs |
1781 |
- if use efi; then |
1782 |
- mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
1783 |
- fi |
1784 |
- |
1785 |
- emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
1786 |
- |
1787 |
- # make install likes to throw in some extra EFI bits if it built |
1788 |
- use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
1789 |
-} |
1790 |
- |
1791 |
-pkg_postinst() { |
1792 |
- elog "Official Xen Guide and the unoffical wiki page:" |
1793 |
- elog " https://wiki.gentoo.org/wiki/Xen" |
1794 |
- elog " http://en.gentoo-wiki.com/wiki/Xen/" |
1795 |
- |
1796 |
- use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
1797 |
- |
1798 |
- elog "You can optionally block the installation of /boot/xen-syms by an entry" |
1799 |
- elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
1800 |
- elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
1801 |
-} |