From 46776de3f94ec6193d13047e6b60188485ec1eee Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 12 Sep 2013 11:06:12 -0400 Subject: Update patch to use quotes around expansions. --- diff --git a/patches/03_fix-bad-substitution.patch b/patches/03_fix-bad-substitution.patch index 8211614..17ec392 100644 --- a/patches/03_fix-bad-substitution.patch +++ b/patches/03_fix-bad-substitution.patch @@ -30,7 +30,7 @@ diff -Naur src.orig/libc/sysdeps/unix/make-syscalls.sh src/libc/sysdeps/unix/mak vdso_symbol="${vdso_syscall%@*}" vdso_symver="${vdso_syscall#*@}" - vdso_symver="${vdso_symver//./_}" -+ vdso_symver=`echo $vdso_symver | sed 's/\./_/g'` ++ vdso_symver=`echo "$vdso_symver" | sed 's/\./_/g'` echo "\ \$(foreach p,\$(sysd-rules-targets),\$(objpfx)\$(patsubst %,\$p,$file).os): \\ \$(..)sysdeps/unix/make-syscalls.sh\ @@ -43,14 +43,14 @@ diff -Naur src.orig/libc/sysdeps/unix/Makefile src/libc/sysdeps/unix/Makefile *@@*) \ - ver=$${call##*@}; call=$${call%%@*}; ver=$${ver//./_}; \ + ver=$${call##*@}; call=$${call%%@*}; \ -+ ver=`echo $ver | sed 's/\./_/g'`; \ ++ ver=`echo "$ver" | sed 's/\./_/g'`; \ echo "strong_alias (_no_syscall, __$${call}_$${ver})"; \ echo "versioned_symbol (libc, __$${call}_$${ver}, $$call, $$ver);"\ ;; \ *@*) \ - ver=$${call##*@}; call=$${call%%@*}; ver=$${ver//./_}; \ + ver=$${call##*@}; call=$${call%%@*}; \ -+ ver=`echo $ver | sed 's/\./_/g'`; \ ++ ver=`echo "$ver" | sed 's/\./_/g'`; \ echo "strong_alias (_no_syscall, __$${call}_$${ver})"; \ echo "compat_symbol (libc, __$${call}_$${ver}, $$call, $$ver);" \ ;; \ -- cgit v0.9.1