diff options
Diffstat (limited to 'net-p2p/qbittorrent/files/patch-configure')
-rw-r--r-- | net-p2p/qbittorrent/files/patch-configure | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/qbittorrent/files/patch-configure b/net-p2p/qbittorrent/files/patch-configure new file mode 100644 index 000000000000..596e5583a7a8 --- /dev/null +++ b/net-p2p/qbittorrent/files/patch-configure @@ -0,0 +1,22 @@ +--- configure.orig 2015-05-10 01:20:19 UTC ++++ configure +@@ -4263,7 +4263,7 @@ fi + # Detect OS + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5 + $as_echo_n "checking whether OS is FreeBSD... " >&6; } +-if test "x$host_os" = "x*FreeBSD*"; then : ++if expr "$host_os" : ".*freebsd.*" > /dev/null; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } + LIBS="-lexecinfo $LIBS" +@@ -5808,8 +5808,8 @@ extract() { + return 1 + fi + +- # Convert " -" to "\n" if not between quotes +- string=$(echo " $*" | $SED -e 's: -:\n:g' -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g") ++ # Convert " -" to "\n" if not between quotes and remove possible leading white spaces ++ string=$(echo " $*" | tr ' -' '\n' | $SED -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[:space:]*//') + SAVEIFS=$IFS + IFS=$(printf "\n\b") + for i in $string; do |