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.

107 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 - 2005 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 -dur util-linux-2.12h/lib/nls.h util-linux-2.12h-patch/lib/nls.h
  20. --- util-linux-2.12h/lib/nls.h 2002-07-04 21:03:26.000000000 +0000
  21. +++ util-linux-2.12h-patch/lib/nls.h 2004-10-23 03:17:42.544527264 +0000
  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 -dur util-linux-2.12h/MCONFIG util-linux-2.12h-patch/MCONFIG
  37. --- util-linux-2.12h/MCONFIG 2004-09-16 16:30:47.000000000 +0000
  38. +++ util-linux-2.12h-patch/MCONFIG 2004-10-23 03:18:22.577441336 +0000
  39. @@ -6,6 +6,8 @@
  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. ## Configuration outside of this file you might want to do for mount:
  46. ## If make_include has HAVE_BLKID=yes, turn that into HAVE_BLKID=no
  47. @@ -16,8 +18,8 @@
  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. @@ -125,8 +127,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. Nur in util-linux-2.12h-patch/: MCONFIG~.
  68. Nur in util-linux-2.12h-patch/: MCONFIG.rej.
  69. diff -dur util-linux-2.12h/mount/mount.c util-linux-2.12h-patch/mount/mount.c
  70. --- util-linux-2.12h/mount/mount.c 2004-10-13 20:54:39.000000000 +0000
  71. +++ util-linux-2.12h-patch/mount/mount.c 2004-10-23 03:17:42.547526808 +0000
  72. @@ -37,7 +37,8 @@
  73. #include "env.h"
  74. #include "nls.h"
  75. -#define DO_PS_FIDDLING
  76. +// #define DO_PS_FIDDLING /* this could be a Problem */
  77. +
  78. #ifdef DO_PS_FIDDLING
  79. #include "setproctitle.h"
  80. Nur in util-linux-2.12h-patch/mount: mount.c~.
  81. diff -dur util-linux-2.12h/text-utils/Makefile util-linux-2.12h-patch/text-utils/Makefile
  82. --- util-linux-2.12h/text-utils/Makefile 2003-03-02 23:32:04.000000000 +0000
  83. +++ util-linux-2.12h-patch/text-utils/Makefile 2004-10-23 03:17:42.547526808 +0000
  84. @@ -44,6 +44,7 @@
  85. # Do not have ncurses - give up on pg and ul
  86. pg ul:
  87. @echo $@ not made since it requires ncurses
  88. + @touch $@
  89. # For more we can also try termcap
  90. ifeq "$(HAVE_TERMCAP)" "yes"
  91. more: more.o $(LIB)/xstrncpy.o
  92. @@ -51,6 +52,7 @@
  93. else
  94. more:
  95. @echo $@ not made since it requires ncurses or termcap
  96. + @touch $@
  97. endif
  98. endif
  99. Nur in util-linux-2.12h-patch/text-utils: Makefile~.