OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From d27d7936ecd9f357a3c6ee05e6548f8a68fdd4b7 Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 06:50:33 +0000
  19. Subject: [PATCH 09/30] Ensure that msgfmt doesn't encounter problems during
  20. gcc bootstrapping.
  21. Solves error messages like the following:
  22. msgfmt: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6)
  23. The libgcc_s.so used during build doesn't satisfy the needs of the
  24. libstdc++.so that msgfmt is linked against. On the other hand, msgfmt
  25. is used as a stand-alone application here, and what library it uses
  26. behind the scenes is of no concern to the gcc build process.
  27. Therefore, simply invoking it "as usual", i.e. without any special
  28. library path, will make it work as expected here.
  29. 2011-09-19 Martin von Gagern
  30. References:
  31. https://bugs.gentoo.org/372377
  32. https://bugs.gentoo.org/295480
  33. ---
  34. libstdc++-v3/po/Makefile.am | 1 +
  35. libstdc++-v3/po/Makefile.in | 1 +
  36. 2 files changed, 2 insertions(+)
  37. diff --git a/libstdc++-v3/po/Makefile.am b/libstdc++-v3/po/Makefile.am
  38. index a9391d8d167..f7eee24dc8c 100644
  39. --- a/libstdc++-v3/po/Makefile.am
  40. +++ b/libstdc++-v3/po/Makefile.am
  41. @@ -38,6 +38,7 @@ MSGFMT = msgfmt
  42. EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
  43. .po.mo:
  44. + env --unset=LD_LIBRARY_PATH \
  45. $(MSGFMT) -o $@ $<
  46. all-local: all-local-$(USE_NLS)
  47. diff --git a/libstdc++-v3/po/Makefile.in b/libstdc++-v3/po/Makefile.in
  48. index a0f84b0cfa0..ab24a47a2fd 100644
  49. --- a/libstdc++-v3/po/Makefile.in
  50. +++ b/libstdc++-v3/po/Makefile.in
  51. @@ -548,6 +548,7 @@ uninstall-am:
  52. .po.mo:
  53. + env --unset=LD_LIBRARY_PATH \
  54. $(MSGFMT) -o $@ $<
  55. all-local: all-local-$(USE_NLS)
  56. --
  57. 2.27.0