OpenSDE Packages Database (without history before r20070)
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.

89 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../util-linux/dietlibc.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./login-utils/vipw.c.orig 2007-07-17 13:07:32.000000000 -0400
  17. +++ ./login-utils/vipw.c 2007-07-17 13:08:35.000000000 -0400
  18. @@ -73,6 +73,10 @@
  19. #define FILENAMELEN 67
  20. +#ifndef _PATH_VI
  21. +#define _PATH_VI "/usr/bin/vi"
  22. +#endif
  23. +
  24. char *progname;
  25. enum { VIPW, VIGR };
  26. int program;
  27. --- ./login-utils/login.c.orig 2007-07-17 12:53:12.000000000 -0400
  28. +++ ./login-utils/login.c 2007-07-17 12:53:35.000000000 -0400
  29. @@ -152,7 +152,7 @@
  30. #ifndef __linux__
  31. # include <tzfile.h>
  32. #endif
  33. -#include <lastlog.h>
  34. +#include <utmp.h>
  35. #define SLEEP_EXIT_TIMEOUT 5
  36. --- ./mount/fstab.c.orig 2007-07-17 13:17:38.000000000 -0400
  37. +++ ./mount/fstab.c 2007-07-17 13:17:59.000000000 -0400
  38. @@ -399,9 +399,6 @@
  39. /* Flag to indicate that signals have been set up. */
  40. static int signals_have_been_setup = 0;
  41. -/* Ensure that the lock is released if we are interrupted. */
  42. -extern char *strsignal(int sig); /* not always in <string.h> */
  43. -
  44. static void
  45. handler (int sig) {
  46. die(EX_USER, "%s", strsignal(sig));
  47. --- ./sys-utils/dmesg.c.orig 2007-07-18 16:09:10.000000000 -0400
  48. +++ ./sys-utils/dmesg.c 2007-07-18 16:10:01.000000000 -0400
  49. @@ -35,7 +35,7 @@
  50. #include <stdlib.h>
  51. #include "nls.h"
  52. -#if __GNU_LIBRARY__ < 5
  53. +#if (__GNU_LIBRARY__ < 5) && (! defined(__dietlibc__))
  54. #ifndef __alpha__
  55. # define __NR_klogctl __NR_syslog
  56. --- ./text-utils/column.c.orig 2007-07-18 16:24:58.000000000 -0400
  57. +++ ./text-utils/column.c 2007-07-18 16:25:19.000000000 -0400
  58. @@ -50,6 +50,7 @@
  59. #include "errs.h"
  60. #include "nls.h"
  61. +#include <termios.h>
  62. #include "widechar.h"
  63. #ifdef ENABLE_WIDECHAR
  64. --- ./partx/solaris.c.orig 2007-07-18 16:31:07.000000000 -0400
  65. +++ ./partx/solaris.c 2007-07-18 16:31:37.000000000 -0400
  66. @@ -1,12 +1,11 @@
  67. #include <stdio.h>
  68. #include <time.h> /* time_t */
  69. +#include <sys/types.h> /* daddr_t */
  70. #include "partx.h"
  71. #define SOLARIS_X86_NUMSLICE 8
  72. #define SOLARIS_X86_VTOC_SANE (0x600DDEEEUL)
  73. -typedef int daddr_t; /* or long - check */
  74. -
  75. struct solaris_x86_slice {
  76. unsigned short s_tag; /* ID tag of partition */
  77. unsigned short s_flag; /* permision flags */