mirror of the now-defunct rocklinux.org
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.

165 lines
7.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/mozilla/gcc-4.0.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  20. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  21. #
  22. # T2 SDE: package/.../mozilla/gcc-4.0.patch
  23. # Copyright (C) 2004 - 2005 The T2 SDE Project
  24. #
  25. # More information can be found in the files COPYING and README.
  26. #
  27. # This patch file is dual-licensed. It is available under the license the
  28. # patched project is licensed under, as long as it is an OpenSource license
  29. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  30. # of the GNU General Public License as published by the Free Software
  31. # Foundation; either version 2 of the License, or (at your option) any later
  32. # version.
  33. # --- T2-COPYRIGHT-NOTE-END ---
  34. diff -Naur mozilla_orig/security/nss/lib/pki1/oiddata.h mozilla/security/nss/lib/pki1/oiddata.h
  35. --- mozilla_orig/security/nss/lib/pki1/oiddata.h 2002-01-04 06:22:07.000000000 +0100
  36. +++ mozilla/security/nss/lib/pki1/oiddata.h 2005-09-10 13:12:13.984991440 +0200
  37. @@ -43,8 +43,8 @@
  38. #include "nsspki1t.h"
  39. #endif /* NSSPKI1T_H */
  40. -extern const NSSOID nss_builtin_oids[];
  41. -extern const PRUint32 nss_builtin_oid_count;
  42. +/*extern const NSSOID nss_builtin_oids[];
  43. + extern const PRUint32 nss_builtin_oid_count; */
  44. /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/
  45. /*extern const PRUint32 nss_attribute_type_alias_count;*/
  46. diff -Naur mozilla_orig/security/nss/lib/pki1/oidgen.perl mozilla/security/nss/lib/pki1/oidgen.perl
  47. --- mozilla_orig/security/nss/lib/pki1/oidgen.perl 2001-11-08 01:15:25.000000000 +0100
  48. +++ mozilla/security/nss/lib/pki1/oidgen.perl 2005-09-10 13:13:26.613950160 +0200
  49. @@ -233,9 +233,6 @@
  50. #include "nsspki1t.h"
  51. #endif /* NSSPKI1T_H */
  52. -extern const NSSOID nss_builtin_oids[];
  53. -extern const PRUint32 nss_builtin_oid_count;
  54. -
  55. /*extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];*/
  56. /*extern const PRUint32 nss_attribute_type_alias_count;*/
  57. diff -Naur mozilla_orig/security/nss/lib/pki1/pki1.h mozilla/security/nss/lib/pki1/pki1.h
  58. --- mozilla_orig/security/nss/lib/pki1/pki1.h 2001-07-19 22:40:42.000000000 +0200
  59. +++ mozilla/security/nss/lib/pki1/pki1.h 2005-09-10 13:15:07.648590560 +0200
  60. @@ -56,6 +56,8 @@
  61. PR_BEGIN_EXTERN_C
  62. /* fgmr 19990505 moved these here from oiddata.h */
  63. +extern const NSSOID nss_builtin_oids[];
  64. +extern const PRUint32 nss_builtin_oid_count;
  65. extern const nssAttributeTypeAliasTable nss_attribute_type_aliases[];
  66. extern const PRUint32 nss_attribute_type_alias_count;
  67. Imported from Fedora Core.
  68. - Rene Rebe <rene@exactcode.de>
  69. Index: netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
  70. ===================================================================
  71. RCS file: /cvsroot/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp,v
  72. retrieving revision 1.7.20.1
  73. diff -u -r1.7.20.1 nsHttpConnectionMgr.cpp
  74. --- ./netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 1 Sep 2004 23:31:03 -0000 1.7.20.1
  75. +++ ./netwerk/protocol/http/src/nsHttpConnectionMgr.cpp 4 Mar 2005 19:59:57 -0000
  76. @@ -834,8 +834,8 @@
  77. void
  78. nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
  79. {
  80. - PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
  81. - PRUint16 value = PRUint32(param) & 0x0000FFFF;
  82. + PRUint16 name = (NS_PTR_TO_INT32(param) & 0xFFFF0000) >> 16;
  83. + PRUint16 value = NS_PTR_TO_INT32(param) & 0x0000FFFF;
  84. switch (name) {
  85. case MAX_CONNECTIONS:
  86. Index: widget/src/gtk2/nsDragService.cpp
  87. ===================================================================
  88. RCS file: /cvsroot/mozilla/widget/src/gtk2/nsDragService.cpp,v
  89. retrieving revision 1.5
  90. diff -u -r1.5 nsDragService.cpp
  91. --- ./widget/src/gtk2/nsDragService.cpp 30 Oct 2003 01:48:41 -0000 1.5
  92. +++ ./widget/src/gtk2/nsDragService.cpp 4 Mar 2005 20:00:01 -0000
  93. @@ -838,7 +838,7 @@
  94. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  95. listTarget->target = g_strdup(gMimeListType);
  96. listTarget->flags = 0;
  97. - listTarget->info = (guint)listAtom;
  98. + listTarget->info = (guint)(NS_PTR_TO_INT32(listAtom));
  99. PR_LOG(sDragLm, PR_LOG_DEBUG,
  100. ("automatically adding target %s with id %ld\n",
  101. listTarget->target, listAtom));
  102. @@ -877,7 +877,7 @@
  103. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  104. listTarget->target = g_strdup(gTextUriListType);
  105. listTarget->flags = 0;
  106. - listTarget->info = (guint)listAtom;
  107. + listTarget->info = (guint)NS_PTR_TO_INT32(listAtom);
  108. PR_LOG(sDragLm, PR_LOG_DEBUG,
  109. ("automatically adding target %s with \
  110. id %ld\n", listTarget->target, listAtom));
  111. @@ -914,7 +914,7 @@
  112. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  113. target->target = g_strdup(flavorStr);
  114. target->flags = 0;
  115. - target->info = (guint)atom;
  116. + target->info = (guint)NS_PTR_TO_INT32(atom);
  117. PR_LOG(sDragLm, PR_LOG_DEBUG,
  118. ("adding target %s with id %ld\n",
  119. target->target, atom));
  120. @@ -931,7 +931,7 @@
  121. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  122. plainTarget->target = g_strdup(kTextMime);
  123. plainTarget->flags = 0;
  124. - plainTarget->info = (guint)plainAtom;
  125. + plainTarget->info = (guint)NS_PTR_TO_INT32(plainAtom);
  126. PR_LOG(sDragLm, PR_LOG_DEBUG,
  127. ("automatically adding target %s with \
  128. id %ld\n", plainTarget->target, plainAtom));
  129. @@ -948,7 +948,7 @@
  130. (GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
  131. urlTarget->target = g_strdup(gMozUrlType);
  132. urlTarget->flags = 0;
  133. - urlTarget->info = (guint)urlAtom;
  134. + urlTarget->info = (guint)NS_PTR_TO_INT32(urlAtom);
  135. PR_LOG(sDragLm, PR_LOG_DEBUG,
  136. ("automatically adding target %s with \
  137. id %ld\n", urlTarget->target, urlAtom));
  138. And last, but not least, a fix for 64bit systems.
  139. - Rene Rebe <rene@exactcode.de>
  140. --- mozilla/gfx/src/freetype/nsFreeType.cpp.vanilla 2005-09-11 13:44:37.000000000 +0200
  141. +++ mozilla/gfx/src/freetype/nsFreeType.cpp 2005-09-11 13:38:49.000000000 +0200
  142. @@ -96,7 +96,7 @@
  143. // Define the FreeType2 functions we resolve at run time.
  144. // see the comment near nsFreeType2::DoneFace() for more info
  145. //
  146. -#define NS_FT2_OFFSET(f) (int)&((nsFreeType2*)0)->f
  147. +#define NS_FT2_OFFSET(f) (size_t)&((nsFreeType2*)0)->f
  148. FtFuncList nsFreeType2::FtFuncs [] = {
  149. {"FT_Done_Face", NS_FT2_OFFSET(nsFT_Done_Face), PR_TRUE},
  150. {"FT_Done_FreeType", NS_FT2_OFFSET(nsFT_Done_FreeType), PR_TRUE},