diff options
Diffstat (limited to 'xz-5213-547-562-libtool.patch')
-rw-r--r-- | xz-5213-547-562-libtool.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xz-5213-547-562-libtool.patch b/xz-5213-547-562-libtool.patch new file mode 100644 index 0000000..3073645 --- /dev/null +++ b/xz-5213-547-562-libtool.patch @@ -0,0 +1,37 @@ +# Fix shared library building in XZ Utils 5.2.13, 5.4.7, and 5.6.2 +# +# The releases were made with a development version of GNU Libtool +# (2.5.0+1+g38c166c8). The benefit is that there tend to be fixes that +# aren't in a stable release yet. At the same time there is a higher +# risk of new bugs. Unfortunately there was a bug that breaks building +# of shared libraries on some systems like mips64. +# +# This patch was made by taking the upstream commit to m4/libtool.m4 +# and then running "autoconf" to update the generated "configure". +# This patch only modifies "configure" so that the changed timestamps +# won't cause the build system to regenerate more files, which would +# only work if one has all Autotools packages installed. +# +# https://git.savannah.gnu.org/cgit/libtool.git/commit/?id=9a4a02615c9e7cbcfd690ed31874822a7d6aaea2 +# https://lore.kernel.org/distributions/3299713.44csPzL39Z@pinacolada/ + +diff -rup xz-5.6.2.orig/configure xz-5.6.2/configure +--- xz-5.6.2.orig/configure ++++ xz-5.6.2/configure +@@ -9475,7 +9475,7 @@ do + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then +- ac_cv_prog_FILECMD=":" ++ ac_cv_prog_FILECMD="file" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +@@ -9483,6 +9483,7 @@ done + done + IFS=$as_save_IFS + ++ test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" + fi ;; + esac + fi |