Mail archive
alpine-aports

[alpine-aports] Re: [PATCH] Initial commit of rEFInd package for alpine linux. - Includes patich to disable fortify headers when building libeg as nanojpeg.c uses custom efi allocators that were breaking.

From: Eric Molitor <emolitor_at_molitor.org>
Date: Mon, 31 Dec 2018 19:19:30 +0000

Ugh, I need to fix the license as it's actually BSD / GPL 3 and not GPL 2
as the APKBUILD states. I will fix that tomorrow and resubmit.

Yes it works well for me. Refind is one of the few uefi bootloader that
supports MOKs and works consistently well for me. That said if you break
the config it can still go horribly wrong and be difficult to fix.

My preference is to directly use the efi stub support of the kernel
building in the kernel commandline. However that's not very portable. :)

- Eric

On Mon, 31 Dec 2018, 16:14 Eric Molitor <emolitor_at_molitor.org wrote:

> ---
> community/refind/APKBUILD | 30 +++++++++++++++++++
> community/refind/refind-disable-fortify.patch | 11 +++++++
> 2 files changed, 41 insertions(+)
> create mode 100644 community/refind/APKBUILD
> create mode 100644 community/refind/refind-disable-fortify.patch
>
> diff --git a/community/refind/APKBUILD b/community/refind/APKBUILD
> new file mode 100644
> index 0000000000..07f7532685
> --- /dev/null
> +++ b/community/refind/APKBUILD
> _at__at_ -0,0 +1,30 @@
> +# Maintainer: Eric Molitor <eric_at_molitor.org>
> +pkgname=refind
> +pkgver=0.11.4
> +pkgrel=0
> +pkgdesc="rEFInd EFI Boot Manager"
> +url="http://www.rodsbooks.com/refind"
> +arch="aarch64 x86 x86_64"
> +options="!check" # No test suite.
> +license="GPL-2.0"
> +depends=""
> +makedepends="gnu-efi-dev bash"
> +#subpackages="$pkgname-doc"
> +source="
> https://sourceforge.net/projects/refind/files/${pkgver}/${pkgname}-src-${pkgver}.tar.gz
> + refind-disable-fortify.patch"
> +
> +builddir="$srcdir/${pkgname}-${pkgver}"
> +
> +build() {
> + cd "$builddir"
> + make gnuefi
> +}
> +
> +package() {
> + cd "$builddir"
> + install -Dm755 refind/refind_x64.efi
> $pkgdir/usr/share/refind/refind_x64.efi
> + install -Dm755 refind.conf-sample
> $pkgdir/usr/share/refind/refind.conf-sample
> + cp -r icons $pkgdir/usr/share/refind
> +}
> +sha512sums="529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1
> refind-src-0.11.4.tar.gz
> +ccb61e6e5ae0d762932941d7edd5b9a3506db42cfce70ebc57468837799e60fee73b3c568ae603a6ebb677ae702fb5beb5d13b16daf976b954b35047b6f4ecc0
> refind-disable-fortify.patch"
> diff --git a/community/refind/refind-disable-fortify.patch
> b/community/refind/refind-disable-fortify.patch
> new file mode 100644
> index 0000000000..b59b711473
> --- /dev/null
> +++ b/community/refind/refind-disable-fortify.patch
> _at__at_ -0,0 +1,11 @@
> +--- refind-0.11.4-orig/libeg/Makefile
> ++++ refind-0.11.4/libeg/Makefile
> +_at__at_ -12,7 +12,7 @@
> +
> + VPATH = $(SRCDIR)
> +
> +-LOCAL_GNUEFI_CFLAGS = -I$(SRCDIR) -I$(SRCDIR)/../include
> ++LOCAL_GNUEFI_CFLAGS = -D_FORTIFY_SOURCE=0 -I$(SRCDIR)
> -I$(SRCDIR)/../include
> +
> + OBJS = nanojpeg.o nanojpeg_xtra.o screen.o image.o text.o
> load_bmp.o load_icns.o lodepng.o lodepng_xtra.o
> + TARGET = libeg.a
> --
> 2.20.1
>
>



---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Mon Dec 31 2018 - 19:19:30 UTC