Gentoo Archives: gentoo-commits

From: Sam Jorna <wraeth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
Date: Thu, 30 Aug 2018 09:12:47
Message-Id: 1535620343.231fac686e1f7a78435194132c15c22738834f0e.wraeth@gentoo
1 commit: 231fac686e1f7a78435194132c15c22738834f0e
2 Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 30 09:11:14 2018 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 30 09:12:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231fac68
7
8 sys-boot/refind: remove old
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 sys-boot/refind/Manifest | 1 -
13 sys-boot/refind/refind-0.10.8.ebuild | 197 -----------------------------------
14 2 files changed, 198 deletions(-)
15
16 diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
17 index a2943776067..c1bfe87d3f8 100644
18 --- a/sys-boot/refind/Manifest
19 +++ b/sys-boot/refind/Manifest
20 @@ -1,4 +1,3 @@
21 DIST refind-src-0.10.4.tar.gz 3970380 BLAKE2B 0d14c005d3e93a1f0008b6c65e34eb6391c4a4a488b4fa7842c8f0b68eb2cc5be150c8718f01a65454db7b86ffa5873a3d1a96429eaed0cb92c1d29c8d2f7dcd SHA512 a75a6210ee51427c474e69c2de8c719545b2599c19f1c7541048b77ab1996a0e4b4b5fd4840f6240cd6704e5f5338cbaff432d7dc5ec4042854e26d6df18bed5
22 -DIST refind-src-0.10.8.tar.gz 4059265 BLAKE2B 597d8df1cb74f6f686c5b702c02eb2712adb2076934f1ffc746ca9aaf3d349d6384c8aa09d17fe440b656cc054ee928131f8ecbc059fe0b654e9c32799e54e86 SHA512 a4576920dd68a9436ee6d008787104842e192c6a5eb52cc580258bc8e13daadf170c21270e8cfd86f27733e3e86b050af9102d35c939677b1f1c3627aeeafb32
23 DIST refind-src-0.11.2.tar.gz 4533034 BLAKE2B fa05781fc1d87d314677f8e670bd7282b591fd3b6f4a5863e81cb962fdb773c774faabb6c45544b0659c8d5c4ef7ce1dba8d798a4caa97364ad7aa2532a42050 SHA512 796d86f05152d93340773c2dfbae0ca50ab036373ebed60fcc80404ee269ef4bc100df4b141d555d3363b820c3e9234fc0cf637791061281c86329958dca3479
24 DIST refind-src-0.11.3.tar.gz 3792206 BLAKE2B 369b25dbc97d83f9143ccbe19e89b5975f0796f1e4a2decfc124e4b45c5ef1db8f3e2bb83413f596ca28e82e67b0b9c5682b557a5422e3146780cec151d2a36e SHA512 96907b79e1c9c8199c62058bb6851fa5d6f158802f3777ba19a62c6c0d7d5b49132754bcafa925510fd21c8bafe8ce393117070a628baf4c277fa5f8f536b797
25
26 diff --git a/sys-boot/refind/refind-0.10.8.ebuild b/sys-boot/refind/refind-0.10.8.ebuild
27 deleted file mode 100644
28 index 9978fe0dbf0..00000000000
29 --- a/sys-boot/refind/refind-0.10.8.ebuild
30 +++ /dev/null
31 @@ -1,197 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -inherit toolchain-funcs flag-o-matic versionator
38 -
39 -DESCRIPTION="The UEFI Boot Manager by Rod Smith"
40 -HOMEPAGE="https://www.rodsbooks.com/refind/"
41 -
42 -SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${PN}-src-${PV}.tar.gz"
43 -
44 -LICENSE="BSD GPL-2 GPL-3 FDL-1.3"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
48 -IUSE="${FS_USE} -gnuefi doc -custom-cflags"
49 -
50 -DEPEND="gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
51 - !gnuefi? ( >=sys-boot/udk-2015 )"
52 -
53 -DOCS="NEWS.txt README.txt docs/refind docs/Styles"
54 -
55 -pkg_pretend() {
56 - if use custom-cflags; then
57 - ewarn
58 - ewarn "You have enabled building with USE=custom-cflags. Be aware that"
59 - ewarn "using this can result in EFI binaries that fail to run and may"
60 - ewarn "fail to build at all. This is strongly advised against by upstream."
61 - ewarn
62 - ewarn "See https://bugs.gentoo.org/598587#c3 for more information"
63 - ewarn
64 - fi
65 -}
66 -
67 -pkg_setup() {
68 - if use x86 ; then
69 - export EFIARCH=ia32
70 - export BUILDARCH=ia32
71 - elif use amd64; then
72 - export EFIARCH=x64
73 - export BUILDARCH=x86_64
74 - else
75 - # Try to support anyway
76 - export BUILDARCH=$( uname -m | sed s,i[3456789]86,ia32, )
77 - if [[ ${BUILDARCH} == "x86_64" ]] ; then
78 - export EFIARCH=x64
79 - else
80 - export EFIARCH=${ARCH}
81 - fi
82 - fi
83 -}
84 -
85 -src_prepare() {
86 - default
87 -
88 - # bug 598647 - PIE not supported
89 - sed -e 's:CFLAGS =:& -fno-PIE:' -i "${S}/Make.common" || die
90 -
91 - local f
92 - for f in "${S}"/*/Make.tiano "${S}"/Make.common; do
93 - sed -i -e 's/^\(include .*target.txt.*\)$/#\1/' \
94 - -e 's@^\(TIANO_INCLUDE_DIRS\s*=\s*-I\s*\).*$@\1/usr/include/udk \\@' \
95 - -e '/^\s*-I \$(EDK2BASE).*$/d' \
96 - "${f}" || die "Failed to patch Tianocore make file in" \
97 - $(basename $(dirname ${f}))
98 - done
99 - for f in "${S}"/*/Make.tiano; do
100 - sed -i -e 's@^\(EFILIB\s*=\s*\).*$@\1/usr/lib@' \
101 - -e 's@\$(EFILIB).*/\([^/]*\).lib@-l\1@' \
102 - -e 's/\(--start-group\s*\$(ALL_EFILIBS)\)/-L \$(EFILIB) \1/' \
103 - "${f}" || die "Failed to patch Tianocore make file in" \
104 - $(basename $(dirname ${f}))
105 - done
106 - sed -i -e '/Guids/i#include "AutoGen.h"\n' "${S}/filesystems/AutoGen.c" \
107 - || die "Failed to patch AutoGen.c"
108 - for f in "${S}"/*/AutoGen.c; do
109 - cat >>"${f}" <<-EOF || die "Failed to patch AutoGen.c"
110 -
111 - #define _PCD_TOKEN_PcdFixedDebugPrintErrorLevel 11U
112 - #define _PCD_SIZE_PcdFixedDebugPrintErrorLevel 4
113 - #define _PCD_GET_MODE_SIZE_PcdFixedDebugPrintErrorLevel _PCD_SIZE_PcdFixedDebugPrintErrorLevel
114 - #define _PCD_VALUE_PcdFixedDebugPrintErrorLevel 0xFFFFFFFFU
115 - GLOBAL_REMOVE_IF_UNREFERENCED const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel = _PCD_VALUE_PcdFixedDebugPrintErrorLevel;
116 - extern const UINT32 _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel;
117 - #define _PCD_GET_MODE_32_PcdFixedDebugPrintErrorLevel _gPcd_FixedAtBuild_PcdFixedDebugPrintErrorLevel
118 - //#define _PCD_SET_MODE_32_PcdFixedDebugPrintErrorLevel ASSERT(FALSE) // It is not allowed to set value for a FIXED_AT_BUILD PCD
119 - EOF
120 - done
121 -}
122 -
123 -src_compile() {
124 - # Prepare flags
125 - local pecoff_header_size
126 - [[ $EFIARCH == x64 ]] && pecoff_header_size='0x228' \
127 - || pecoff_header_size='0x220'
128 - local make_flags=(
129 - ARCH="${BUILDARCH}"
130 - GENFW="/usr/bin/GenFw"
131 - CC="$(tc-getCC)"
132 - AS="$(tc-getAS)"
133 - LD="$(tc-getLD)"
134 - AR="$(tc-getAR)"
135 - RANLIB="$(tc-getRANLIB)"
136 - OBJCOPY="$(tc-getOBJCOPY)"
137 - GNUEFI_LDFLAGS="-T \$(GNUEFI_LDSCRIPT) -shared -nostdlib -Bsymbolic \
138 - -L\$(EFILIB) -L\$(GNUEFILIB) \$(CRTOBJS) -znocombreloc -zdefs"
139 - TIANO_LDSCRIPT="/usr/lib/GccBase.lds"
140 - TIANO_LDFLAGS="-n -q --gc-sections -nostdlib \
141 - --script=\$(TIANO_LDSCRIPT) \
142 - --defsym=PECOFF_HEADER_SIZE=${pecoff_header_size} \
143 - --entry \$(ENTRYPOINT) -u \$(ENTRYPOINT) -m \$(LD_CODE)"
144 - )
145 -
146 - # Make main EFI
147 - local all_target
148 - use gnuefi && all_target="gnuefi" || all_target="tiano"
149 -
150 - if use custom-cflags; then
151 - emake CFLAGS="${CFLAGS}" "${make_flags[@]}" ${all_target}
152 - else
153 - emake "${make_flags[@]}" ${all_target}
154 - fi
155 -
156 - # Make filesystem drivers
157 - local gnuefi_target
158 - use gnuefi && gnuefi_target="_gnuefi"
159 - local fs
160 - for fs in ${FS_USE}; do
161 - fs=${fs#+}
162 - if use "${fs}"; then
163 - einfo "Building ${fs} filesystem driver"
164 - if use custom-cflags; then
165 - emake CFLAGS="${CFLAGS}" "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
166 - else
167 - emake "${make_flags[@]}" -C "${S}/filesystems" ${fs}${gnuefi_target}
168 - fi
169 - fi
170 - done
171 -}
172 -
173 -src_install() {
174 - exeinto "/usr/share/${P}"
175 - doexe refind-install
176 - dosym "/usr/share/${P}/refind-install" "/usr/sbin/refind-install"
177 -
178 - dodoc "${S}"/{COPYING.txt,LICENSE.txt,CREDITS.txt}
179 - if use doc; then
180 - doman "${S}/docs/man/"*
181 - dodoc -r ${DOCS}
182 - fi
183 -
184 - insinto "/usr/share/${P}/refind"
185 - doins "${S}/refind/refind_${EFIARCH}.efi"
186 - doins "${S}/refind.conf-sample"
187 - doins -r images icons fonts banners
188 -
189 - if [[ -d "${S}/drivers_${EFIARCH}" ]]; then
190 - doins -r "${S}/drivers_${EFIARCH}"
191 - fi
192 -
193 - insinto "/usr/share/${P}/refind/tools_${EFIARCH}"
194 - doins "${S}/gptsync/gptsync_${EFIARCH}.efi"
195 -
196 - insinto "/etc/refind.d"
197 - doins -r "${S}/keys"
198 -
199 - dosbin "${S}/mkrlconf"
200 - dosbin "${S}/mvrefind"
201 - dosbin "${S}/refind-mkdefault"
202 -}
203 -
204 -pkg_postinst() {
205 - elog "rEFInd has been built and installed into ${EROOT%/}/usr/share/${P}"
206 - elog "You will need to use the command 'refind-install' to install"
207 - elog "the binaries into your EFI System Partition"
208 - elog ""
209 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
210 - elog "refind-install requires additional packages to be fully functional:"
211 - elog " app-crypt/sbsigntools for binary signing for use with SecureBoot"
212 - elog " sys-boot/efibootmgr for writing to NVRAM"
213 - elog " sys-block/parted for automatic ESP location and mount"
214 - elog ""
215 - elog "refind-mkdefault requires >=dev-lang/python-3"
216 - elog ""
217 - elog "A sample configuration can be found at"
218 - elog "${EROOT%}/usr/share/${P}/refind/refind.conf-sample"
219 - else
220 - if ! version_is_at_least "0.10.3" "${REPLACING_VERSIONS}"; then
221 - elog "The new refind-mkdefault script requires >=dev-lang/python-3"
222 - elog "to be installed"
223 - elog ""
224 - fi
225 - ewarn "Note that this installation will not update any EFI binaries"
226 - ewarn "on your EFI System Partition - this needs to be done manually"
227 - fi
228 -}