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