diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /net-news/snownews/files | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'net-news/snownews/files')
-rw-r--r-- | net-news/snownews/files/snownews-1.9-no-which.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-news/snownews/files/snownews-1.9-no-which.patch b/net-news/snownews/files/snownews-1.9-no-which.patch new file mode 100644 index 000000000000..84335e93711b --- /dev/null +++ b/net-news/snownews/files/snownews-1.9-no-which.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/844901 +--- a/configure ++++ b/configure +@@ -164,7 +164,7 @@ s/@builddir@/\$\{TMPDIR\}\/make/g" + + #### Find programs and libs ########################################## + +-# Programs found using which ++# Programs found using command -v + for i in $progs; do + pname=$(expr $i : '\([^=]*\)') + pcall=$(expr $i : '[^=]*=\([^=]*\)') +@@ -172,7 +172,7 @@ for i in $progs; do + # First check if an environment variable is set + [ -n "$ppath" ] && sub "s/@$pname@/$ppath/g" + # Check if the program exists +- ppath=$(which $pcall 2>/dev/null) ++ ppath=$(command -v $pcall 2>/dev/null) + [ -n "$ppath" ] && [ -x "$ppath" ] && sub "s/@$pname@/$pcall/g" + done + # If nothing found in first loop, set the first pair anyway +@@ -183,7 +183,7 @@ for i in $progs; do + done + + # Packages found using pkg-config +-pkgconfig=$(which pkg-config 2>/dev/null) ++pkgconfig=$(command -v pkg-config 2>/dev/null) + if [ -n "$pkgconfig" ] && [ -x "$pkgconfig" ]; then + faildeps="" + for i in $pkgs; do |