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