diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /sys-boot/refind | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'sys-boot/refind')
-rw-r--r-- | sys-boot/refind/Manifest | 3 | ||||
-rw-r--r-- | sys-boot/refind/files/refind-0.14.2-fix-gnu-efi-3.0.18.patch | 77 | ||||
-rw-r--r-- | sys-boot/refind/refind-0.14.2-r1.ebuild (renamed from sys-boot/refind/refind-0.14.2.ebuild) | 25 |
3 files changed, 84 insertions, 21 deletions
diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest index 96acfd4ea6e1..18448d9090df 100644 --- a/sys-boot/refind/Manifest +++ b/sys-boot/refind/Manifest @@ -1,8 +1,9 @@ AUX refind-0.14.0.2-clang.patch 1346 BLAKE2B 09221bd26f2add12831faba093e3704174be4e1ebe42eac4d55d4e2d8181798ecfa8bf4eb17e1cc68e90096896e1ea5cc56f7b86bd391e5839788ac7e1934f40 SHA512 b04d721667500a17d35702454d4f0597a6fb8a89734533598aed31d3c69edbfec0ceb3a1a1f9a510c499ff74d95ed9a4e56d86979d65cc671f4a7f49df733a68 +AUX refind-0.14.2-fix-gnu-efi-3.0.18.patch 3055 BLAKE2B 716b96eb846267a0916d531d04da07ddd594eba7b2b09b924d09bd602772f4830610b10f3a8331437021ad74e6686688d4ed975c55a1705ffd1b19347fa2280d SHA512 ebbdb81767f3fcb0deba791d8b3cb29c7e246c101679e8e1c23d38805db69c7eaafd674a7d74450a4ca5f8873218791968949de44405cd41d3375a9806622445 AUX refind-sbat-gentoo-0.14.0.2.csv 246 BLAKE2B 8a16eb928f587aaaa680098c660de4e0930a6cc3b5719eb5085f843933c7e3863e8ff0517a596574ffff7bc2d8a2f89f1fa3606c7c618e9ff303edac5f0f5673 SHA512 b8e1a49ed408c6e57f4c8c5a012857b6a5024463eeba33070665dcf95f310cf30d62e2767409ad19d3a41b6ab346804bc7f5d34b92d2dd35aa44406df016bb91 AUX refind-sbat-gentoo-0.14.2.csv 246 BLAKE2B 75623624efe360288ef14bb09f9f024b0baa7485ee250cf923558296f258bdea3f4de0aac3d40fe83b168611d0e907d0a6a0462a54d0126233f0a6c370c0991d SHA512 e2665765ea7d9abb07a5b0b6ca752b53987ef79028bb6df1396a6afc0ea3183e8af326ac81b40fd4a0f84d20e7b47d7c45118bd35df8b1107512670e23ac92e1 DIST refind-src-0.14.0.2.tar.gz 4648958 BLAKE2B 02019ddb872ce44d2a2119902edebd633f925d49634e3bcc6bfb2c9dedb8ce213166909395a333d3a37e95c67720e31b1f5fcf25083801c17d645372aa54a06a SHA512 41c120c1afec37c508aa5c0ec09a6563c3047ef84932308c91701795b950431dfad17d25cf664039b490a302d475add98441b75f90ff71cadce41febedc68a9e DIST refind-src-0.14.2.tar.gz 4628173 BLAKE2B 987acb29d4d81c01db245cd8e1c9761072e34cf3dfaa3e4fa77e549ee2c1dc4c3f8cbd9218f42e4eb77478df3453095dba8b36324c289c6a10b81f1ecb202743 SHA512 76a52ed422ab3d431e6530fae4d13a51e8ed100568d4290207aaee87a84700b077bb79c4f4917027f5286de422954e1872fca288252ec756072d6c075b102e1e EBUILD refind-0.14.0.2-r1.ebuild 4230 BLAKE2B fb1a4cdb037a3a0bbec2de9f8c50bc2f0b76f0a445640fa054cea0200eaaaac983f5e8c91a6c8941d5cd722eacb578973e5830bb0035ae4d91bf5db59241412f SHA512 a96ea9925121827a65a187865e55cd547e81cbf13738e2f8377583c440c77dae87b10ffc41fd5d1fae4d2a1f3826078df26a1908764c625a203e238e3716ec85 -EBUILD refind-0.14.2.ebuild 4773 BLAKE2B 465f42f8f991d379c86704eb8130193fce08047ac445b76b6a6ba3ec866e7a5ca8f83341057c0cacc56365499e7a462365ffba0046068cc7afc856dec1ad5e5b SHA512 3d8ccb53e157526b4d4d0e9a1aac4fa139d7f6b7ca579d603c1e7b444f1ca212004aa990741417b0e1dbb3ea522775e768e4415e009495e32089846e5683e493 +EBUILD refind-0.14.2-r1.ebuild 4316 BLAKE2B 49af3ce308582ffa90dafc0105a241356effee9e18ba9538afffd0749af673f4f5f0fc91b67843567a74941756b5d80db7d30380b0e9cada9a148a9653635c17 SHA512 fa4917991e486768866b5ee167052933937bd716b13874cf60e68d9c4eba9c61702897f7299444196dfb57da3864b577db086eea2f451d402ac53aac5910bf39 MISC metadata.xml 3809 BLAKE2B a2cf074c3c572fff3bdb1679b505cf3a9de4489acacdbc2b015fed91e7f37157fa7e3124438ad8af0788cc90f464b217c4fe05294c2c69ef637648cc68825885 SHA512 4b289982bbfda2697dd13b4c1fc020842a0fa06672e5d7f4b48cd39ef4348b1a17989686c55c96d220f682c8c95a340901fb3968d051aef8c8e5cf944bbcb4e4 diff --git a/sys-boot/refind/files/refind-0.14.2-fix-gnu-efi-3.0.18.patch b/sys-boot/refind/files/refind-0.14.2-fix-gnu-efi-3.0.18.patch new file mode 100644 index 000000000000..b5d9d2692883 --- /dev/null +++ b/sys-boot/refind/files/refind-0.14.2-fix-gnu-efi-3.0.18.patch @@ -0,0 +1,77 @@ +The same commit from gnu-efi that changed CopyMem in a way that broke refind also changed SetMem. +This patch attempts to fix it in the same way upstream fixed CopyMem. + +The commit: https://sourceforge.net/p/gnu-efi/code/ci/deb8a7f267d96299b9aa41300539f617db54c2a9/ +The bug: https://bugs.gentoo.org/934474 + +--- a/gptsync/gptsync.c ++++ b/gptsync/gptsync.c +@@ -164,7 +164,7 @@ static UINTN write_mbr(VOID) + } + if (!have_bootcode) { + // no boot code found in the MBR, add the syslinux MBR code +- SetMem(sector, MBR_BOOTCODE_SIZE, 0); ++ refit_call3_wrapper(gBS->SetMem, sector, MBR_BOOTCODE_SIZE, 0); + refit_call3_wrapper(gBS->CopyMem, sector, syslinux_mbr, SYSLINUX_MBR_SIZE); + } + +--- a/libeg/lodepng_xtra.c ++++ b/libeg/lodepng_xtra.c +@@ -87,7 +87,7 @@ int MyStrlen(const char *InString) { + } // int MyStrlen() + + VOID *MyMemSet(VOID *s, int c, size_t n) { +- SetMem(s, c, n); ++ MySetMem(s, c, n); + return s; + } + +--- a/refind/config.c ++++ b/refind/config.c +@@ -667,7 +667,7 @@ VOID ReadConfig(CHAR16 *FileName) + HandleStrings(TokenList, TokenCount, &(GlobalConfig.DriverDirs)); + + } else if (MyStriCmp(TokenList[0], L"showtools")) { +- SetMem(GlobalConfig.ShowTools, NUM_TOOLS * sizeof(UINTN), 0); ++ MySetMem(GlobalConfig.ShowTools, NUM_TOOLS * sizeof(UINTN), 0); + GlobalConfig.HiddenTags = FALSE; + for (i = 1; (i < TokenCount) && (i < NUM_TOOLS); i++) { + FlagName = TokenList[i]; +--- a/refind/launch_legacy.c ++++ b/refind/launch_legacy.c +@@ -114,7 +114,7 @@ static EFI_STATUS ActivateMbrPartition(IN EFI_BLOCK_IO *BlockIO, IN UINTN Partit + } + if (!HaveBootCode) { + // no boot code found in the MBR, add the syslinux MBR code +- SetMem(SectorBuffer, MBR_BOOTCODE_SIZE, 0); ++ MySetMem(SectorBuffer, MBR_BOOTCODE_SIZE, 0); + MyCopyMem(SectorBuffer, syslinux_mbr, SYSLINUX_MBR_SIZE); + } + +--- a/refind/lib.c ++++ b/refind/lib.c +@@ -651,7 +651,7 @@ static VOID SetFilesystemData(IN UINT8 *Buffer, IN UINTN BufferSize, IN OUT REFI + + LOG(2, LOG_LINE_NORMAL, L"Identifying filesystem types...."); + if ((Buffer != NULL) && (Volume != NULL)) { +- SetMem(&(Volume->VolUuid), sizeof(EFI_GUID), 0); ++ MySetMem(&(Volume->VolUuid), sizeof(EFI_GUID), 0); + Volume->FSType = FS_TYPE_UNKNOWN; + + if (BufferSize >= (1024 + 100)) { +--- a/refind/lib.h ++++ b/refind/lib.h +@@ -133,10 +133,13 @@ VOID MyFreePool(IN OUT VOID *Pointer); + + // When using GNU-EFI, call the EFI's built-in gBS->CopyMem() function, because + // GNU-EFI 3.0.18 changed its CopyMem() definition in a way that broke rEFInd. ++// Same for SetMem + #ifdef __MAKEWITH_GNUEFI + #define MyCopyMem(Dest, Src, len) refit_call3_wrapper(gBS->CopyMem, Dest, Src, len) ++#define MySetMem(Dest, Src, len) refit_call3_wrapper(gBS->SetMem, Dest, Src, len) + #else + #define MyCopyMem(Dest, Src, len) CopyMem(Dest, Src, len) ++#define MySetMem(Dest, Src, len) SetMem(Dest, Src, len) + #endif + + BOOLEAN EjectMedia(VOID); diff --git a/sys-boot/refind/refind-0.14.2.ebuild b/sys-boot/refind/refind-0.14.2-r1.ebuild index f280380cf1c4..d3866389c5cb 100644 --- a/sys-boot/refind/refind-0.14.2.ebuild +++ b/sys-boot/refind/refind-0.14.2-r1.ebuild @@ -11,8 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PV}/${PN}-src-${PV}.t LICENSE="BSD CC-BY-SA-3.0 CC-BY-SA-4.0 FDL-1.3 GPL-2+ GPL-3+ LGPL-3+" SLOT="0" -# Unkeyworded for now because of bug #934474 -#KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~x86" FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs" IUSE="${FS_USE} doc" @@ -23,7 +22,10 @@ BDEPEND="sys-devel/binutils" DOCS=( README.txt NEWS.txt ) -PATCHES=( "${FILESDIR}"/${PN}-0.14.0.2-clang.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-0.14.0.2-clang.patch + "${FILESDIR}"/${P}-fix-gnu-efi-3.0.18.patch +) checktools() { if [[ ${MERGE_TYPE} != "binary" ]]; then @@ -42,28 +44,11 @@ checktools() { fi } -check-gnu-efi() { - if [[ ${MERGE_TYPE} != "binary" ]]; then - local efi=sys-boot/gnu-efi - - local broken=3.0.18-r1 - has_version -d "=${efi}-${broken}" && die "This version of refind does not boot if compiled with =${efi}-${broken}" - - broken=3.0.18 - if has_version -d ">=${efi}-${broken}"; then - ewarn "This version of refind does not display jpegs correctly if compiled with >=${efi}-${broken} (bug #934474)" - fi - fi -} - pkg_pretend() { - check-gnu-efi checktools } pkg_setup() { - check-gnu-efi - if use x86; then export EFIARCH=ia32 export BUILDARCH=ia32 |