Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xen-pvgrub/
Date: Mon, 09 Apr 2018 00:03:07
Message-Id: 1523232170.835e2f7cc9c59688ae198f0a72787aaecc061766.bman@gentoo
1 commit: 835e2f7cc9c59688ae198f0a72787aaecc061766
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 9 00:01:13 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 9 00:02:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835e2f7c
7
8 app-emulation/xen-pvgrub: drop vulnerable
9
10 Bug: https://bugs.gentoo.org/641566
11 Package-Manager: Portage-2.3.28, Repoman-2.3.9
12
13 app-emulation/xen-pvgrub/Manifest | 2 -
14 .../xen-pvgrub/xen-pvgrub-4.8.2-r1.ebuild | 161 ---------------------
15 app-emulation/xen-pvgrub/xen-pvgrub-4.9.0.ebuild | 161 ---------------------
16 3 files changed, 324 deletions(-)
17
18 diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest
19 index f09628f9db0..f9ce9279173 100644
20 --- a/app-emulation/xen-pvgrub/Manifest
21 +++ b/app-emulation/xen-pvgrub/Manifest
22 @@ -3,7 +3,5 @@ DIST lwip-1.3.0.tar.gz 398933 BLAKE2B 3567a593eec3d247213daaaab57d9456c9cae50329
23 DIST newlib-1.16.0.tar.gz 12024353 BLAKE2B 26d3308148fb99baf8ad02eee4cc699cfac690100ea63aaa4be03b86d12dade238478342514bd083cbc3d27964ac42eb8dae3873fdac5ff2c593fc4fb39b2309 SHA512 40eb96bbc6736a16b6399e0cdb73e853d0d90b685c967e77899183446664d64570277a633fdafdefc351b46ce210a99115769a1d9f47ac749d7e82837d4d1ac3
24 DIST pciutils-2.2.9.tar.bz2 212265 BLAKE2B 014b664e90c64e7255c9e21fc25a2cc60d57f47ce282fc0331a0481a460b237783bd3774dd0689e1596d4a0be0d2889faad904da01a6f02147464bce1d1b1bc0 SHA512 2b3d98d027e46d8c08037366dde6f0781ca03c610ef2b380984639e4ef39899ed8d8b8e4cd9c9dc54df101279b95879bd66bfd4d04ad07fef41e847ea7ae32b5
25 DIST polarssl-1.1.4-gpl.tgz 611340 BLAKE2B 613da06dda9e4b86db5a4d616a0a0afee98c907c3c6b352eed3d9e500fc5739e62eb4f6fc32ff02579c6a6de9bd49fcd2c8bd8b2d158a5050cbaa82118d61ef0 SHA512 88da614e4d3f4409c4fd3bb3e44c7587ba051e3fed4e33d526069a67e8180212e1ea22da984656f50e290049f60ddca65383e5983c0f8884f648d71f698303ad
26 -DIST xen-4.8.2.tar.gz 22522336 BLAKE2B 2c9da971622b4e52fe78fa029107bb1c5f945a63605406493df607c410c6f2a8c2cdb38b1eb30c1bc1c8bc6e5620efad977c3ba55e04c579c01d51f0104afcce SHA512 7805531f73d23ecfff3439770e62d387f4254a444875670d53a0a739323e5d4d8f8fcc478f8936ee1ae8aff3e0229549e47c01c606365a8ce060dd5c503e87da
27 -DIST xen-4.9.0.tar.gz 23361741 BLAKE2B 1cfebb791ca5e51eda9b86a5d98e0883fab1554f5ac805fc065916fbbd3695e6b0f11ca75935a8f973735cc8dd83e38fe4a670d8489010be865be49d8fc1a341 SHA512 97f8075c49ef9ec0adbe95106c0cff4f9379578fd568777697565476c3fd948335d72ddcacf8be65fd9db219c0a35dcdc007f355f7e5874dd950fd4c0a0f966f
28 DIST xen-4.9.1.tar.gz 23368303 BLAKE2B 4cfddb351c9a4aa08227138dc1afa921f3d1880048f897428226da38eff9470cd81ae9896f174583048dad0ba8d5c1426df58b029115ba1623366d1980630c0d SHA512 9d22f0aa5dcd01a1c105d17c14bce570cc597e884ddb9b4a46b80a72f647625b76ae5213cede423d0458c14e1906983595a9269bb6e6ff2e9e7e4dea840f4274
29 DIST zlib-1.2.3.tar.gz 496597 BLAKE2B 603020b70cd52b83e48bde420b86e2acfd29d69bf7476eecbeeb07d1b8bcab703d2cbd3eab77772990bddb8c268f13594592ce985798d49e2d6ba25104d49f22 SHA512 021b958fcd0d346c4ba761bcf0cc40f3522de6186cf5a0a6ea34a70504ce9622b1c2626fce40675bc8282cf5f5ade18473656abc38050f72f5d6480507a2106e
30
31 diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.8.2-r1.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.8.2-r1.ebuild
32 deleted file mode 100644
33 index 78a162cc1c8..00000000000
34 --- a/app-emulation/xen-pvgrub/xen-pvgrub-4.8.2-r1.ebuild
35 +++ /dev/null
36 @@ -1,161 +0,0 @@
37 -# Copyright 1999-2017 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -
42 -PYTHON_COMPAT=( python2_7 )
43 -PYTHON_REQ_USE='xml,threads'
44 -
45 -inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs
46 -
47 -XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
48 -LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
49 -GRUB_URL=mirror://gnu-alpha/grub
50 -
51 -UPSTREAM_VER=
52 -[[ -n ${UPSTREAM_VER} ]] && \
53 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
54 -
55 -SRC_URI="
56 - https://downloads.xenproject.org/release/xen/${PV}/xen-${PV}.tar.gz
57 - $GRUB_URL/grub-0.97.tar.gz
58 - $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
59 - $LIBPCI_URL/pciutils-2.2.9.tar.bz2
60 - $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
61 - $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
62 - $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz
63 - ${UPSTREAM_PATCHSET_URI}"
64 -
65 -S="${WORKDIR}/xen-${PV}"
66 -
67 -DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
68 -HOMEPAGE="https://www.xenproject.org"
69 -LICENSE="GPL-2"
70 -SLOT="0"
71 -KEYWORDS="amd64 x86"
72 -IUSE="custom-cflags"
73 -
74 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
75 -
76 -DEPEND="sys-devel/gettext
77 - sys-devel/bin86
78 - sys-apps/texinfo
79 - x11-libs/pixman"
80 -
81 -RDEPEND="${PYTHON_DEPS}
82 - >=app-emulation/xen-tools-${PV}"
83 -
84 -pkg_setup() {
85 - python-single-r1_pkg_setup
86 -}
87 -
88 -retar-externals() {
89 - # Purely to unclutter src_prepare
90 - local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
91 -
92 - # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
93 - sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
94 - -i "${WORKDIR}"/zlib-1.2.3/configure
95 - sed -e 's:^AR=ar rc:AR=ar:' \
96 - -e s':$(AR) $@:$(AR) rc $@:' \
97 - -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
98 - einfo "zlib Makefile edited"
99 -
100 - cd "${WORKDIR}"
101 - tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
102 - tar czp grub-0.97 -f grub-0.97.tar.gz
103 - tar czp lwip -f lwip-1.3.0.tar.gz
104 - tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
105 - tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
106 - mv $set "${S}"/stubdom/
107 - einfo "tarballs moved to source"
108 -}
109 -
110 -src_prepare() {
111 - # Upstream's patchset
112 - if [[ -n ${UPSTREAM_VER} ]]; then
113 - einfo "Try to apply Xen Upstream patch set"
114 - EPATCH_SUFFIX="patch" \
115 - EPATCH_FORCE="yes" \
116 - EPATCH_OPTS="-p1" \
117 - epatch "${WORKDIR}"/patches-upstream
118 - fi
119 -
120 - # if the user *really* wants to use their own custom-cflags, let them
121 - if use custom-cflags; then
122 - einfo "User wants their own CFLAGS - removing defaults"
123 - # try and remove all the default custom-cflags
124 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
125 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
126 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
127 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
128 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
129 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
130 - -i {} \;
131 - fi
132 -
133 - # Patch the unmergeable newlib, fix most of the leftover gcc QA issues
134 - cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
135 -
136 - # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
137 - epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
138 -
139 - # fix jobserver in Makefile
140 - epatch "${FILESDIR}"/${PN}-4.8-jserver.patch
141 -
142 - #Substitute for internal downloading. pciutils copied only due to the only .bz2
143 - cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
144 - retar-externals || die "re-tar procedure failed"
145 -
146 - default
147 -}
148 -
149 -src_configure() {
150 - local myconf="--prefix=${PREFIX}/usr \
151 - --libdir=${PREFIX}/usr/$(get_libdir) \
152 - --libexecdir=${PREFIX}/usr/libexec \
153 - --disable-werror \
154 - --disable-xen"
155 -
156 - econf ${myconf}
157 -}
158 -
159 -src_compile() {
160 - use custom-cflags || unset CFLAGS
161 - if test-flag-CC -fno-strict-overflow; then
162 - append-flags -fno-strict-overflow
163 - fi
164 -
165 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
166 -
167 - if use x86; then
168 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
169 - XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
170 - elif use amd64; then
171 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
172 - XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
173 - if has_multilib_profile; then
174 - multilib_toolchain_setup x86
175 - emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
176 - XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
177 - fi
178 - fi
179 -}
180 -
181 -src_install() {
182 - if use x86; then
183 - emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
184 - fi
185 - if use amd64; then
186 - emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
187 - if has_multilib_profile; then
188 - emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
189 - fi
190 - fi
191 -}
192 -
193 -pkg_postinst() {
194 - elog "Official Xen Guide and the offical wiki page:"
195 - elog "https://wiki.gentoo.org/wiki/Xen"
196 - elog "https://wiki.xen.org/wiki/Main_Page"
197 -}
198
199 diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.9.0.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.9.0.ebuild
200 deleted file mode 100644
201 index 4f3af9d4100..00000000000
202 --- a/app-emulation/xen-pvgrub/xen-pvgrub-4.9.0.ebuild
203 +++ /dev/null
204 @@ -1,161 +0,0 @@
205 -# Copyright 1999-2017 Gentoo Foundation
206 -# Distributed under the terms of the GNU General Public License v2
207 -
208 -EAPI=6
209 -
210 -PYTHON_COMPAT=( python2_7 )
211 -PYTHON_REQ_USE='xml,threads'
212 -
213 -inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs
214 -
215 -XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
216 -LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
217 -GRUB_URL=mirror://gnu-alpha/grub
218 -
219 -UPSTREAM_VER=
220 -[[ -n ${UPSTREAM_VER} ]] && \
221 - UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
222 -
223 -SRC_URI="
224 - https://downloads.xenproject.org/release/xen/${PV}/xen-${PV}.tar.gz
225 - $GRUB_URL/grub-0.97.tar.gz
226 - $XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
227 - $LIBPCI_URL/pciutils-2.2.9.tar.bz2
228 - $XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
229 - $XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
230 - $XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz
231 - ${UPSTREAM_PATCHSET_URI}"
232 -
233 -S="${WORKDIR}/xen-${PV}"
234 -
235 -DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
236 -HOMEPAGE="https://www.xenproject.org"
237 -LICENSE="GPL-2"
238 -SLOT="0"
239 -KEYWORDS="~amd64 ~x86"
240 -IUSE="custom-cflags"
241 -
242 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
243 -
244 -DEPEND="sys-devel/gettext
245 - sys-devel/bin86
246 - sys-apps/texinfo
247 - x11-libs/pixman"
248 -
249 -RDEPEND="${PYTHON_DEPS}
250 - >=app-emulation/xen-tools-${PV}"
251 -
252 -pkg_setup() {
253 - python-single-r1_pkg_setup
254 -}
255 -
256 -retar-externals() {
257 - # Purely to unclutter src_prepare
258 - local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
259 -
260 - # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
261 - sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
262 - -i "${WORKDIR}"/zlib-1.2.3/configure
263 - sed -e 's:^AR=ar rc:AR=ar:' \
264 - -e s':$(AR) $@:$(AR) rc $@:' \
265 - -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
266 - einfo "zlib Makefile edited"
267 -
268 - cd "${WORKDIR}"
269 - tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
270 - tar czp grub-0.97 -f grub-0.97.tar.gz
271 - tar czp lwip -f lwip-1.3.0.tar.gz
272 - tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
273 - tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
274 - mv $set "${S}"/stubdom/
275 - einfo "tarballs moved to source"
276 -}
277 -
278 -src_prepare() {
279 - # Upstream's patchset
280 - if [[ -n ${UPSTREAM_VER} ]]; then
281 - einfo "Try to apply Xen Upstream patch set"
282 - EPATCH_SUFFIX="patch" \
283 - EPATCH_FORCE="yes" \
284 - EPATCH_OPTS="-p1" \
285 - epatch "${WORKDIR}"/patches-upstream
286 - fi
287 -
288 - # if the user *really* wants to use their own custom-cflags, let them
289 - if use custom-cflags; then
290 - einfo "User wants their own CFLAGS - removing defaults"
291 - # try and remove all the default custom-cflags
292 - find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
293 - -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
294 - -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
295 - -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
296 - -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
297 - -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
298 - -i {} \;
299 - fi
300 -
301 - # Patch the unmergeable newlib, fix most of the leftover gcc QA issues
302 - cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
303 -
304 - # Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
305 - epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
306 -
307 - # fix jobserver in Makefile
308 - epatch "${FILESDIR}"/${PN}-4.8-jserver.patch
309 -
310 - #Substitute for internal downloading. pciutils copied only due to the only .bz2
311 - cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
312 - retar-externals || die "re-tar procedure failed"
313 -
314 - default
315 -}
316 -
317 -src_configure() {
318 - local myconf="--prefix=${PREFIX}/usr \
319 - --libdir=${PREFIX}/usr/$(get_libdir) \
320 - --libexecdir=${PREFIX}/usr/libexec \
321 - --disable-werror \
322 - --disable-xen"
323 -
324 - econf ${myconf}
325 -}
326 -
327 -src_compile() {
328 - use custom-cflags || unset CFLAGS
329 - if test-flag-CC -fno-strict-overflow; then
330 - append-flags -fno-strict-overflow
331 - fi
332 -
333 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
334 -
335 - if use x86; then
336 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
337 - XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
338 - elif use amd64; then
339 - emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
340 - XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
341 - if has_multilib_profile; then
342 - multilib_toolchain_setup x86
343 - emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
344 - XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
345 - fi
346 - fi
347 -}
348 -
349 -src_install() {
350 - if use x86; then
351 - emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
352 - fi
353 - if use amd64; then
354 - emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
355 - if has_multilib_profile; then
356 - emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
357 - fi
358 - fi
359 -}
360 -
361 -pkg_postinst() {
362 - elog "Official Xen Guide and the offical wiki page:"
363 - elog "https://wiki.gentoo.org/wiki/Xen"
364 - elog "https://wiki.xen.org/wiki/Main_Page"
365 -}