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.

111 lines
3.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/base/util-linux/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 -ru util-linux-2.11t/lib/nls.h util-linux-2.11t_/lib/nls.h
  20. --- util-linux-2.11t/lib/nls.h 2002-07-04 22:03:26.000000000 +0100
  21. +++ util-linux-2.11t_/lib/nls.h 2002-07-19 12:53:40.000000000 +0100
  22. @@ -1,6 +1,15 @@
  23. int main(int argc, char *argv[]);
  24. #include "../defines.h" /* for HAVE_locale_h */
  25. +#ifndef HAVE_locale_h
  26. +# define HAVE_locale_h 1
  27. +#endif
  28. +
  29. +#ifndef HAVE_langinfo_h
  30. +# define HAVE_langinfo_h 1
  31. +#endif
  32. +
  33. +
  34. #ifndef PACKAGE
  35. #define PACKAGE "util-linux"
  36. diff -ru util-linux-2.11t/MCONFIG util-linux-2.11t_/MCONFIG
  37. --- util-linux-2.11t/MCONFIG 2002-07-04 22:40:07.000000000 +0100
  38. +++ util-linux-2.11t_/MCONFIG 2002-07-19 12:52:47.000000000 +0100
  39. @@ -6,12 +6,14 @@
  40. # - remove the `-o root' part in INSTALLSUID
  41. # - set USE_TTY_GROUP=no
  42. # - define DESTDIR
  43. +# compile the raw utility
  44. +ADD_RAW=yes
  45. # Select for ARCH one of intel, alpha, sparc, arm, m68k, mips
  46. # Select for CPU i386 if the binaries must be able to run on an intel 386
  47. # (by default i486 code is generated, see below)
  48. -CPU=$(shell uname -m)
  49. -ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')
  50. +#CPU=$(shell uname -m)
  51. +#ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')
  52. # If HAVE_PAM is set to "yes", then login, chfn, chsh, and newgrp
  53. # will use PAM for authentication. Additionally, passwd will not be
  54. @@ -115,8 +117,7 @@
  55. else
  56. CPUTAIL=486
  57. endif
  58. - CPUOPT= $(CPUHEAD)$(CPUTAIL)
  59. - OPT= -pipe -O2 $(CPUOPT) -fomit-frame-pointer
  60. + OPT= -pipe -O2 -fomit-frame-pointer
  61. else
  62. ifeq "$(ARCH)" "arm"
  63. OPT= -pipe -O2 -fsigned-char -fomit-frame-pointer
  64. diff -ru util-linux-2.11t/mount/mount.c util-linux-2.11t_/mount/mount.c
  65. --- util-linux-2.11t/mount/mount.c 2002-07-04 22:29:01.000000000 +0100
  66. +++ util-linux-2.11t_/mount/mount.c 2002-07-19 12:54:26.000000000 +0100
  67. @@ -69,7 +69,8 @@
  68. #include "env.h"
  69. #include "nls.h"
  70. -#define DO_PS_FIDDLING
  71. +// #define DO_PS_FIDDLING /* this could be a Problem */
  72. +
  73. #ifdef DO_PS_FIDDLING
  74. #include "setproctitle.h"
  75. diff -ru util-linux-2.11t/text-utils/Makefile util-linux-2.11t_/text-utils/Makefile
  76. --- util-linux-2.11t/text-utils/Makefile 2002-07-05 21:31:32.000000000 +0100
  77. +++ util-linux-2.11t_/text-utils/Makefile 2002-07-19 12:56:14.000000000 +0100
  78. @@ -50,6 +50,7 @@
  79. # Do not have ncurses - give up on pg and ul
  80. pg ul:
  81. @echo $@ not made since it requires ncurses
  82. + @touch $@
  83. # For more we can also try termcap
  84. ifeq "$(HAVE_TERMCAP)" "yes"
  85. more: more.o $(LIB)/xstrncpy.o
  86. @@ -57,6 +58,7 @@
  87. else
  88. more:
  89. @echo $@ not made since it requires ncurses or termcap
  90. + @touch $@
  91. endif
  92. endif
  93. --- ./mount/swap.configure.orig 2002-10-16 12:38:13.000000000 +0200
  94. +++ ./mount/swap.configure 2002-10-16 12:38:36.000000000 +0200
  95. @@ -23,7 +23,7 @@
  96. echo '#include <unistd.h>
  97. main(){ exit(0); swapon("/dev/null", 0); }' >> conftest.c
  98. eval $compile
  99. -if test -s conftest && ./conftest 2>/dev/null; then
  100. +if test -s conftest; then
  101. echo "#define SWAPON_HAS_TWO_ARGS" > swapargs.h
  102. echo $PAGEH >> swapargs.h
  103. echo $SWAPH >> swapargs.h