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.

115 lines
3.9 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/target/lvp/patches/xfree86_hotfixes.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 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. diff -pruN xc_orig/fonts/util/ucs2any.c xc/fonts/util/ucs2any.c
  20. --- xc_orig/fonts/util/ucs2any.c 2003-09-21 12:54:14.000000000 +0200
  21. +++ xc/fonts/util/ucs2any.c 2004-01-16 19:49:18.000000000 +0100
  22. @@ -48,9 +48,6 @@
  23. #include <ctype.h>
  24. #include <errno.h>
  25. #include <fcntl.h>
  26. -#ifndef NEED_BASENAME
  27. -#include <libgen.h>
  28. -#endif
  29. #include <limits.h>
  30. #include <stdarg.h>
  31. #include <stdio.h>
  32. @@ -61,17 +58,6 @@
  33. /* global variable for argv[0] */
  34. const char *my_name = NULL;
  35. -#ifdef NEED_BASENAME
  36. -static char *
  37. -basename(char *pathname)
  38. -{
  39. - char *ptr;
  40. -
  41. - ptr = strrchr(pathname, '/');
  42. - return ((ptr == NULL) ? pathname : &ptr[1]);
  43. -}
  44. -#endif
  45. -
  46. /* "CLASS" "z" string and memory manipulation */
  47. static void *
  48. diff -pruN xc_orig/programs/glxgears/Imakefile xc/programs/glxgears/Imakefile
  49. --- xc_orig/programs/glxgears/Imakefile 2001-04-02 23:12:11.000000000 +0200
  50. +++ xc/programs/glxgears/Imakefile 2004-01-16 19:44:27.000000000 +0100
  51. @@ -2,7 +2,7 @@ XCOMM $XConsortium: Imakefile /main/7 19
  52. XCOMM $XFree86: xc/programs/glxgears/Imakefile,v 1.1 2001/04/02 21:12:11 dawes Exp $
  53. #include <Threads.tmpl>
  54. DEPLIBS = $(DEPGLXLIB) $(DEPXLIB)
  55. -LOCAL_LIBRARIES = $(GLXLIB) $(XLIB)
  56. +LOCAL_LIBRARIES = $(GLXLIB) $(XLIB) -ldl -lXxf86vm
  57. SYS_LIBRARIES = MathLibrary
  58. SimpleProgramTarget(glxgears)
  59. diff -pruN xc_orig/programs/glxinfo/Imakefile xc/programs/glxinfo/Imakefile
  60. --- xc_orig/programs/glxinfo/Imakefile 2002-11-22 23:56:03.000000000 +0100
  61. +++ xc/programs/glxinfo/Imakefile 2004-01-16 19:41:59.000000000 +0100
  62. @@ -5,13 +5,13 @@ XCOMM $XFree86: xc/programs/glxinfo/Imak
  63. #if BuildGLULibrary
  64. DEPLIBS = $(DEPGLULIB) $(DEPGLXLIB) $(DEPXLIB)
  65. -LOCAL_LIBRARIES = $(GLULIB) $(GLXLIB) $(XLIB)
  66. +LOCAL_LIBRARIES = $(GLULIB) $(GLXLIB) $(XLIB) -ldl -lXxf86vm
  67. DEFINES = -DDO_GLU
  68. #else
  69. DEPLIBS = $(DEPGLXLIB) $(DEPXLIB)
  70. -LOCAL_LIBRARIES = $(GLXLIB) $(XLIB)
  71. +LOCAL_LIBRARIES = $(GLXLIB) $(XLIB) -ldl -lXxf86vm
  72. #endif
  73. diff -pruN xc_orig/programs/xdm/Imakefile xc/programs/xdm/Imakefile
  74. --- xc_orig/programs/xdm/Imakefile 2003-12-19 05:51:15.000000000 +0100
  75. +++ xc/programs/xdm/Imakefile 2004-01-16 18:50:57.000000000 +0100
  76. @@ -121,16 +121,7 @@ SYS_LIBRARIES1 = -lauth
  77. SYS_LIBRARIES1 = -ls
  78. #endif
  79. -#if HasLibCrypt
  80. -#ifdef SpecialLibCrypt
  81. -CRYPT_LIBRARIES = SpecialLibCrypt
  82. -#else
  83. CRYPT_LIBRARIES = -lcrypt
  84. -#if defined(LynxOSArchitecture)
  85. -CRYPT_DEFINES = -DHAS_CRYPT
  86. -#endif
  87. -#endif
  88. -#endif
  89. #if HasBSD44Sockets
  90. SOCK_DEFINES = -DBSD44SOCKETS
  91. diff -pruN xc_orig/extras/ogl-sample/main/gfx/lib/glu/libnurbs/internals/mymath.h xc/extras/ogl-sample/main/gfx/lib/glu/libnurbs/internals/mymath.h
  92. --- xc_orig/extras/ogl-sample/main/gfx/lib/glu/libnurbs/internals/mymath.h 2002-05-31 18:36:49.000000000 +0200
  93. +++ xc/extras/ogl-sample/main/gfx/lib/glu/libnurbs/internals/mymath.h 2004-01-26 10:04:10.000000000 +0100
  94. @@ -66,8 +66,8 @@ extern "C" float floorf(float);
  95. #define NEEDCEILF
  96. #endif
  97. #elif defined(NEEDCEILF)
  98. -extern "C" float ceilf(float);
  99. -extern "C" float floorf(float);
  100. +//extern "C" float ceilf(float);
  101. +//extern "C" float floorf(float);
  102. #endif
  103. #ifdef LIBRARYBUILD