X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by lists.alpinelinux.org (Postfix) with ESMTP id B732FF84E52 for ; Mon, 31 Dec 2018 19:20:00 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id n2so12968615pgm.3 for ; Mon, 31 Dec 2018 11:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=molitor-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iKgpfCxbO12KQ/skBrCK8CCw+Ambps/etmIwZENMw+I=; b=ly05zQRgjuvFGU/E6f91N3NRLF8M2WZfrC5Kcw9Ik/9zHGPeyJIeX+TuTcHd1R0zqQ 2iV/ZhrJMMgBuTsYwRoxkuRcfDIK3f/yM0vPIfwptoBTtIzXooxVL6Pvykrlmu7O/JFL 7zlewm6qpAPuEMOCeyM/dfymezuNyj30RiNK7bWNCCt+y3WKvGJve8oN8WGGHEUOcBi3 LI5RDCM58NL812YK8pS3T/l73A/lNdJ68l1A/4XHxrSIv8wBsfoldFSQEaQyFgjCn+3C VlRQmeSlu3OQW0DfZ0+gRZEigSkzYNJfIGj/eIk+KmLO1CqO/CpB0/03gQe/ZwN+WNkw 6dJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iKgpfCxbO12KQ/skBrCK8CCw+Ambps/etmIwZENMw+I=; b=p5Yt1BRfvjCQuXzpNXnzCzWUMieVy+0LvCUR/vtuNiAU58h8+z0xBWJkbFOv4BL2fM eR/oRPKot6BTKXzsmllW/xAqNC2IK7w/7ONMq5CVKFoCXi2Up2m0jsM9thzUzmfgUuMT A5lya5JV4f1I+voxYzS9Ni+frkg0ePLfGGXeciI6ERD2iZXO7v/2WBLbDfyGhw09yGKB +UZtlgsxovgKOyj+fezaMqHLx3hjVED/ijp9j3npc0D1kVy3d+6OOOoneu9wyTN8cSij z+ZXHL4ujv+hQuOqNlUTNhi3KnKUal3toh/p18Lx1P5g+Uq69eTYv4bnZBDry5xTbM+7 L0pA== X-Gm-Message-State: AA+aEWYd3jJJ9eS/uzMeKptTAaBPCJqmZfILyVdZ1jh/bwU8nW9bvZVp nN1DxXeZ70IT9/waTT26e6mxDfr49ggG8FaLPldOEVlkHmSoKQ== X-Google-Smtp-Source: AFSGD/USxPadl6Any/F+akT5WTlA1NV0gSjlBqZGidJiJgHou+R3hvVYtdnYbGsmaVLi9je4OxfLAEf77IC83OX+f4w= X-Received: by 2002:aa7:824f:: with SMTP id e15mr38177254pfn.192.1546283999363; Mon, 31 Dec 2018 11:19:59 -0800 (PST) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: <20181231161318.8896-1-eric@molitor.org> In-Reply-To: <20181231161318.8896-1-eric@molitor.org> From: Eric Molitor Date: Mon, 31 Dec 2018 19:19:30 +0000 Message-ID: Subject: [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. To: alpine-aports@lists.alpinelinux.org Cc: Eric Molitor Content-Type: multipart/alternative; boundary="0000000000008117f2057e564c9c" --0000000000008117f2057e564c9c Content-Type: text/plain; charset="UTF-8" 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 --- > 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 > @@ -0,0 +1,30 @@ > +# Maintainer: Eric Molitor > +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 > @@ -0,0 +1,11 @@ > +--- refind-0.11.4-orig/libeg/Makefile > ++++ refind-0.11.4/libeg/Makefile > +@@ -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 > > --0000000000008117f2057e564c9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 wor= ks 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 c= an still go horribly wrong and be difficult to fix.=C2=A0

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@molitor.org wrote:
---
=C2=A0community/refind/APKBUILD=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| 30 +++++++++++++++++++
=C2=A0community/refind/refind-disable-fortify.patch | 11 +++++++
=C2=A02 files changed, 41 insertions(+)
=C2=A0create mode 100644 community/refind/APKBUILD
=C2=A0create 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
@@ -0,0 +1,30 @@
+# Maintainer: Eric Molitor <eric@molitor.org>
+pkgname=3Drefind
+pkgver=3D0.11.4
+pkgrel=3D0
+pkgdesc=3D"rEFInd EFI Boot Manager"
+url=3D"http://www.rodsbooks.com/refind"
+arch=3D"aarch64 x86 x86_64"
+options=3D"!check"=C2=A0 # No test suite.
+license=3D"GPL-2.0"
+depends=3D""
+makedepends=3D"gnu-efi-dev bash"
+#subpackages=3D"$pkgname-doc"
+source=3D"https://sourceforge.net/projects/refind/files/${p= kgver}/${pkgname}-src-${pkgver}.tar.gz
+=C2=A0 =C2=A0 =C2=A0 =C2=A0refind-disable-fortify.patch"
+
+builddir=3D"$srcdir/${pkgname}-${pkgver}"
+
+build() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0make gnuefi
+}
+
+package() {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$builddir"
+=C2=A0 =C2=A0 =C2=A0 =C2=A0install -Dm755 refind/refind_x64.efi $pkgdir/us= r/share/refind/refind_x64.efi
+=C2=A0 =C2=A0 =C2=A0 =C2=A0install -Dm755 refind.conf-sample $pkgdir/usr/s= hare/refind/refind.conf-sample
+=C2=A0 =C2=A0 =C2=A0 =C2=A0cp -r icons $pkgdir/usr/share/refind
+}
+sha512sums=3D"529962ae432edaf1895ba98deb00a23c66bd742578e1a367f70f7ed= 22dd7be7daf1960df8af410fba79ca775169120499a4c10119331b2b12b55a002d4354de1= =C2=A0 refind-src-0.11.4.tar.gz
+ccb61e6e5ae0d762932941d7edd5b9a3506db42cfce70ebc57468837799e60fee73b3c568a= e603a6ebb677ae702fb5beb5d13b16daf976b954b35047b6f4ecc0=C2=A0 refind-disable= -fortify.patch"
diff --git a/community/refind/refind-disable-fortify.patch b/community/refi= nd/refind-disable-fortify.patch
new file mode 100644
index 0000000000..b59b711473
--- /dev/null
+++ b/community/refind/refind-disable-fortify.patch
@@ -0,0 +1,11 @@
+--- refind-0.11.4-orig/libeg/Makefile
++++ refind-0.11.4/libeg/Makefile
+@@ -12,7 +12,7 @@
+
+ VPATH =3D $(SRCDIR)
+
+-LOCAL_GNUEFI_CFLAGS=C2=A0 =3D -I$(SRCDIR) -I$(SRCDIR)/../include
++LOCAL_GNUEFI_CFLAGS=C2=A0 =3D -D_FORTIFY_SOURCE=3D0 -I$(SRCDIR) -I$(SRCDI= R)/../include
+
+ OBJS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D nanojpeg.o nanojpeg_xtr= a.o screen.o image.o text.o load_bmp.o load_icns.o lodepng.o lodepng_xtra.o=
+ TARGET=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D libeg.a
--
2.20.1

--0000000000008117f2057e564c9c-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---