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.

86 lines
4.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gcc/no-include-fixed-dir.patch
  5. # Copyright (C) 2010 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. # Do not create a 'include-fixed' directory containing certain header files,
  17. # but install the header file into the default include directory.
  18. #
  19. # Without this patch a 'include-fixed' directory is created on install, where
  20. # the 'limits.h' and 'syslimits.h' header files get installed as following
  21. # flist output is demonstrating:
  22. # --------------------------------------------------------------------------
  23. # gcc: usr/lib/gcc/i686-unknown-linux-gnu/4.4.3/include-fixed
  24. # gcc: usr/lib/gcc/i686-unknown-linux-gnu/4.4.3/include-fixed/README
  25. # gcc: usr/lib/gcc/i686-unknown-linux-gnu/4.4.3/include-fixed/limits.h
  26. # gcc: usr/lib/gcc/i686-unknown-linux-gnu/4.4.3/include-fixed/syslimits.h
  27. # --------------------------------------------------------------------------
  28. --- gcc-4.4.3/gcc/Makefile.in.orig 2010-03-22 12:15:16.545004067 +0100
  29. +++ gcc-4.4.3/gcc/Makefile.in 2010-03-22 12:21:27.841867139 +0100
  30. @@ -4277,10 +4277,10 @@
  31. if [ $$? -eq 0 ]; then \
  32. dir=`cd include-fixed; ${PWD_COMMAND}`; \
  33. for i in $$files; do \
  34. - dest=`ls -ld $(DESTDIR)$(libsubdir)/include-fixed/$$i | sed -n 's/.*-> //p'`; \
  35. + dest=`ls -ld $(DESTDIR)$(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
  36. if expr "$$dest" : "$$dir.*" > /dev/null; then \
  37. rm -f $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
  38. - ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include-fixed/$$i; \
  39. + ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(DESTDIR)$(libsubdir)/include/$$i; \
  40. fi; \
  41. done; \
  42. fi
  43. @@ -4288,9 +4288,6 @@
  44. # Create or recreate the gcc private include file directory.
  45. install-include-dir: installdirs
  46. $(mkinstalldirs) $(DESTDIR)$(libsubdir)/include
  47. - -rm -rf $(DESTDIR)$(libsubdir)/include-fixed
  48. - mkdir $(DESTDIR)$(libsubdir)/include-fixed
  49. - -chmod a+rx $(DESTDIR)$(libsubdir)/include-fixed
  50. # Create or recreate the install-tools include file directory.
  51. itoolsdir = $(libexecsubdir)/install-tools
  52. @@ -4308,7 +4305,7 @@
  53. (cd `${PWD_COMMAND}`/include ; \
  54. tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
  55. (cd `${PWD_COMMAND}`/include-fixed ; \
  56. - tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
  57. + tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
  58. # /bin/sh on some systems returns the status of the first tar,
  59. # and that can lose with GNU tar which always writes a full block.
  60. # So use `exit 0' to ignore its exit status.
  61. @@ -4319,7 +4316,7 @@
  62. cd `${PWD_COMMAND}`/include ; \
  63. find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
  64. cd `${PWD_COMMAND}`/include-fixed ; \
  65. - find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
  66. + find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
  67. # Install the include directory using cp.
  68. install-headers-cp: stmp-int-hdrs $(STMP_FIXPROTO) install-include-dir
  69. @@ -4329,11 +4326,11 @@
  70. # Targets without dependencies, for use in prev-gcc during bootstrap.
  71. real-install-headers-tar:
  72. (cd `${PWD_COMMAND}`/include-fixed ; \
  73. - tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
  74. + tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
  75. real-install-headers-cpio:
  76. cd `${PWD_COMMAND}`/include-fixed ; \
  77. - find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include-fixed
  78. + find . -print | cpio -pdum $(DESTDIR)$(libsubdir)/include
  79. real-install-headers-cp:
  80. cp -p -r include-fixed $(DESTDIR)$(libsubdir)