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.

60 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../udftools/hot_fixes.patch
  5. # Copyright (C) 2009 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. Submitted By: Guy Dalziel <gdalziel at linuxfromscratch dot org>
  17. Date: 2009-08-06
  18. Initial Package Version: 1.0.0b3
  19. Upstream Status: Sent
  20. Origin: Debian, Dan Nicholson, and Guy Dalziel
  21. Description: Fixes compilation issues with gcc-4:
  22. wrudf.c:248: error: lvalue required as left operand of assignment
  23. cdrwtool.c:606: error: 'INT_MAX' undeclared (first use in this function)
  24. pktsetup.c:66: error: 'INT_MAX' undeclared (first use in this function)
  25. diff -Naur ./cdrwtool/cdrwtool.c.orig ./cdrwtool/cdrwtool.c
  26. --- ./cdrwtool/cdrwtool.c.orig 2002-12-28 04:48:51.000000000 +0000
  27. +++ ./cdrwtool/cdrwtool.c 2009-08-06 12:41:08.909353809 +0100
  28. @@ -27,6 +27,7 @@
  29. #include <unistd.h>
  30. #include <getopt.h>
  31. #include <signal.h>
  32. +#include <limits.h>
  33. #include <sys/ioctl.h>
  34. #include <asm/param.h>
  35. diff -Naur ./pktsetup/pktsetup.c.orig ./pktsetup/pktsetup.c
  36. --- ./pktsetup/pktsetup.c.orig 2002-11-26 07:18:51.000000000 +0000
  37. +++ ./pktsetup/pktsetup.c 2009-08-06 12:41:31.864951075 +0100
  38. @@ -21,6 +21,7 @@
  39. #include <sys/ioctl.h>
  40. #include <unistd.h>
  41. #include <getopt.h>
  42. +#include <limits.h>
  43. #include <bits/types.h>
  44. #include <sys/types.h>
  45. diff -Naur ./wrudf/wrudf.c.orig ./wrudf/wrudf.c
  46. --- ./wrudf/wrudf.c.orig 2002-11-26 07:18:51.000000000 +0000
  47. +++ ./wrudf/wrudf.c 2009-08-06 12:40:50.258305159 +0100
  48. @@ -245,7 +245,7 @@
  49. } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 )
  50. virtualPartitionNum = i;
  51. }
  52. - (char*)spm += spm->partitionMapLength;
  53. + spm = (char*)spm + spm->partitionMapLength;
  54. }
  55. if( medium == CDR ) {