1 |
idella4 13/10/02 17:22:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xen-4.3.0-r1.ebuild |
5 |
Log: |
6 |
Adding security patches to 4.3.0 from Bug #486354, 4.2.2 excluded (for now) due to one sec. patch failing |
7 |
|
8 |
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
9 |
|
10 |
Revision Changes Path |
11 |
1.129 app-emulation/xen/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.129&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?rev=1.129&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/ChangeLog?r1=1.128&r2=1.129 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v |
20 |
retrieving revision 1.128 |
21 |
retrieving revision 1.129 |
22 |
diff -u -r1.128 -r1.129 |
23 |
--- ChangeLog 28 Jul 2013 09:13:36 -0000 1.128 |
24 |
+++ ChangeLog 2 Oct 2013 17:22:28 -0000 1.129 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for app-emulation/xen |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.128 2013/07/28 09:13:36 jcallen Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.129 2013/10/02 17:22:28 idella4 Exp $ |
30 |
+ |
31 |
+*xen-4.3.0-r1 (02 Oct 2013) |
32 |
+ |
33 |
+ 02 Oct 2013; Ian Delaney <idella4@g.o> |
34 |
+ +files/xen-CVE-2013-1442-XSA-62.patch, +files/xen-CVE-2013-4355-XSA-63.patch, |
35 |
+ +files/xen-CVE-2013-4356-XSA-64.patch, +files/xen-CVE-2013-4361-XSA-66.patch, |
36 |
+ +xen-4.3.0-r1.ebuild: |
37 |
+ Adding security patches to 4.3.0 from Bug #486354, 4.2.2 excluded (for now) |
38 |
+ due to one sec. patch failing |
39 |
|
40 |
28 Jul 2013; Jonathan Callen <jcallen@g.o> xen-4.2.1-r4.ebuild, |
41 |
xen-4.2.2-r1.ebuild, xen-4.3.0.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 app-emulation/xen/xen-4.3.0-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.3.0-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen/xen-4.3.0-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: xen-4.3.0-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2013 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.3.0-r1.ebuild,v 1.1 2013/10/02 17:22:28 idella4 Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
|
58 |
PYTHON_COMPAT=( python2_7 ) |
59 |
|
60 |
if [[ $PV == *9999 ]]; then |
61 |
KEYWORDS="" |
62 |
REPO="xen-unstable.hg" |
63 |
EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" |
64 |
S="${WORKDIR}/${REPO}" |
65 |
live_eclass="mercurial" |
66 |
else |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" |
69 |
fi |
70 |
|
71 |
inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} |
72 |
|
73 |
DESCRIPTION="The Xen virtual machine monitor" |
74 |
HOMEPAGE="http://xen.org/" |
75 |
LICENSE="GPL-2" |
76 |
SLOT="0" |
77 |
IUSE="custom-cflags debug efi flask pae xsm" |
78 |
|
79 |
DEPEND="${PYTHON_DEPS} |
80 |
efi? ( >=sys-devel/binutils-2.22[multitarget] ) |
81 |
!efi? ( >=sys-devel/binutils-2.22[-multitarget] )" |
82 |
RDEPEND="" |
83 |
PDEPEND="~app-emulation/xen-tools-${PV}" |
84 |
|
85 |
RESTRICT="test" |
86 |
|
87 |
# Approved by QA team in bug #144032 |
88 |
QA_WX_LOAD="boot/xen-syms-${PV}" |
89 |
|
90 |
REQUIRED_USE="flask? ( xsm )" |
91 |
|
92 |
pkg_setup() { |
93 |
python-any-r1_pkg_setup |
94 |
if [[ -z ${XEN_TARGET_ARCH} ]]; then |
95 |
if use x86 && use amd64; then |
96 |
die "Confusion! Both x86 and amd64 are set in your use flags!" |
97 |
elif use x86; then |
98 |
export XEN_TARGET_ARCH="x86_32" |
99 |
elif use amd64; then |
100 |
export XEN_TARGET_ARCH="x86_64" |
101 |
else |
102 |
die "Unsupported architecture!" |
103 |
fi |
104 |
fi |
105 |
|
106 |
if use flask ; then |
107 |
export "XSM_ENABLE=y" |
108 |
export "FLASK_ENABLE=y" |
109 |
elif use xsm ; then |
110 |
export "XSM_ENABLE=y" |
111 |
fi |
112 |
} |
113 |
|
114 |
src_prepare() { |
115 |
# Drop .config and fix gcc-4.6 |
116 |
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-fix_dotconfig-gcc.patch |
117 |
|
118 |
if use efi; then |
119 |
epatch "${FILESDIR}"/${PN}-4.2-efi.patch |
120 |
export EFI_VENDOR="gentoo" |
121 |
export EFI_MOUNTPOINT="boot" |
122 |
fi |
123 |
|
124 |
# if the user *really* wants to use their own custom-cflags, let them |
125 |
if use custom-cflags; then |
126 |
einfo "User wants their own CFLAGS - removing defaults" |
127 |
# try and remove all the default custom-cflags |
128 |
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ |
129 |
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ |
130 |
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ |
131 |
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ |
132 |
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ |
133 |
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ |
134 |
-i {} \; || die "failed to re-set custom-cflags" |
135 |
fi |
136 |
|
137 |
# not strictly necessary to fix this |
138 |
sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" |
139 |
|
140 |
#Security patches |
141 |
epatch "${FILESDIR}"/${PN}-CVE-2013-1442-XSA-62.patch \ |
142 |
"${FILESDIR}"/${PN}-CVE-2013-4355-XSA-63.patch \ |
143 |
"${FILESDIR}"/${PN}-CVE-2013-4356-XSA-64.patch \ |
144 |
"${FILESDIR}"/${PN}-CVE-2013-4361-XSA-66.patch |
145 |
|
146 |
epatch_user |
147 |
} |
148 |
|
149 |
src_configure() { |
150 |
use debug && myopt="${myopt} debug=y" |
151 |
use pae && myopt="${myopt} pae=y" |
152 |
|
153 |
if use custom-cflags; then |
154 |
filter-flags -fPIE -fstack-protector |
155 |
replace-flags -O3 -O2 |
156 |
else |
157 |
unset CFLAGS |
158 |
fi |
159 |
} |
160 |
|
161 |
src_compile() { |
162 |
# Send raw LDFLAGS so that --as-needed works |
163 |
emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
local myopt |
168 |
use debug && myopt="${myopt} debug=y" |
169 |
use pae && myopt="${myopt} pae=y" |
170 |
|
171 |
# The 'make install' doesn't 'mkdir -p' the subdirs |
172 |
if use efi; then |
173 |
mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die |
174 |
fi |
175 |
|
176 |
emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install |
177 |
} |
178 |
|
179 |
pkg_postinst() { |
180 |
elog "Official Xen Guide and the unoffical wiki page:" |
181 |
elog " http://www.gentoo.org/doc/en/xen-guide.xml" |
182 |
elog " http://en.gentoo-wiki.com/wiki/Xen/" |
183 |
|
184 |
use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" |
185 |
use efi && einfo "The efi executable is installed in boot/efi/gentoo" |
186 |
} |