1 |
commit: ca48a787952aaa0e8c334e57a6057aaaf925f450 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 15 14:04:25 2019 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 15 14:05:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca48a787 |
7 |
|
8 |
app-emulation/xen-pvgrub: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
11 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
12 |
|
13 |
app-emulation/xen-pvgrub/Manifest | 1 - |
14 |
app-emulation/xen-pvgrub/xen-pvgrub-4.11.2.ebuild | 163 ---------------------- |
15 |
2 files changed, 164 deletions(-) |
16 |
|
17 |
diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest |
18 |
index e349c300733..f3dad7f0fd3 100644 |
19 |
--- a/app-emulation/xen-pvgrub/Manifest |
20 |
+++ b/app-emulation/xen-pvgrub/Manifest |
21 |
@@ -3,7 +3,6 @@ DIST lwip-1.3.0.tar.gz 398933 BLAKE2B 3567a593eec3d247213daaaab57d9456c9cae50329 |
22 |
DIST newlib-1.16.0.tar.gz 12024353 BLAKE2B 26d3308148fb99baf8ad02eee4cc699cfac690100ea63aaa4be03b86d12dade238478342514bd083cbc3d27964ac42eb8dae3873fdac5ff2c593fc4fb39b2309 SHA512 40eb96bbc6736a16b6399e0cdb73e853d0d90b685c967e77899183446664d64570277a633fdafdefc351b46ce210a99115769a1d9f47ac749d7e82837d4d1ac3 |
23 |
DIST pciutils-2.2.9.tar.bz2 212265 BLAKE2B 014b664e90c64e7255c9e21fc25a2cc60d57f47ce282fc0331a0481a460b237783bd3774dd0689e1596d4a0be0d2889faad904da01a6f02147464bce1d1b1bc0 SHA512 2b3d98d027e46d8c08037366dde6f0781ca03c610ef2b380984639e4ef39899ed8d8b8e4cd9c9dc54df101279b95879bd66bfd4d04ad07fef41e847ea7ae32b5 |
24 |
DIST polarssl-1.1.4-gpl.tgz 611340 BLAKE2B 613da06dda9e4b86db5a4d616a0a0afee98c907c3c6b352eed3d9e500fc5739e62eb4f6fc32ff02579c6a6de9bd49fcd2c8bd8b2d158a5050cbaa82118d61ef0 SHA512 88da614e4d3f4409c4fd3bb3e44c7587ba051e3fed4e33d526069a67e8180212e1ea22da984656f50e290049f60ddca65383e5983c0f8884f648d71f698303ad |
25 |
-DIST xen-4.11.2.tar.gz 25164925 BLAKE2B 11adea16d93235af5807e6e3784e0fc36ce34f274a85d1976a5c8ad36a323437216b0cf6bb6cb13b00e1e838e319a9f8f4b9c417870eef9ed660f22274d81310 SHA512 48d3d926d35eb56c79c06d0abc6e6be2564fadb43367cc7f46881c669a75016707672179c2cca1c4cfb14af2cefd46e2e7f99470cddf7df2886d8435a2de814e |
26 |
DIST xen-4.11.3-upstream-patches-0.tar.xz 3692 BLAKE2B f1fb200020b6e8767cb4b900e3468edbebbd61c8147a13d2102e425f8c5f0016b95a1f51fb26bd3560c97b73bbd2935d117ce08f92744fd02a97658cd0168ff8 SHA512 ebb64219b62e418276056eae6c47561366c0a22afaa8750a56a252e84b84c4644189a22788cf176d7d2ca5ceb84d307afa884f373f54db693f0182d951353ab2 |
27 |
DIST xen-4.11.3.tar.gz 25180826 BLAKE2B 56041bcef9adec754ee21032cf849745c6011224463f73b763ea186b37460f8456cb1f10614cb51ee4d2d77f03cba311f025e8999687888d15ac59cc122cd172 SHA512 2204e490e9fc357a05983a9bf4e7345e1d364fe00400ce473988dcb9ca7d4e2b921fe10f095cbbc64248130a92d22c6f0d154dcae250a57a7f915df32e3dc436 |
28 |
DIST xen-4.12.1.tar.gz 26970584 BLAKE2B ceab2af3d36b72d838d7b4f58f6855c97cf05282a4ea3c82eda29b8945ee20563845b7be02884bf0a061a633fb2b3016a2f7396ce34d9b3d93f90d6ee6d449ed SHA512 be15d3af6b109771aaf59b3621e4e1560b7d9a963d9b7f6a1f6f4a1c907fd97434b060c15f75849b44fbda33f26eb51b030d14d068c6ad5103ad240fe7a98f40 |
29 |
|
30 |
diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.11.2.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.11.2.ebuild |
31 |
deleted file mode 100644 |
32 |
index b9022166805..00000000000 |
33 |
--- a/app-emulation/xen-pvgrub/xen-pvgrub-4.11.2.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,163 +0,0 @@ |
36 |
-# Copyright 1999-2019 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=7 |
40 |
- |
41 |
-PYTHON_COMPAT=( python2_7 ) |
42 |
-PYTHON_REQ_USE='xml,threads' |
43 |
- |
44 |
-inherit flag-o-matic multilib python-single-r1 toolchain-funcs |
45 |
- |
46 |
-XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles" |
47 |
-LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci |
48 |
-GRUB_URL=mirror://gnu-alpha/grub |
49 |
- |
50 |
-UPSTREAM_VER= |
51 |
-[[ -n ${UPSTREAM_VER} ]] && \ |
52 |
- UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P/-pvgrub/}-upstream-patches-${UPSTREAM_VER}.tar.xz |
53 |
- https://github.com/hydrapolic/gentoo-dist/raw/master/xen/${P/-pvgrub/}-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 |
- # eapply 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 || die |
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} || die |
98 |
- einfo "zlib Makefile edited" |
99 |
- |
100 |
- cd "${WORKDIR}" || die |
101 |
- tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz || die |
102 |
- tar czp grub-0.97 -f grub-0.97.tar.gz || die |
103 |
- tar czp lwip -f lwip-1.3.0.tar.gz || die |
104 |
- tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz || die |
105 |
- tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz || die |
106 |
- mv $set "${S}"/stubdom/ || die |
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 |
- eapply "${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 |
- eapply "${FILESDIR}"/${PN/-pvgrub/}-4.10-externals.patch |
138 |
- |
139 |
- # fix jobserver in Makefile |
140 |
- eapply "${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 |
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/libs |
167 |
- |
168 |
- if use x86; then |
169 |
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
170 |
- XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
171 |
- elif use amd64; then |
172 |
- emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
173 |
- XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub |
174 |
- if has_multilib_profile; then |
175 |
- multilib_toolchain_setup x86 |
176 |
- emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ |
177 |
- XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub |
178 |
- fi |
179 |
- fi |
180 |
-} |
181 |
- |
182 |
-src_install() { |
183 |
- if use x86; then |
184 |
- emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
185 |
- fi |
186 |
- if use amd64; then |
187 |
- emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub |
188 |
- if has_multilib_profile; then |
189 |
- emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub |
190 |
- fi |
191 |
- fi |
192 |
-} |
193 |
- |
194 |
-pkg_postinst() { |
195 |
- elog "Official Xen Guide and the offical wiki page:" |
196 |
- elog "https://wiki.gentoo.org/wiki/Xen" |
197 |
- elog "https://wiki.xen.org/wiki/Main_Page" |
198 |
-} |