1 |
commit: 956d97896b58d5848e5c8cee26033a585af6c55d |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 15 09:33:57 2019 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 16 13:59:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956d9789 |
7 |
|
8 |
app-emulation/xen: bump to 4.10.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
13 |
|
14 |
app-emulation/xen/Manifest | 2 + |
15 |
app-emulation/xen/xen-4.10.3.ebuild | 171 ++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 173 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest |
19 |
index 249d96bee30..c4b68ff3ca0 100644 |
20 |
--- a/app-emulation/xen/Manifest |
21 |
+++ b/app-emulation/xen/Manifest |
22 |
@@ -1,6 +1,8 @@ |
23 |
DIST xen-4.10.2-upstream-patches-1.tar.xz 31768 BLAKE2B 9205e5fa011426ae3eeaa19694d14ca233805be1e60326d53ec319de1fa28e3b30e7949d7d694ccc8f0e5ea77df580bb6cf22652ae1fd023fdc49b2d37dbce0a SHA512 38c2286d8c1e39d42c266c76d97b5321ca5fb931ebe33ff01c5210fdda4d64ccb39eb6463e756c5178ab7d1c8433a56668abf1dabf4b5b5e85823817d927cd33 |
24 |
DIST xen-4.10.2-upstream-patches-2.tar.xz 37800 BLAKE2B ecf4c1a97a1d76eef925e79fd25a654695a954f81bf8a5884cd4b1007714c888d6d7e19839556c457cf49a2f20ee88d5689a0287ffd7b16487dac676b3386daf SHA512 e9212efd65827286b729b08eded4bd6deda4a9f0b72af26bf0d106a111dddd1b56e51154d3e2a2ee4b38fcf4e8a81f30ffe2a6b711b9261e50e5954447d30e60 |
25 |
DIST xen-4.10.2.tar.gz 24697204 BLAKE2B b331d3ad8d7842446f7d2da5dd31560f636aa1408dd3cc8798dff35b868ef5a609d17e97ef4355e1e5aa825a5abc74103796f9a8015037f0a564ffcebd825722 SHA512 2e301b4d6eb106fcb52203bc1208c8fd1fc7bb5d795166c0f86e4085227050301f7daa6f21db440c47bc2ca2c7f87d9b96753cfdf3fa724e0416b5679b84c163 |
26 |
+DIST xen-4.10.3-upstream-patches-0.tar.xz 3908 BLAKE2B db09278352cd532df5ad84e6e2bf8626c6f98e45bc2f00f627e6ba307024c903614681d25f36869c2b4b0539e985dab4a5f76fc53393a1a4e9cc14dba548c22b SHA512 97ab362b57ccaf477eae40eee84fcbe1947228c03a3430cf98db760adb2efe863d32d29646a2233ab6270c6e14989527362d0aaf7ba84cf9586dac90cb0200b7 |
27 |
+DIST xen-4.10.3.tar.gz 24695778 BLAKE2B 50a9e31fb4cf587eeedb357fc710405a1cd4506174a38eb9b032a0cdd9b7f7343d98624ecb07cf605b1403664c7117cdc8f011290309caa18ca9604b4008b906 SHA512 030d23109ce4c0ebf50ade6841d5525a39032bcf8fd0599ccaa9502ff301c1f61f9c5f49233b41a5934a71228958febc1e529a9fc6822ba401a0c18c490ad412 |
28 |
DIST xen-4.11.0-upstream-patches-3.tar.xz 91692 BLAKE2B 500f6099b89d741264b72dc25919e16de0f1d5e1e3adebbe7788de25f1b82692c56b271f241e39733911e2d7d3e27e3ad29d91b94e1f4d8f0257d08b173b62f1 SHA512 bdb8dc5ff868434043d40417b013370e5fd7dc07570ac0bdaa6c253b50521d7fd79af8f7d85578a961b4631cc1ba3c4942d5c60ccc165205da0135506adfb4d2 |
29 |
DIST xen-4.11.0.tar.gz 25131533 BLAKE2B 892639b8bcd9b9956104e4d5137ffd88e17f92d965fa967b4af8d74a4fddcc21c6971c53026e0fb5ce833ab2c25c68f827abcac0b7b1dcebc21dca645c465573 SHA512 33d431c194f10d5ee767558404a1f80a66b3df019012b0bbd587fcbc9524e1bba7ea04269020ce891fe9d211d2f81c63bf78abedcdbe1595aee26251c803a50a |
30 |
DIST xen-4.11.1.tar.gz 25152217 BLAKE2B a8dfbeb3d490787725c589e1ce82dcbbcd0be7fb4743b38daf3a8704dffda34d1faabb07d74e01d2fab1572ce0b730c21192469317545e8b3edb3fae1130ef8c SHA512 c1655c5decdaed95a2b9a99652318cfc72f6cfdae957cfe60d635f7787e8850f33e8fafc4c4b8d61fb579c9b9d93028a6382903e71808a0418b931e76d72a649 |
31 |
|
32 |
diff --git a/app-emulation/xen/xen-4.10.3.ebuild b/app-emulation/xen/xen-4.10.3.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..18215b62c1d |
35 |
--- /dev/null |
36 |
+++ b/app-emulation/xen/xen-4.10.3.ebuild |
37 |
@@ -0,0 +1,171 @@ |
38 |
+# Copyright 1999-2019 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python2_7 ) |
44 |
+ |
45 |
+inherit flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs |
46 |
+ |
47 |
+MY_PV=${PV/_/-} |
48 |
+MY_P=${PN}-${MY_PV} |
49 |
+ |
50 |
+if [[ $PV == *9999 ]]; then |
51 |
+ inherit git-r3 |
52 |
+ EGIT_REPO_URI="git://xenbits.xen.org/xen.git" |
53 |
+ SRC_URI="" |
54 |
+else |
55 |
+ KEYWORDS="~amd64 ~arm -x86" |
56 |
+ UPSTREAM_VER=0 |
57 |
+ SECURITY_VER= |
58 |
+ GENTOO_VER= |
59 |
+ |
60 |
+ [[ -n ${UPSTREAM_VER} ]] && \ |
61 |
+ UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz |
62 |
+ https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
63 |
+ [[ -n ${SECURITY_VER} ]] && \ |
64 |
+ SECURITY_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-security-patches-${SECURITY_VER}.tar.xz" |
65 |
+ [[ -n ${GENTOO_VER} ]] && \ |
66 |
+ GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${PN}-gentoo-patches-${GENTOO_VER}.tar.xz" |
67 |
+ SRC_URI="https://downloads.xenproject.org/release/xen/${MY_PV}/${MY_P}.tar.gz |
68 |
+ ${UPSTREAM_PATCHSET_URI} |
69 |
+ ${SECURITY_PATCHSET_URI} |
70 |
+ ${GENTOO_PATCHSET_URI}" |
71 |
+fi |
72 |
+ |
73 |
+DESCRIPTION="The Xen virtual machine monitor" |
74 |
+HOMEPAGE="https://www.xenproject.org" |
75 |
+LICENSE="GPL-2" |
76 |
+SLOT="0" |
77 |
+IUSE="custom-cflags debug efi flask" |
78 |
+ |
79 |
+DEPEND="${PYTHON_DEPS} |
80 |
+ efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
81 |
+ !efi? ( >=sys-devel/binutils-2.22 )" |
82 |
+RDEPEND="" |
83 |
+PDEPEND="~app-emulation/xen-tools-${PV}" |
84 |
+ |
85 |
+# no tests are available for the hypervisor |
86 |
+# prevent the silliness of /usr/lib/debug/usr/lib/debug files |
87 |
+# prevent stripping of the debug info from the /usr/lib/debug/xen-syms |
88 |
+RESTRICT="test splitdebug strip" |
89 |
+ |
90 |
+# Approved by QA team in bug #144032 |
91 |
+QA_WX_LOAD="boot/xen-syms-${PV}" |
92 |
+ |
93 |
+REQUIRED_USE="arm? ( debug )" |
94 |
+ |
95 |
+S="${WORKDIR}/${MY_P}" |
96 |
+ |
97 |
+pkg_setup() { |
98 |
+ python-any-r1_pkg_setup |
99 |
+ if [[ -z ${XEN_TARGET_ARCH} ]]; then |
100 |
+ if use amd64; then |
101 |
+ export XEN_TARGET_ARCH="x86_64" |
102 |
+ elif use arm; then |
103 |
+ export XEN_TARGET_ARCH="arm32" |
104 |
+ elif use arm64; then |
105 |
+ export XEN_TARGET_ARCH="arm64" |
106 |
+ else |
107 |
+ die "Unsupported architecture!" |
108 |
+ fi |
109 |
+ fi |
110 |
+ |
111 |
+ if use flask ; then |
112 |
+ export "XSM_ENABLE=y" |
113 |
+ export "FLASK_ENABLE=y" |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ # Upstream's patchset |
119 |
+ [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream |
120 |
+ |
121 |
+ # Security patchset |
122 |
+ if [[ -n ${SECURITY_VER} ]]; then |
123 |
+ einfo "Try to apply Xen Security patch set" |
124 |
+ # apply main xen patches |
125 |
+ # Two parallel systems, both work side by side |
126 |
+ # Over time they may concdense into one. This will suffice for now |
127 |
+ source "${WORKDIR}"/patches-security/${PV}.conf |
128 |
+ |
129 |
+ local i |
130 |
+ for i in ${XEN_SECURITY_MAIN}; do |
131 |
+ eapply "${WORKDIR}"/patches-security/xen/$i |
132 |
+ done |
133 |
+ fi |
134 |
+ |
135 |
+ # Gentoo's patchset |
136 |
+ [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo |
137 |
+ |
138 |
+ eapply "${FILESDIR}"/${PN}-4.6-efi.patch |
139 |
+ |
140 |
+ # Drop .config |
141 |
+ sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" |
142 |
+ |
143 |
+ if use efi; then |
144 |
+ export EFI_VENDOR="gentoo" |
145 |
+ export EFI_MOUNTPOINT="boot" |
146 |
+ fi |
147 |
+ |
148 |
+ # if the user *really* wants to use their own custom-cflags, let them |
149 |
+ if use custom-cflags; then |
150 |
+ einfo "User wants their own CFLAGS - removing defaults" |
151 |
+ # try and remove all the default custom-cflags |
152 |
+ find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
153 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
154 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
155 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
156 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
157 |
+ -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
158 |
+ -i {} \; || die "failed to re-set custom-cflags" |
159 |
+ fi |
160 |
+ |
161 |
+ default |
162 |
+} |
163 |
+ |
164 |
+src_configure() { |
165 |
+ use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" |
166 |
+ |
167 |
+ use debug && myopt="${myopt} debug=y" |
168 |
+ |
169 |
+ if use custom-cflags; then |
170 |
+ filter-flags -fPIE -fstack-protector |
171 |
+ replace-flags -O3 -O2 |
172 |
+ else |
173 |
+ unset CFLAGS |
174 |
+ unset LDFLAGS |
175 |
+ unset ASFLAGS |
176 |
+ fi |
177 |
+} |
178 |
+ |
179 |
+src_compile() { |
180 |
+ # Send raw LDFLAGS so that --as-needed works |
181 |
+ emake V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
182 |
+} |
183 |
+ |
184 |
+src_install() { |
185 |
+ local myopt |
186 |
+ use debug && myopt="${myopt} debug=y" |
187 |
+ |
188 |
+ # The 'make install' doesn't 'mkdir -p' the subdirs |
189 |
+ if use efi; then |
190 |
+ mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
191 |
+ fi |
192 |
+ |
193 |
+ emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
194 |
+ |
195 |
+ # make install likes to throw in some extra EFI bits if it built |
196 |
+ use efi || rm -rf "${D}/usr/$(get_libdir)/efi" |
197 |
+} |
198 |
+ |
199 |
+pkg_postinst() { |
200 |
+ elog "Official Xen Guide:" |
201 |
+ elog " https://wiki.gentoo.org/wiki/Xen" |
202 |
+ |
203 |
+ use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
204 |
+ |
205 |
+ elog "You can optionally block the installation of /boot/xen-syms by an entry" |
206 |
+ elog "in folder /etc/portage/env using the portage's feature INSTALL_MASK" |
207 |
+ elog "e.g. echo ${msg} > /etc/portage/env/xen.conf" |
208 |
+} |