xdvik-22.85-mksedscript_gentoo.patch 699 B

123456789101112131415161718192021
  1. This used to eval something like:
  2. foo=char **
  3. so, the first match to * would be executed
  4. causing: https://bugs.gentoo.org/show_bug.cgi?id=410695
  5. remove the quotes and quote again so that we always get foo="char **"
  6. Index: xdvik-22.85/texk/xdvik/mksedscript
  7. ===================================================================
  8. --- xdvik-22.85.orig/texk/xdvik/mksedscript
  9. +++ xdvik-22.85/texk/xdvik/mksedscript
  10. @@ -45,7 +45,7 @@ done
  11. eval "`awk '/^#define/ { printf "mk_%s=%s", $2, $3
  12. for (i = 4; i <= NF; i++) printf " %s", $i
  13. - print "" }' c-auto.h`"
  14. + print "" }' c-auto.h | tr -d '"' |sed -e 's/\(.*\)=\(.*\)$/\1="\2"/'`"
  15. # eval "`cat c-auto.h \
  16. # | grep '^[ ]*#[ ]*define[ ]' \