logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

gawk-fix.patch (1417B)


  1. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  2. #
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. Our version of gawk does not seem to like printing, at least in the way that
  5. this attempts to use it. Instead, make it print to console and use working
  6. bash redirects.
  7. --- e2fsprogs-1.45.7/lib/et/compile_et.sh.in 2022-05-18 19:26:17.182054784 +1000
  8. +++ e2fsprogs-1.45.7/lib/et/compile_et.sh.in 2022-05-18 19:30:16.489294776 +1000
  9. @@ -44,14 +44,14 @@
  10. exit 1;
  11. fi
  12. -$AWK -f "${DIR}/et_h.awk" "outfile=${BASE}.h.$$" "outfn=${BASE}.h" "$ROOT.et"
  13. +$AWK -f "${DIR}/et_h.awk" "$ROOT.et" > ${BASE}.h
  14. if test -f ${BASE}.h && cmp -s ${BASE}.h.$$ ${BASE}.h ; then
  15. rm -f ${BASE}.h.$$
  16. else
  17. mv -f ${BASE}.h.$$ ${BASE}.h
  18. chmod a-w ${BASE}.h
  19. fi
  20. -$AWK -f "${DIR}/et_c.awk" "outfile=${BASE}.c.$$" "outfn=${BASE}.c" "$ROOT.et"
  21. +$AWK -f "${DIR}/et_c.awk" "$ROOT.et" > ${BASE}.c
  22. if test -f ${BASE}.c && cmp -s ${BASE}.c.$$ ${BASE}.c ; then
  23. rm -f ${BASE}.c.$$
  24. else
  25. --- e2fsprogs-1.45.7/lib/ss/mk_cmds.sh.in 2022-05-18 19:33:16.024962919 +1000
  26. +++ e2fsprogs-1.45.7/lib/ss/mk_cmds.sh.in 2022-05-18 19:33:39.650576476 +1000
  27. @@ -43,7 +43,7 @@
  28. fi
  29. ${SED} -f "${DIR}/ct_c.sed" "${FILE}" \
  30. - | ${AWK} -f "${DIR}/ct_c.awk" "rootname=${ROOT}" "outfile=${TMP}" -
  31. + | ${AWK} -f "${DIR}/ct_c.awk" "rootname=${ROOT}" - > "${TMP}"
  32. if grep "^#__ERROR_IN_FILE" "${TMP}" > /dev/null; then
  33. rm "${TMP}"