summaryrefslogtreecommitdiff
path: root/libre/pacman/makepkg-riscv64-updguess.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/pacman/makepkg-riscv64-updguess.patch')
-rw-r--r--libre/pacman/makepkg-riscv64-updguess.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/libre/pacman/makepkg-riscv64-updguess.patch b/libre/pacman/makepkg-riscv64-updguess.patch
new file mode 100644
index 000000000..82710b4e9
--- /dev/null
+++ b/libre/pacman/makepkg-riscv64-updguess.patch
@@ -0,0 +1,27 @@
+diff -rupN pacman-5.2.2.orig/scripts/libmakepkg/source.sh.in pacman-5.2.2/scripts/libmakepkg/source.sh.in
+--- pacman-5.2.2.orig/scripts/libmakepkg/source.sh.in 2021-06-30 09:33:32.625058631 +0200
++++ pacman-5.2.2/scripts/libmakepkg/source.sh.in 2021-06-30 09:35:24.985964363 +0200
+@@ -83,3 +83,10 @@ extract_sources() {
+ fi
+ done
+ }
++
++update_config_guess() {
++ msg "$(gettext "Updating config.guess and config.sub in source tree...")"
++
++ find . -iname 'config.guess' -print -exec cp -a /usr/share/autoconf/build-aux/config.guess {} \;
++ find . -iname 'config.sub' -print -exec cp -a /usr/share/autoconf/build-aux/config.sub {} \;
++}
+diff -rupN pacman-5.2.2.orig/scripts/makepkg.sh.in pacman-5.2.2/scripts/makepkg.sh.in
+--- pacman-5.2.2.orig/scripts/makepkg.sh.in 2021-06-30 09:33:32.609057933 +0200
++++ pacman-5.2.2/scripts/makepkg.sh.in 2021-06-30 09:34:45.840255242 +0200
+@@ -1418,6 +1418,9 @@ if (( !REPKG )); then
+ fi
+
+ extract_sources
++ if check_option "updguess" "y"; then
++ update_config_guess
++ fi
+ if (( PREPAREFUNC )); then
+ run_prepare
+ fi