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
3.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../util-linux/util-linux-2.20.1-fdiskbsdlabel.h-IA32.patch
  5. # Copyright (C) 2012 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 d4f338043daecc9be92d579bc74a238d744a0247 Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <chris@opensde.org>
  18. Date: Wed, 15 Feb 2012 13:39:22 +0100
  19. Subject: [PATCH] fdisk: fix to build for IA32
  20. Tested architectures:
  21. - i486 using gcc -march=i486
  22. - i586 using gcc -march=pentium-mmx
  23. - i686 using gcc -march={pentiumpro,pentium2,pentium3,pentium-m,pentium4}
  24. Without this fix building fdisk fails for for all tested arch/cpu types
  25. emiting following error:
  26. ------------------------------------------------------------------------------
  27. In file included from fdiskbsdlabel.c:62:0:
  28. fdiskbsdlabel.h:61:2: error: #error unknown architecture
  29. fdiskbsdlabel.c: In function 'bselect':
  30. fdiskbsdlabel.c:180:44: error: 'BSD_LABELSECTOR' undeclared (first use in this function)
  31. fdiskbsdlabel.c:180:44: note: each undeclared identifier is reported only once for each function it appears in
  32. fdiskbsdlabel.c: In function 'xbsd_write_bootstrap':
  33. fdiskbsdlabel.c:539:24: error: 'BSD_LABELSECTOR' undeclared (first use in this function)
  34. fdiskbsdlabel.c: In function 'xbsd_readlabel':
  35. fdiskbsdlabel.c:744:28: error: 'BSD_LABELSECTOR' undeclared (first use in this function)
  36. fdiskbsdlabel.c:744:60: error: 'BSD_LABELOFFSET' undeclared (first use in this function)
  37. fdiskbsdlabel.c: In function 'xbsd_writelabel':
  38. fdiskbsdlabel.c:769:32: error: 'BSD_LABELSECTOR' undeclared (first use in this function)
  39. fdiskbsdlabel.c:780:61: error: 'BSD_LABELOFFSET' undeclared (first use in this function)
  40. make[2]: *** [fdisk-fdiskbsdlabel.o] Error 1
  41. ------------------------------------------------------------------------------
  42. This fix was tested with following major toolchain components:
  43. binutils 2.21.53.0.2
  44. gcc 4.6.2
  45. glibc 2.14.1
  46. ---
  47. fdisk/fdiskbsdlabel.h | 2 +-
  48. 1 files changed, 1 insertions(+), 1 deletions(-)
  49. diff --git a/fdisk/fdiskbsdlabel.h b/fdisk/fdiskbsdlabel.h
  50. index 9f9e091..e58e2ff 100644
  51. --- a/fdisk/fdiskbsdlabel.h
  52. +++ b/fdisk/fdiskbsdlabel.h
  53. @@ -46,7 +46,7 @@
  54. #define BSD_LINUX_BOOTDIR "/usr/ucb/mdec"
  55. -#if defined (i386) || defined (__sparc__) || defined (__arm__) || \
  56. +#if defined (__i386__) || defined (__sparc__) || defined (__arm__) || \
  57. defined (__mips__) || defined (__s390__) || defined (__sh__) || \
  58. defined(__x86_64__) || defined (__avr32__) || defined(__cris__)
  59. #define BSD_LABELSECTOR 1
  60. --
  61. 1.7.2.3