0003-Make-msgfmt-output-in-little-endian.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 156c523e2945c9b43c5500fb93988b0dd2f08d75 Mon Sep 17 00:00:00 2001
  2. From: Vladimir Serbinenko <phcoder@gmail.com>
  3. Date: Sun, 1 Mar 2020 12:09:25 +0000
  4. Subject: [PATCH 3/4] Make msgfmt output in little-endian
  5. GRUB expects this.
  6. ---
  7. gettext-runtime/po/Makefile.in.in | 6 +++---
  8. 1 file changed, 3 insertions(+), 3 deletions(-)
  9. diff --git a/gettext-runtime/po/Makefile.in.in b/gettext-runtime/po/Makefile.in.in
  10. index 32e0c99a2..f3ef54c39 100644
  11. --- a/gettext-runtime/po/Makefile.in.in
  12. +++ b/gettext-runtime/po/Makefile.in.in
  13. @@ -84,13 +84,13 @@ CATALOGS = @CATALOGS@
  14. .po.mo:
  15. @echo "$(MSGFMT) -c -o $@ $<"; \
  16. - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
  17. + $(MSGFMT) --endianness=little -c -o t-$@ $< && mv t-$@ $@
  18. .po.gmo:
  19. @lang=`echo $* | sed -e 's,.*/,,'`; \
  20. test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
  21. - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
  22. - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
  23. + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) --endianness=little -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
  24. + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) --endianness=little -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
  25. .sin.sed:
  26. sed -e '/^#/d' $< > t-$@
  27. --
  28. 2.17.1