1
0

000-relocatable.patch 837 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --- a/lib/et/compile_et.sh.in
  2. +++ b/lib/et/compile_et.sh.in
  3. @@ -2,9 +2,15 @@
  4. #
  5. #
  6. -datarootdir=@datarootdir@
  7. -AWK=@AWK@
  8. -DIR=@datadir@/et
  9. +if test "x$STAGING_DIR" = x ; then
  10. + datarootdir=@datarootdir@
  11. + AWK=@AWK@
  12. + DIR=@datadir@/et
  13. +else
  14. + datarootdir="$STAGING_DIR/../hostpkg/share"
  15. + AWK=awk
  16. + DIR="$datarootdir/et"
  17. +fi
  18. if test "$1" = "--build-tree" ; then
  19. shift;
  20. --- a/lib/ss/mk_cmds.sh.in
  21. +++ b/lib/ss/mk_cmds.sh.in
  22. @@ -1,11 +1,17 @@
  23. #!/bin/sh
  24. #
  25. #
  26. -
  27. -datarootdir=@datarootdir@
  28. -DIR=@datadir@/ss
  29. -AWK=@AWK@
  30. -SED=@SED@
  31. +if test "x$STAGING_DIR" = x ; then
  32. + datarootdir=@datarootdir@
  33. + DIR=@datadir@/ss
  34. + AWK=@AWK@
  35. + SED=@SED@
  36. +else
  37. + datarootdir="$STAGING_DIR/../hostpkg/share"
  38. + DIR="$datarootdir/ss"
  39. + AWK=awk
  40. + SED=sed
  41. +fi
  42. for as_var in \
  43. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \