[packages/ruby] - try updated version of posixsh patch

qboosh qboosh at pld-linux.org
Mon Oct 6 16:09:05 CEST 2014


commit 2e5b2795cd7a025618e0d41a5b63d4035765ddf1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 6 16:09:20 2014 +0200

    - try updated version of posixsh patch

 ruby-posixsh.patch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/ruby-posixsh.patch b/ruby-posixsh.patch
index 3c8985b..66039c8 100644
--- a/ruby-posixsh.patch
+++ b/ruby-posixsh.patch
@@ -8,9 +8,9 @@
 -    arch_pat="`echo \"${arch}\" | sed 's/\\./\\\\./g'`"
 -    sitearch_pat="`echo \"${sitearch}\" | sed 's/\\./\\\\./g'`"
 -    val="`echo '\"'\"${val}\"'\"' |
-+    exec_prefix_pat="$(echo "${exec_prefix}" | sed 's/\\./\\\\./g')"
-+    arch_pat="$(echo "${arch}" | sed 's/\\./\\\\./g')"
-+    sitearch_pat="$(echo "${sitearch}" | sed 's/\\./\\\\./g')"
++    exec_prefix_pat="$(echo "${exec_prefix}" | sed 's/\./\\./g')"
++    arch_pat="$(echo "${arch}" | sed 's/\./\\./g')"
++    sitearch_pat="$(echo "${sitearch}" | sed 's/\./\\./g')"
 +    val="$(echo '"'"${val}"'"' |
  	sed \
 -	    -e 's/\${\([[A-Z][A-Z_]]*\)}/\"\1\"/g' \
@@ -74,7 +74,7 @@
      done
      expr=['s/${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g']
 -    eval $var='"`echo \"\\\"${'$var'}\\\"\" | sed \"$expr;s/\\\"//g\"`"'
-+    eval $var='"$(echo "\\"${'$var'}\\"" | sed "$expr;s/\\"//g")"'
++    eval $var='"$(echo "\"${'$var'}\"" | sed "$expr;s/\"//g")"'
  }
  
  rubylibprefix='${libdir}/${RUBY_BASE_NAME}'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/2e5b2795cd7a025618e0d41a5b63d4035765ddf1



More information about the pld-cvs-commit mailing list