1 |
commit: 034c3eb523f406231aefe984560edf432b916f81 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 15:39:11 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 15:39:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=034c3eb5 |
7 |
|
8 |
sys-boot/grub: drop 2.06-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/850535 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-boot/grub/grub-2.06-r1.ebuild | 318 -------------------------------------- |
14 |
1 file changed, 318 deletions(-) |
15 |
|
16 |
diff --git a/sys-boot/grub/grub-2.06-r1.ebuild b/sys-boot/grub/grub-2.06-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 7e5bd76ac9d0..000000000000 |
19 |
--- a/sys-boot/grub/grub-2.06-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,318 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-# This ebuild uses 3 special global variables: |
28 |
-# GRUB_BOOTSTRAP: Depend on python and invoke bootstrap (gnulib). |
29 |
-# GRUB_AUTOGEN: Depend on python and invoke the autogen.sh. |
30 |
-# GRUB_AUTORECONF: Inherit autotools and invoke eautoreconf. |
31 |
-# |
32 |
-# When applying patches: |
33 |
-# If gnulib is updated, set GRUB_BOOTSTRAP=1 |
34 |
-# If *.def is updated, set GRUB_AUTOGEN=1 |
35 |
-# If gnulib, *.def, or any autotools files are updated, set GRUB_AUTORECONF=1 |
36 |
-# |
37 |
-# If any of the above applies to a user patch, the user should set the |
38 |
-# corresponding variable in make.conf or the environment. |
39 |
- |
40 |
-if [[ ${PV} == 9999 ]]; then |
41 |
- GRUB_BOOTSTRAP=1 |
42 |
-fi |
43 |
- |
44 |
-GRUB_AUTORECONF=1 |
45 |
-PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} ) |
46 |
-WANT_LIBTOOL=none |
47 |
- |
48 |
-if [[ -n ${GRUB_AUTOGEN} || -n ${GRUB_BOOTSTRAP} ]]; then |
49 |
- inherit python-any-r1 |
50 |
-fi |
51 |
- |
52 |
-if [[ -n ${GRUB_AUTORECONF} ]]; then |
53 |
- inherit autotools |
54 |
-fi |
55 |
- |
56 |
-inherit bash-completion-r1 flag-o-matic multibuild optfeature toolchain-funcs |
57 |
- |
58 |
-if [[ ${PV} != 9999 ]]; then |
59 |
- if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then |
60 |
- # The quote style is to work with <=bash-4.2 and >=bash-4.3 #503860 |
61 |
- MY_P=${P/_/'~'} |
62 |
- SRC_URI="https://alpha.gnu.org/gnu/${PN}/${MY_P}.tar.xz" |
63 |
- S=${WORKDIR}/${MY_P} |
64 |
- else |
65 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" |
66 |
- S=${WORKDIR}/${P%_*} |
67 |
- fi |
68 |
- KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86" |
69 |
-else |
70 |
- inherit git-r3 |
71 |
- EGIT_REPO_URI="https://git.savannah.gnu.org/git/grub.git" |
72 |
-fi |
73 |
- |
74 |
-PATCHES=( |
75 |
- "${FILESDIR}"/grub-2.06-xfs-v4.patch |
76 |
- "${FILESDIR}"/gfxpayload.patch |
77 |
- "${FILESDIR}"/grub-2.02_beta2-KERNEL_GLOBS.patch |
78 |
- "${FILESDIR}"/grub-2.06-test-words.patch |
79 |
- "${FILESDIR}"/grub-2.06-binutils-2.36.patch |
80 |
-) |
81 |
- |
82 |
-DEJAVU=dejavu-sans-ttf-2.37 |
83 |
-UNIFONT=unifont-12.1.02 |
84 |
-SRC_URI+=" fonts? ( mirror://gnu/unifont/${UNIFONT}/${UNIFONT}.pcf.gz ) |
85 |
- themes? ( mirror://sourceforge/dejavu/${DEJAVU}.zip )" |
86 |
- |
87 |
-DESCRIPTION="GNU GRUB boot loader" |
88 |
-HOMEPAGE="https://www.gnu.org/software/grub/" |
89 |
- |
90 |
-# Includes licenses for dejavu and unifont |
91 |
-LICENSE="GPL-3+ BSD MIT fonts? ( GPL-2-with-font-exception ) themes? ( CC-BY-SA-3.0 BitstreamVera )" |
92 |
-SLOT="2/${PVR}" |
93 |
-IUSE="device-mapper doc efiemu +fonts mount nls sdl test +themes truetype libzfs" |
94 |
- |
95 |
-GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot qemu qemu-mips pc uboot xen xen-32 xen-pvh ) |
96 |
-IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}" |
97 |
- |
98 |
-REQUIRED_USE=" |
99 |
- grub_platforms_coreboot? ( fonts ) |
100 |
- grub_platforms_qemu? ( fonts ) |
101 |
- grub_platforms_ieee1275? ( fonts ) |
102 |
- grub_platforms_loongson? ( fonts ) |
103 |
-" |
104 |
- |
105 |
-BDEPEND=" |
106 |
- ${PYTHON_DEPS} |
107 |
- sys-devel/flex |
108 |
- sys-devel/bison |
109 |
- sys-apps/help2man |
110 |
- sys-apps/texinfo |
111 |
- fonts? ( |
112 |
- media-libs/freetype:2 |
113 |
- virtual/pkgconfig |
114 |
- ) |
115 |
- test? ( |
116 |
- app-admin/genromfs |
117 |
- app-arch/cpio |
118 |
- app-arch/lzop |
119 |
- app-emulation/qemu |
120 |
- dev-libs/libisoburn |
121 |
- sys-apps/miscfiles |
122 |
- sys-block/parted |
123 |
- sys-fs/squashfs-tools |
124 |
- ) |
125 |
- themes? ( |
126 |
- app-arch/unzip |
127 |
- media-libs/freetype:2 |
128 |
- virtual/pkgconfig |
129 |
- ) |
130 |
- truetype? ( virtual/pkgconfig ) |
131 |
-" |
132 |
-DEPEND=" |
133 |
- app-arch/xz-utils |
134 |
- >=sys-libs/ncurses-5.2-r5:0= |
135 |
- grub_platforms_emu? ( |
136 |
- sdl? ( media-libs/libsdl ) |
137 |
- ) |
138 |
- device-mapper? ( >=sys-fs/lvm2-2.02.45 ) |
139 |
- libzfs? ( sys-fs/zfs:= ) |
140 |
- mount? ( sys-fs/fuse:0 ) |
141 |
- truetype? ( media-libs/freetype:2= ) |
142 |
- ppc? ( >=sys-apps/ibm-powerpc-utils-1.3.5 ) |
143 |
- ppc64? ( >=sys-apps/ibm-powerpc-utils-1.3.5 ) |
144 |
-" |
145 |
-RDEPEND="${DEPEND} |
146 |
- kernel_linux? ( |
147 |
- grub_platforms_efi-32? ( sys-boot/efibootmgr ) |
148 |
- grub_platforms_efi-64? ( sys-boot/efibootmgr ) |
149 |
- ) |
150 |
- !sys-boot/grub:0 |
151 |
- nls? ( sys-devel/gettext ) |
152 |
-" |
153 |
- |
154 |
-RESTRICT="!test? ( test )" |
155 |
- |
156 |
-QA_EXECSTACK="usr/bin/grub-emu* usr/lib/grub/*" |
157 |
-QA_PRESTRIPPED="usr/lib/grub/.*" |
158 |
-QA_MULTILIB_PATHS="usr/lib/grub/.*" |
159 |
-QA_WX_LOAD="usr/lib/grub/*" |
160 |
- |
161 |
-pkg_setup() { |
162 |
- : |
163 |
-} |
164 |
- |
165 |
-src_unpack() { |
166 |
- if [[ ${PV} == 9999 ]]; then |
167 |
- git-r3_src_unpack |
168 |
- pushd "${P}" >/dev/null || die |
169 |
- local GNULIB_URI="https://git.savannah.gnu.org/git/gnulib.git" |
170 |
- local GNULIB_REVISION=$(source bootstrap.conf >/dev/null; echo "${GNULIB_REVISION}") |
171 |
- git-r3_fetch "${GNULIB_URI}" "${GNULIB_REVISION}" |
172 |
- git-r3_checkout "${GNULIB_URI}" gnulib |
173 |
- popd >/dev/null || die |
174 |
- fi |
175 |
- default |
176 |
-} |
177 |
- |
178 |
-src_prepare() { |
179 |
- default |
180 |
- |
181 |
- sed -i -e /autoreconf/d autogen.sh || die |
182 |
- |
183 |
- if [[ -n ${GRUB_AUTOGEN} || -n ${GRUB_BOOTSTRAP} ]]; then |
184 |
- python_setup |
185 |
- else |
186 |
- export PYTHON=true |
187 |
- fi |
188 |
- |
189 |
- if [[ -n ${GRUB_BOOTSTRAP} ]]; then |
190 |
- eautopoint --force |
191 |
- AUTOPOINT=: AUTORECONF=: ./bootstrap || die |
192 |
- elif [[ -n ${GRUB_AUTOGEN} ]]; then |
193 |
- ./autogen.sh || die |
194 |
- fi |
195 |
- |
196 |
- if [[ -n ${GRUB_AUTORECONF} ]]; then |
197 |
- eautoreconf |
198 |
- fi |
199 |
-} |
200 |
- |
201 |
-grub_do() { |
202 |
- multibuild_foreach_variant run_in_build_dir "$@" |
203 |
-} |
204 |
- |
205 |
-grub_do_once() { |
206 |
- multibuild_for_best_variant run_in_build_dir "$@" |
207 |
-} |
208 |
- |
209 |
-grub_configure() { |
210 |
- local platform |
211 |
- |
212 |
- case ${MULTIBUILD_VARIANT} in |
213 |
- efi*) platform=efi ;; |
214 |
- xen-pvh) platform=xen_pvh ;; |
215 |
- xen*) platform=xen ;; |
216 |
- guessed) ;; |
217 |
- *) platform=${MULTIBUILD_VARIANT} ;; |
218 |
- esac |
219 |
- |
220 |
- case ${MULTIBUILD_VARIANT} in |
221 |
- *-32) |
222 |
- if [[ ${CTARGET:-${CHOST}} == x86_64* ]]; then |
223 |
- local CTARGET=i386 |
224 |
- fi ;; |
225 |
- *-64) |
226 |
- if [[ ${CTARGET:-${CHOST}} == i?86* ]]; then |
227 |
- local CTARGET=x86_64 |
228 |
- local -x TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" |
229 |
- local -x TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" |
230 |
- fi ;; |
231 |
- esac |
232 |
- |
233 |
- local myeconfargs=( |
234 |
- --disable-werror |
235 |
- --program-prefix= |
236 |
- --libdir="${EPREFIX}"/usr/lib |
237 |
- $(use_enable device-mapper) |
238 |
- $(use_enable mount grub-mount) |
239 |
- $(use_enable nls) |
240 |
- $(use_enable themes grub-themes) |
241 |
- $(use_enable truetype grub-mkfont) |
242 |
- $(use_enable libzfs) |
243 |
- $(use_enable sdl grub-emu-sdl) |
244 |
- ${platform:+--with-platform=}${platform} |
245 |
- |
246 |
- # Let configure detect this where supported |
247 |
- $(usex efiemu '' '--disable-efiemu') |
248 |
- ) |
249 |
- |
250 |
- if use fonts; then |
251 |
- ln -rs "${WORKDIR}/${UNIFONT}.pcf" unifont.pcf || die |
252 |
- fi |
253 |
- |
254 |
- if use themes; then |
255 |
- ln -rs "${WORKDIR}/${DEJAVU}/ttf/DejaVuSans.ttf" DejaVuSans.ttf || die |
256 |
- fi |
257 |
- |
258 |
- local ECONF_SOURCE="${S}" |
259 |
- econf "${myeconfargs[@]}" |
260 |
-} |
261 |
- |
262 |
-src_configure() { |
263 |
- # Bug 508758. |
264 |
- replace-flags -O3 -O2 |
265 |
- |
266 |
- # Workaround for bug 829165. |
267 |
- filter-ldflags -pie |
268 |
- |
269 |
- # We don't want to leak flags onto boot code. |
270 |
- export HOST_CCASFLAGS=${CCASFLAGS} |
271 |
- export HOST_CFLAGS=${CFLAGS} |
272 |
- export HOST_CPPFLAGS=${CPPFLAGS} |
273 |
- export HOST_LDFLAGS=${LDFLAGS} |
274 |
- unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS |
275 |
- |
276 |
- tc-ld-disable-gold #439082 #466536 #526348 |
277 |
- export TARGET_LDFLAGS="${TARGET_LDFLAGS} ${LDFLAGS}" |
278 |
- unset LDFLAGS |
279 |
- |
280 |
- tc-export CC NM OBJCOPY RANLIB STRIP |
281 |
- tc-export BUILD_CC BUILD_PKG_CONFIG |
282 |
- |
283 |
- MULTIBUILD_VARIANTS=() |
284 |
- local p |
285 |
- for p in "${GRUB_ALL_PLATFORMS[@]}"; do |
286 |
- use "grub_platforms_${p}" && MULTIBUILD_VARIANTS+=( "${p}" ) |
287 |
- done |
288 |
- [[ ${#MULTIBUILD_VARIANTS[@]} -eq 0 ]] && MULTIBUILD_VARIANTS=( guessed ) |
289 |
- grub_do grub_configure |
290 |
-} |
291 |
- |
292 |
-src_compile() { |
293 |
- # Sandbox bug 404013. |
294 |
- use libzfs && addpredict /etc/dfs:/dev/zfs |
295 |
- |
296 |
- grub_do emake |
297 |
- use doc && grub_do_once emake -C docs html |
298 |
-} |
299 |
- |
300 |
-src_test() { |
301 |
- # The qemu dependency is a bit complex. |
302 |
- # You will need to adjust QEMU_SOFTMMU_TARGETS to match the cpu/platform. |
303 |
- grub_do emake check |
304 |
-} |
305 |
- |
306 |
-src_install() { |
307 |
- grub_do emake install DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" |
308 |
- use doc && grub_do_once emake -C docs install-html DESTDIR="${D}" |
309 |
- |
310 |
- einstalldocs |
311 |
- |
312 |
- insinto /etc/default |
313 |
- newins "${FILESDIR}"/grub.default-3 grub |
314 |
- |
315 |
- # https://bugs.gentoo.org/231935 |
316 |
- dostrip -x /usr/lib/grub |
317 |
-} |
318 |
- |
319 |
-pkg_postinst() { |
320 |
- elog "For information on how to configure GRUB2 please refer to the guide:" |
321 |
- elog " https://wiki.gentoo.org/wiki/GRUB2_Quick_Start" |
322 |
- |
323 |
- if has_version 'sys-boot/grub:0'; then |
324 |
- elog "A migration guide for GRUB Legacy users is available:" |
325 |
- elog " https://wiki.gentoo.org/wiki/GRUB2_Migration" |
326 |
- fi |
327 |
- |
328 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
329 |
- elog |
330 |
- optfeature "detecting other operating systems (grub-mkconfig)" sys-boot/os-prober |
331 |
- optfeature "creating rescue media (grub-mkrescue)" dev-libs/libisoburn |
332 |
- optfeature "enabling RAID device detection" sys-fs/mdadm |
333 |
- fi |
334 |
- |
335 |
- if has_version sys-boot/os-prober; then |
336 |
- ewarn "Due to security concerns, os-prober is disabled by default." |
337 |
- ewarn "Set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub to enable it." |
338 |
- fi |
339 |
-} |