From d9bbd8091cdb176f5c76f90ba8551494b9f27af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 2 Dec 2015 00:09:18 +0100 Subject: [PATCH] grub: set nopie=yes I tried to patch include/grub/i386/tsc.h and grub-core/loader/i386/xnu.c to avoid clobbering %rbx (or %ebx) when using cpuid, but finally the linking of trig.module would fail due to picking up the LDFLAGS. Disabling PIE seems to be the only way for now. --- srcpkgs/grub/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index 862b69b75fb..40fb9819f7e 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -1,7 +1,7 @@ # Template file for 'grub' pkgname=grub version=2.00 -revision=24 +revision=25 hostmakedepends="flex" makedepends="libusb-compat-devel ncurses-devel freetype-devel liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel" @@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/grub/" distfiles="$GNU_SITE/grub/grub-$version.tar.xz" checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458 only_for_archs="i686 i686-musl x86_64 x86_64-musl" +nopie=yes subpackages="grub-utils grub-i386-efi" case "$XBPS_TARGET_MACHINE" in