Hunk #1 FAILED at 503.
Ends up with makepkg aborting. Please help?
Git Clone URL: | https://aur.archlinux.org/grub-improved-luks2-git.git (read-only, click to copy) |
---|---|
Package Base: | grub-improved-luks2-git |
Description: | GNU GRand Unified Bootloader (2) with Argon2 support. Patch made by Patrick Steinhardt |
Upstream URL: | https://www.gnu.org/software/grub/ |
Licenses: | GPL3, CC0 |
Conflicts: | grub |
Provides: | grub |
Submitter: | Ax333l |
Maintainer: | lbatuska |
Last Packager: | lbatuska |
Votes: | 32 |
Popularity: | 1.09 |
First Submitted: | 2022-01-02 14:06 (UTC) |
Last Updated: | 2025-07-27 20:45 (UTC) |
Hunk #1 FAILED at 503.
Ends up with makepkg aborting. Please help?
@Random13 thank you, it works
It seems that argon_3.patch fails because there is a new docs section about libgcrypt, can be resolved with the following:
diff --git a/argon_3.patch b/argon_3.patch
index c032745..d127198 100644
--- a/argon_3.patch
+++ b/argon_3.patch
@@ -36,6 +36,7 @@ index 6c629a23e..ead2a8259 100644
* jsmn::
* minilzo::
* libtasn1::
+ * libgcrypt::
@end menu
+@node Argon2
Hi, when trying to build new version of the package I’m getting the following error:
patching file docs/grub-dev.texi Hunk #1 FAILED at 503. 1 out of 1 hunk FAILED -- saving rejects to file docs/grub-dev.texi.rej
seems grub version updated and need to update patch, have any ideas how to fix it?
Is there an alternative to using this package now when Argon2 is required?
Thanks to @zer0def's earlier comment, I was able to resolve current patch failures with the following:
diff --git a/argon_3.patch b/argon_3.patch
index bc39630..c032745 100644
--- a/argon_3.patch
+++ b/argon_3.patch
@@ -27,7 +27,7 @@ diff --git a/docs/grub-dev.texi b/docs/grub-dev.texi
index 6c629a23e..ead2a8259 100644
--- a/docs/grub-dev.texi
+++ b/docs/grub-dev.texi
-@@ -490,11 +490,75 @@ GRUB includes some code from other projects, and it is sometimes necessary
+@@ -503,11 +503,75 @@ GRUB includes some code from other projects, and it is sometimes necessary
to update it.
@menu
@@ -35,6 +35,7 @@ index 6c629a23e..ead2a8259 100644
* Gnulib::
* jsmn::
* minilzo::
+ * libtasn1::
@end menu
+@node Argon2
$ git diff
diff --git a/argon_3.patch b/argon_3.patch
index bc39630..9a26bc9 100644
--- a/argon_3.patch
+++ b/argon_3.patch
@@ -27,7 +27,7 @@ diff --git a/docs/grub-dev.texi b/docs/grub-dev.texi
index 6c629a23e..ead2a8259 100644
--- a/docs/grub-dev.texi
+++ b/docs/grub-dev.texi
-@@ -490,11 +490,75 @@ GRUB includes some code from other projects, and it is sometimes necessary
+@@ -490,12 +490,76 @@ GRUB includes some code from other projects, and it is sometimes necessary
to update it.
@menu
@@ -35,6 +35,7 @@ index 6c629a23e..ead2a8259 100644
* Gnulib::
* jsmn::
* minilzo::
+ * libtasn1::
@end menu
+@node Argon2
The argon_3.patch seems to be failing to patch documentation due to an added field in the menu structure. Editing the patch to include the libtasn1 line seems to resolve the issue.
@menu
+* Argon2::
* Gnulib::
* jsmn::
* minilzo::
* libtasn1::
@end menu
Installing this packages erases /etc/default/grub and resets it to the package version. Can we fix that?
Pinned Comments
Ax333l commented on 2022-02-17 18:58 (UTC) (edited on 2023-06-16 14:24 (UTC) by Ax333l)
I have disabled translations because they have been the cause of build failures in both this package and
grub-git
. If you want to re-enable them, check the PKGBUILD.Also, make sure you have installed
base-devel
.Argon2 might not work on some devices due to issues with the memory allocator