Package Details: grub-xen-git 2.04.r141.ge7b8856f8-1

Git Clone URL: https://aur.archlinux.org/grub-xen-git.git (read-only, click to copy)
Package Base: grub-xen-git
Description: GNU GRand Unified Bootloader (2) with Xen platform support
Upstream URL: https://www.gnu.org/software/grub/
Keywords: bootloader grub xen
Licenses: GPL3
Conflicts: grub, grub-git
Provides: grub
Submitter: cman
Maintainer: cman
Last Packager: cman
Votes: 0
Popularity: 0.000000
First Submitted: 2020-08-09 11:11 (UTC)
Last Updated: 2020-08-11 01:15 (UTC)

Dependencies (20)

Required by (314)

Sources (12)

Latest Comments

nicron commented on 2023-12-21 16:13 (UTC)

This package no longer works and is now useless. The only real answer I got for my bootloader problem is here : https://superuser.com/a/506990

ArthurBorsboom commented on 2022-10-25 20:06 (UTC)

==> Starting prepare()...
patching file util/grub.d/10_linux.in
Hunk #1 succeeded at 97 (offset 14 lines).
Hunk #2 succeeded at 210 (offset 22 lines).
Hunk #3 succeeded at 299 with fuzz 1 (offset 49 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 122 (offset 4 lines).
Hunk #2 succeeded at 286 (offset 9 lines).
Hunk #3 succeeded at 357 with fuzz 1 (offset 14 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 185 (offset 6 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 116 (offset 4 lines).
Hunk #2 FAILED at 156.
1 out of 2 hunks FAILED -- saving rejects to file util/grub.d/20_linux_xen.in.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

ska67 commented on 2021-11-21 17:41 (UTC)

The package can be compiled by now, but the result does not do what it should.

Anyway, so far I have not been able to create a bootable pvgrub2 image. Does anyone know how to get an error output?

VeckPex commented on 2021-09-14 13:47 (UTC)

I use this package to use with xen. But I have an LD error :

/usr/bin/ld: VMA of the section .note.gnu.property [000000000400190,0000000004001bf] overlaps the VMA of the section .bss [00000000019000,00000000044281d7]

Someone have a solution?

vrzh commented on 2021-08-22 06:53 (UTC)

The issue with the add-GRUB_COLOR_variables.patch can be resolved with the following patch:

---
 PKGBUILD                       | 4 ++--
 add-GRUB_COLOR_variables.patch | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 027eee8..02d4cca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,7 @@ _build_platforms="i386-pc ${_target_arch}-efi"
 [[ "${_grub_xen_build}" == "1" ]] && [[ "${CARCH}" == "x86_64" ]] && _build_platforms+=" x86_64-xen"

 pkgname="grub-xen-git"
-pkgver=2.04.r141.ge7b8856f8
+pkgver=2.06.r7.g1ea4e5ef0
 pkgrel=1
 pkgdesc="GNU GRand Unified Bootloader (2) with Xen platform support"
 arch=('x86_64' 'i686')
