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.

100 lines
3.5 KiB

  1. diff -dur util-linux-2.12h/lib/nls.h util-linux-2.12h-patch/lib/nls.h
  2. --- util-linux-2.12h/lib/nls.h 2002-07-04 21:03:26.000000000 +0000
  3. +++ util-linux-2.12h-patch/lib/nls.h 2004-10-23 03:17:42.544527264 +0000
  4. @@ -1,6 +1,15 @@
  5. int main(int argc, char *argv[]);
  6. #include "../defines.h" /* for HAVE_locale_h */
  7. +#ifndef HAVE_locale_h
  8. +# define HAVE_locale_h 1
  9. +#endif
  10. +
  11. +#ifndef HAVE_langinfo_h
  12. +# define HAVE_langinfo_h 1
  13. +#endif
  14. +
  15. +
  16. #ifndef PACKAGE
  17. #define PACKAGE "util-linux"
  18. diff -dur util-linux-2.12h/MCONFIG util-linux-2.12h-patch/MCONFIG
  19. --- util-linux-2.12h/MCONFIG 2004-09-16 16:30:47.000000000 +0000
  20. +++ util-linux-2.12h-patch/MCONFIG 2004-10-23 03:18:22.577441336 +0000
  21. @@ -6,6 +6,8 @@
  22. # - remove the `-o root' part in INSTALLSUID
  23. # - set USE_TTY_GROUP=no
  24. # - define DESTDIR
  25. +# compile the raw utility
  26. +ADD_RAW=yes
  27. ## Configuration outside of this file you might want to do for mount:
  28. ## If make_include has HAVE_BLKID=yes, turn that into HAVE_BLKID=no
  29. @@ -16,8 +18,8 @@
  30. # Select for ARCH one of intel, alpha, sparc, arm, m68k, mips
  31. # Select for CPU i386 if the binaries must be able to run on an intel 386
  32. # (by default i486 code is generated, see below)
  33. -CPU=$(shell uname -m)
  34. -ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')
  35. +# CPU=$(shell uname -m)
  36. +# ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/')
  37. # If HAVE_PAM is set to "yes", then login, chfn, chsh, and newgrp
  38. # will use PAM for authentication. Additionally, passwd will not be
  39. @@ -125,8 +127,7 @@
  40. else
  41. CPUTAIL=486
  42. endif
  43. - CPUOPT= $(CPUHEAD)$(CPUTAIL)
  44. - OPT= -pipe -O2 $(CPUOPT) -fomit-frame-pointer
  45. + OPT= -pipe -O2 -fomit-frame-pointer
  46. else
  47. ifeq "$(ARCH)" "arm"
  48. OPT= -pipe -O2 -fsigned-char -fomit-frame-pointer
  49. Nur in util-linux-2.12h-patch/: MCONFIG~.
  50. Nur in util-linux-2.12h-patch/: MCONFIG.rej.
  51. diff -dur util-linux-2.12h/mount/mount.c util-linux-2.12h-patch/mount/mount.c
  52. --- util-linux-2.12h/mount/mount.c 2004-10-13 20:54:39.000000000 +0000
  53. +++ util-linux-2.12h-patch/mount/mount.c 2004-10-23 03:17:42.547526808 +0000
  54. @@ -37,7 +37,8 @@
  55. #include "env.h"
  56. #include "nls.h"
  57. -#define DO_PS_FIDDLING
  58. +// #define DO_PS_FIDDLING /* this could be a Problem */
  59. +
  60. #ifdef DO_PS_FIDDLING
  61. #include "setproctitle.h"
  62. Nur in util-linux-2.12h-patch/mount: mount.c~.
  63. diff -dur util-linux-2.12h/mount/swap.configure util-linux-2.12h-patch/mount/swap.configure
  64. --- util-linux-2.12h/mount/swap.configure 1999-07-09 02:56:39.000000000 +0000
  65. +++ util-linux-2.12h-patch/mount/swap.configure 2004-10-23 03:17:42.547526808 +0000
  66. @@ -23,7 +23,7 @@
  67. echo '#include <unistd.h>
  68. main(){ exit(0); swapon("/dev/null", 0); }' >> conftest.c
  69. eval $compile
  70. -if test -s conftest && ./conftest 2>/dev/null; then
  71. +if test -s conftest; then
  72. echo "#define SWAPON_HAS_TWO_ARGS" > swapargs.h
  73. echo $PAGEH >> swapargs.h
  74. echo $SWAPH >> swapargs.h
  75. diff -dur util-linux-2.12h/text-utils/Makefile util-linux-2.12h-patch/text-utils/Makefile
  76. --- util-linux-2.12h/text-utils/Makefile 2003-03-02 23:32:04.000000000 +0000
  77. +++ util-linux-2.12h-patch/text-utils/Makefile 2004-10-23 03:17:42.547526808 +0000
  78. @@ -44,6 +44,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. @@ -51,6 +52,7 @@
  87. else
  88. more:
  89. @echo $@ not made since it requires ncurses or termcap
  90. + @touch $@
  91. endif
  92. endif
  93. Nur in util-linux-2.12h-patch/text-utils: Makefile~.