diff options
Diffstat (limited to 'source/a/grub')
-rwxr-xr-x | source/a/grub/grub.SlackBuild | 5 | ||||
-rw-r--r-- | source/a/grub/grub.binutils.fix.diff | 20 |
2 files changed, 24 insertions, 1 deletions
diff --git a/source/a/grub/grub.SlackBuild b/source/a/grub/grub.SlackBuild index 9ece0d82b..4b00083b3 100755 --- a/source/a/grub/grub.SlackBuild +++ b/source/a/grub/grub.SlackBuild @@ -28,7 +28,7 @@ PKGNAM=grub VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} # Better to use _ than ~ in the package filenames version: PKGVER=$(echo $VERSION | tr '~' '_') -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -118,6 +118,9 @@ zcat $CWD/0198-align-struct-efi_variable-better.patch.gz | patch -p1 --verbose | # Fix compatibility with recent xfsprogs: zcat $CWD/grub.xfs.sparse.inodes.patch.gz | patch -p1 --verbose || exit 1 +# Fix breakage when compiled with recent binutils: +zcat $CWD/grub.binutils.fix.diff.gz | patch -p1 --verbose || exit 1 + build_grub() { EFI_DO="$*" # Configure: diff --git a/source/a/grub/grub.binutils.fix.diff b/source/a/grub/grub.binutils.fix.diff new file mode 100644 index 000000000..b23cb1b63 --- /dev/null +++ b/source/a/grub/grub.binutils.fix.diff @@ -0,0 +1,20 @@ +--- ./util/grub-mkimagexx.c.orig 2017-04-24 04:16:00.000000000 -0500 ++++ ./util/grub-mkimagexx.c 2018-09-22 13:35:33.089870295 -0500 +@@ -832,6 +832,7 @@ + break; + + case R_X86_64_PC32: ++ case R_X86_64_PLT32: + { + grub_uint32_t *t32 = (grub_uint32_t *) target; + *t32 = grub_host_to_target64 (grub_target_to_host32 (*t32) +--- ./util/grub-module-verifier.c.orig 2017-04-24 04:16:00.000000000 -0500 ++++ ./util/grub-module-verifier.c 2018-09-22 13:36:05.328867627 -0500 +@@ -19,6 +19,7 @@ + -1 + }, (int[]){ + R_X86_64_PC32, ++ R_X86_64_PLT32, + -1 + } + }, |