@@ -71,7 +71,7 @@ sha256sums=('SKIP'
             'aa1edfce6193146def470ae61129af3cbdc20638419a37e7e72f543281cb9d53'
             '7cec8e548a8cc6bd7dd26e7b81c1e43bfe270e89bff05382683ddbeeccf218bc'
             'f0ccc146a3af7ecc14f5b1adbb0e0e5d03953839b336541741ba16737593e6ef'
-            'a5198267ceb04dceb6d2ea7800281a42b3f91fd02da55d2cc9ea20d47273ca29'
+            '6435fc297f2ff963f51787ce04c243d6db048911e0f2e135612874a46e2b7517'
             'bd464f665372ee5211fe825153f31d3d499589cb3e7e25070340ddc0602727c1')

 prepare() {
diff --git a/add-GRUB_COLOR_variables.patch b/add-GRUB_COLOR_variables.patch
index c113a81..c3ef07e 100644
--- a/add-GRUB_COLOR_variables.patch
+++ b/add-GRUB_COLOR_variables.patch
@@ -1,16 +1,17 @@
 diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
-index 3390ba9..c416489 100644
+index f8cbb8d7a..cb593066a 100644
 --- a/util/grub-mkconfig.in
 +++ b/util/grub-mkconfig.in
-@@ -218,6 +218,8 @@ export GRUB_DEFAULT \
+@@ -246,6 +246,8 @@ export GRUB_DEFAULT \
    GRUB_THEME \
    GRUB_GFXPAYLOAD_LINUX \
-   GRUB_DISABLE_OS_PROBER \
 +  GRUB_COLOR_NORMAL \
 +  GRUB_COLOR_HIGHLIGHT \
    GRUB_INIT_TUNE \
    GRUB_SAVEDEFAULT \
    GRUB_ENABLE_CRYPTODISK \
+   GRUB_BADRAM \
+
 diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
 index d2e7252..8259f45 100644
 --- a/util/grub.d/00_header.in
-- 
2.33.0

JamJamAur commented on 2021-08-12 09:46 (UTC)

I manually applied the patches after obtaining the sources after attempts to use the PKGBUILD with pikaur ended in receieving errors with the "add-GRUB_COLOR_variables.patch".

altered the the patch file slightly, which seems to have prevented the prior error from occurring.


diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index d2e7252..8259f45 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -127,6 +127,14 @@ cat <<EOF


I only changed the -125,6 +125,14 to a -127,6 +127,14

My assumption was that the patched line numbers included, fell within a section of the pre-existing "00_header.in" which seemed to cause some sort of conflict....(I'm not at all certain if I'm correct here, but at the very least it doesn't seem to have broken anything any further).

Continuing along I noticed there were issues with certain pre-set configuration parameters which didn't play nicely with my current setup. Disclaimer: I run Artix Linux, not Arch Linux.

Here's a copy of my makepkg.conf file:

ARCHITECTURE, COMPILE FLAGS

CARCH="x86_64" CHOST="x86_64-pc-linux-gnu"

-- Compiler and Linker Flags

CPPFLAGS="-O2" CFLAGS="-march=skylake -mtune=generic -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat \ -fstack-clash-protection -fcf-protection" CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS,-fno-plt,-O2" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,--no-plt"

What seems to work.

./configure --target=x64 --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --enable-boot-time --enable-cache-stats --enable-device-mapper --enable-grub-mkfont --enable-grub-mount --enable-mm-debug --enable-nls --enable-silent-rules --disable-werror 'CPPFLAGS=-O2' --enable-option-checking --enable-liblzma --enable-libzfs --enable-stack-protector --with-platform=efi --with-bootdir=/boot --with-grubdir=/boot/grub ac_cv_header_sys_sysmacros_h=yes

Make

Make install


atomy commented on 2021-07-22 20:14 (UTC) (edited on 2021-07-22 20:17 (UTC) by atomy)

Fails for me with HUNK:

[...]
  -> Found add-GRUB_COLOR_variables.patch
  -> Found grub.default
==> Validating source files with sha256sums...
    grub ... Skipped
    grub-extras ... Skipped
    gnulib ... Skipped
    10_linux-detect-archlinux-initramfs.patch ... Passed
    20_linux_xen-detect-archlinux-initramfs.patch ... Passed
    20_linux_xen-detect-x86-xen-dom0-linux-list.patch ... Passed
    20_linux_xen-load-ucode-as-separate-multiboot-module.patch ... Passed
    20_linux_xen-remove-grub-submenu-for-multiple-xen-versions.patch ... Passed
    20_linux_xen-select-gzipped-xen-only.patch ... Passed
    20_linux_xen-support-xen-realmode-with-grub-efi-boot.patch ... Passed
    add-GRUB_COLOR_variables.patch ... Passed
    grub.default ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of grub git repo...
Cloning into 'grub'...
done.
  -> Creating working copy of grub-extras git repo...
Cloning into 'grub-extras'...
done.
  -> Creating working copy of gnulib git repo...
Cloning into 'gnulib'...
done.
==> Starting prepare()...
patching file util/grub.d/10_linux.in
Hunk #1 succeeded at 93 (offset 10 lines).
Hunk #2 succeeded at 200 (offset 12 lines).
Hunk #3 succeeded at 287 (offset 37 lines).
patching file util/grub.d/20_linux_xen.in
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 181 (offset 2 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #2 succeeded at 158 (offset 2 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 249 (offset 4 lines).
Hunk #2 succeeded at 329 (offset 4 lines).
Hunk #3 succeeded at 360 (offset 16 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 215 (offset 4 lines).
patching file util/grub.d/20_linux_xen.in
Hunk #1 succeeded at 149 (offset 5 lines).
patching file util/grub-mkconfig.in
Hunk #1 FAILED at 218.
1 out of 1 hunk FAILED -- saving rejects to file util/grub-mkconfig.in.rej
patching file util/grub.d/00_header.in
==> ERROR: A failure occurred in prepare().
    Aborting...
error making: grub-xen-git

Any advice?