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.

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