diff options
| author | Saul Wold <sgw@linux.intel.com> | 2012-02-27 00:45:48 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-28 12:27:46 +0000 |
| commit | 79e8d533eec5dc0b1831bd4c6e4959401c7f1fcb (patch) | |
| tree | 6253b2390a781ad4e84a50108ca158b553890c4c /meta/recipes-core/util-linux/util-linux-2.21 | |
| parent | ef461c4a2a3e056adc875662f3c26f2cb4b9f161 (diff) | |
| download | poky-79e8d533eec5dc0b1831bd4c6e4959401c7f1fcb.tar.gz | |
util-linux: Update to 2.21
This updates various checksums for the COPYING files, which moved in the process
no changes to Licenses
Tweak the scanf_cv_alloc_modifier and rebase the patch
(From OE-Core rev: 9cb35b41c803bd0d1904b2dc0e14624fa7ea6e95)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux-2.21')
10 files changed, 412 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/MCONFIG b/meta/recipes-core/util-linux/util-linux-2.21/MCONFIG new file mode 100644 index 0000000000..3fea2c02d7 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/MCONFIG | |||
| @@ -0,0 +1,223 @@ | |||
| 1 | # MCONFIG -- Configuration stuff for util-linux | ||
| 2 | # Created: Sat Feb 4 15:50:30 1995 | ||
| 3 | # Copyright 1995 Rickard E. Faith (faith@cs.unc.edu) | ||
| 4 | |||
| 5 | # For a user-mode install, make (at least) three changes: | ||
| 6 | # - remove the `-o root' part in INSTALLSUID | ||
| 7 | # - set USE_TTY_GROUP=no | ||
| 8 | # - define DESTDIR | ||
| 9 | |||
| 10 | # Select for ARCH one of intel, alpha, sparc, arm, m68k, mips | ||
| 11 | # Select for CPU i386 if the binaries must be able to run on an intel 386 | ||
| 12 | # (by default i486 code is generated, see below) | ||
| 13 | CPU=$(shell uname -m) | ||
| 14 | ARCH=$(shell echo $(CPU) | sed 's/i.86/intel/;s/arm.*/arm/') | ||
| 15 | |||
| 16 | # If HAVE_PAM is set to "yes", then login, chfn, chsh, and newgrp | ||
| 17 | # will use PAM for authentication. Additionally, passwd will not be | ||
| 18 | # installed as it is not PAM aware. | ||
| 19 | HAVE_PAM=no | ||
| 20 | |||
| 21 | # If HAVE_SHADOW is set to "yes", then login, chfn, chsh, newgrp, passwd, | ||
| 22 | # and vipw will not be built or installed from the login-utils | ||
| 23 | # subdirectory. | ||
| 24 | HAVE_SHADOW=yes | ||
| 25 | |||
| 26 | # If HAVE_PASSWD is set to "yes", then passwd will not be built or | ||
| 27 | # installed from the login-utils subdirectory (but login, chfn, chsh, | ||
| 28 | # newgrp, and vipw *will* be installed). | ||
| 29 | HAVE_PASSWD=no | ||
| 30 | |||
| 31 | # If you use chfn and chsh from this package, REQUIRE_PASSWORD will require | ||
| 32 | # non-root users to enter the account password before updating /etc/passwd. | ||
| 33 | REQUIRE_PASSWORD=yes | ||
| 34 | #REQUIRE_PASSWORD=no | ||
| 35 | |||
| 36 | # If you use chsh from this package, ONLY_LISTED_SHELLS will require that | ||
| 37 | # the selected shell be listed in /etc/shells -- otherwise only a warning is | ||
| 38 | # printed. This prevents someone from setting their shell to /bin/false. | ||
| 39 | ONLY_LISTED_SHELLS=yes | ||
| 40 | #ONLY_LISTED_SHELLS=no | ||
| 41 | |||
| 42 | |||
| 43 | # If HAVE_SYSVINIT is set to "yes", then simpleinit and shutdown will not | ||
| 44 | # be built or installed from the login-utils subdirectory. (The shutdown | ||
| 45 | # and halt that come with the SysVinit package should be used with the init | ||
| 46 | # found in that package.) | ||
| 47 | HAVE_SYSVINIT=no | ||
| 48 | |||
| 49 | # If HAVE_SYSVINIT_UTILS is set to "yes", then last, mesg, and wall will | ||
| 50 | # not be built or installed from the login-utils subdirectory. (The | ||
| 51 | # shutdown and init from the SysVinit package do not depend on the last, | ||
| 52 | # mesg, and wall from that package.) | ||
| 53 | HAVE_SYSVINIT_UTILS=no | ||
| 54 | |||
| 55 | # If HAVE_WRITE is set to "yes", then write will not be built or | ||
| 56 | # installed from the misc-utils subdirectory. | ||
| 57 | # (There is a network aware write in netwrite from NetKit 0.16 or later.) | ||
| 58 | HAVE_WRITE=no | ||
| 59 | |||
| 60 | # If HAVE_GETTY is set to "yes", then agetty will not be built or | ||
| 61 | # installed from the login-utils subdirectory. Note that agetty can | ||
| 62 | # co-exist with other gettys, so this option should never be used. | ||
| 63 | HAVE_GETTY=no | ||
| 64 | |||
| 65 | # If USE_TTY_GROUP is set to "yes", then wall and write will be installed | ||
| 66 | # setgid to the "tty" group, and mesg will only set the group write bit. | ||
| 67 | # Note that this is only useful if login/xterm/etc. change the group of the | ||
| 68 | # user's tty to "tty" [The login in util-linux does this correctly, and | ||
| 69 | # xterm will do it correctly if X is compiled with USE_TTY_GROUP set | ||
| 70 | # properly.] | ||
| 71 | USE_TTY_GROUP=no | ||
| 72 | |||
| 73 | # If HAVE_KILL is set to "yes", then kill will not be built or | ||
| 74 | # installed from the misc-utils subdirectory. | ||
| 75 | # (There is also a kill in the procps package.) | ||
| 76 | HAVE_KILL=no | ||
| 77 | |||
| 78 | # If ALLOW_VCS_USE is set to "yes", then login will chown /dev/vcsN | ||
| 79 | # to the current user, allowing her to make a screendump and do other | ||
| 80 | # nifty things on the console, but also allowing him to keep an open | ||
| 81 | # file descriptor after logging out to trick the next user. | ||
| 82 | ALLOW_VCS_USE=yes | ||
| 83 | |||
| 84 | # If HAVE_RESET is set to "yes", then reset won't be installed. The version | ||
| 85 | # of reset that comes with the ncurses package is less aggressive. | ||
| 86 | HAVE_RESET=yes | ||
| 87 | |||
| 88 | # If HAVE_SLN is set to "yes", then sln won't be installed | ||
| 89 | # (but the man page sln.8 will be installed anyway). | ||
| 90 | # sln also comes with libc and glibc. | ||
| 91 | HAVE_SLN=no | ||
| 92 | |||
| 93 | # If HAVE_FDUTILS is set to "yes", then setfdprm won't be installed. | ||
| 94 | HAVE_FDUTILS=no | ||
| 95 | |||
| 96 | # If SILENT_PG is set to "yes", then pg will not ring the bell | ||
| 97 | # when an invalid key is pressed | ||
| 98 | SILENT_PG=no | ||
| 99 | |||
| 100 | # If configure decides that Native Language Support (NLS) is available, | ||
| 101 | # it sets MAY_ENABLE_NLS in defines.h. If you don't want NLS, set | ||
| 102 | # DISABLE_NLS to "yes". | ||
| 103 | DISABLE_NLS=no | ||
| 104 | |||
| 105 | # Different optimizations for different cpus. | ||
| 106 | # gcc 3.0 likes options -mcpu=i486 instead of -m486 | ||
| 107 | ifeq "$(ARCH)" "intel" | ||
| 108 | ifeq "$(HAVE_OLD_GCC)" "yes" | ||
| 109 | CPUHEAD=-m | ||
| 110 | else | ||
| 111 | CPUHEAD=-mcpu=i | ||
| 112 | endif | ||
| 113 | ifeq "$(CPU)" "i386" | ||
| 114 | CPUTAIL=386 | ||
| 115 | else | ||
| 116 | CPUTAIL=486 | ||
| 117 | endif | ||
| 118 | CPUOPT= $(CPUHEAD)$(CPUTAIL) | ||
| 119 | OPT= -pipe -O2 $(CPUOPT) -fomit-frame-pointer | ||
| 120 | else | ||
| 121 | ifeq "$(ARCH)" "arm" | ||
| 122 | OPT= -pipe -O2 -fsigned-char -fomit-frame-pointer | ||
| 123 | else | ||
| 124 | OPT= -O2 -fomit-frame-pointer | ||
| 125 | endif | ||
| 126 | endif | ||
| 127 | |||
| 128 | WARNFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes | ||
| 129 | |||
| 130 | LIB=../lib | ||
| 131 | |||
| 132 | ERR_O=$(LIB)/err.o | ||
| 133 | |||
| 134 | # Set HAVE_SLANG to yes if you have slang (and prefer to use that for cfdisk) | ||
| 135 | # (If neither HAVE_NCURSES nor HAVE_SLANG is defined, cfdisk is not made.) | ||
| 136 | # HAVE_SLANG=yes | ||
| 137 | # There is a subdirectory /usr/include/slang containing slcurses.h | ||
| 138 | # SLANGFLAGS=-I/usr/include/slang | ||
| 139 | # No such subdirectory - slcurses.h lives in /usr/include | ||
| 140 | # (no extra definition required). | ||
| 141 | LIBSLANG=-lslang | ||
| 142 | |||
| 143 | # | ||
| 144 | # Paths used for compilation (not all are actually used, see CFLAGS below) | ||
| 145 | # | ||
| 146 | DEV_DIR= /dev | ||
| 147 | ETC_DIR= /etc | ||
| 148 | SBIN_DIR= /sbin | ||
| 149 | USRSBIN_DIR= /usr/sbin | ||
| 150 | USRLIB_DIR= /usr/lib | ||
| 151 | USRBIN_DIR= /usr/bin | ||
| 152 | USRGAMES_DIR= /usr/games | ||
| 153 | USRSHAREMISC_DIR=/usr/share/misc | ||
| 154 | LOCALE_DIR= /usr/share/locale | ||
| 155 | BIN_DIR= /bin | ||
| 156 | VAR_PATH= /var | ||
| 157 | LOG_DIR= /var/log | ||
| 158 | MAN_DIR= /usr/share/man | ||
| 159 | INFO_DIR= /usr/share/info | ||
| 160 | |||
| 161 | # | ||
| 162 | # Paths used for install | ||
| 163 | # | ||
| 164 | DEVDIR= $(DESTDIR)$(DEV_DIR) | ||
| 165 | ETCDIR= $(DESTDIR)$(ETC_DIR) | ||
| 166 | SBINDIR= $(DESTDIR)$(SBIN_DIR) | ||
| 167 | USRSBINDIR= $(DESTDIR)$(USRSBIN_DIR) | ||
| 168 | USRLIBDIR= $(DESTDIR)$(USRLIB_DIR) | ||
| 169 | USRBINDIR= $(DESTDIR)$(USRBIN_DIR) | ||
| 170 | USRGAMESDIR= $(DESTDIR)$(USRGAMES_DIR) | ||
| 171 | USRSHAREMISCDIR=$(DESTDIR)$(USRSHAREMISC_DIR) | ||
| 172 | LOCALEDIR= $(DESTDIR)$(LOCALE_DIR) | ||
| 173 | BINDIR= $(DESTDIR)$(BIN_DIR) | ||
| 174 | VARPATH= $(DESTDIR)$(VAR_PATH) | ||
| 175 | LOGDIR= $(DESTDIR)$(LOG_DIR) | ||
| 176 | MANDIR= $(DESTDIR)$(MAN_DIR) | ||
| 177 | MAN1DIR= $(MANDIR)/man1 | ||
| 178 | MAN3DIR= $(MANDIR)/man3 | ||
| 179 | MAN5DIR= $(MANDIR)/man5 | ||
| 180 | MAN6DIR= $(MANDIR)/man6 | ||
| 181 | MAN8DIR= $(MANDIR)/man8 | ||
| 182 | INFODIR= $(DESTDIR)$(INFO_DIR) | ||
| 183 | |||
| 184 | # Directory for shutdown, halt, reboot, etc. | ||
| 185 | SHUTDOWNDIR= $(SBINDIR) | ||
| 186 | |||
| 187 | # Modes | ||
| 188 | DIRMODE= 755 | ||
| 189 | BINMODE= 755 | ||
| 190 | MANMODE= 644 | ||
| 191 | DATMODE= 644 | ||
| 192 | INFOMODE= 644 | ||
| 193 | SUIDMODE= 4755 | ||
| 194 | |||
| 195 | CHMOD= chmod | ||
| 196 | INSTALL= install | ||
| 197 | INSTALLDIR= $(INSTALL) -d -m $(DIRMODE) | ||
| 198 | INSTALLBIN= $(INSTALL) -m $(BINMODE) | ||
| 199 | INSTALLMAN= $(INSTALL) -m $(MANMODE) | ||
| 200 | INSTALLDAT= $(INSTALL) -m $(DATMODE) | ||
| 201 | INSTALLSUID= $(INSTALL) -m $(SUIDMODE) | ||
| 202 | |||
| 203 | ifeq "$(DISABLE_NLS)" "yes" | ||
| 204 | NLSFLAGS = -DDISABLE_NLS | ||
| 205 | endif | ||
| 206 | |||
| 207 | CFLAGS := $(OPT) -I$(LIB) $(WARNFLAGS) \ | ||
| 208 | $(CURSESFLAGS) $(SLANGFLAGS) $(NLSFLAGS) \ | ||
| 209 | -D_FILE_OFFSET_BITS=64 \ | ||
| 210 | -DSBINDIR=\"$(SBIN_DIR)\" \ | ||
| 211 | -DUSRSBINDIR=\"$(USRSBIN_DIR)\" \ | ||
| 212 | -DLOGDIR=\"$(LOG_DIR)\" \ | ||
| 213 | -DVARPATH=\"$(VAR_PATH)\" \ | ||
| 214 | -DLOCALEDIR=\"$(LOCALE_DIR)\" \ | ||
| 215 | $(CFLAGS) | ||
| 216 | |||
| 217 | |||
| 218 | %.o: %.c | ||
| 219 | $(CC) -c $(CFLAGS) $< -o $@ | ||
| 220 | |||
| 221 | %: %.cc | ||
| 222 | $(CXX) $(CFLAGS) $< -o $@ | ||
| 223 | |||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/defines.h b/meta/recipes-core/util-linux/util-linux-2.21/defines.h new file mode 100644 index 0000000000..6ce6b86df5 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/defines.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #define UTIL_LINUX_VERSION "2.12" | ||
| 2 | #define util_linux_version "util-linux-2.12" | ||
| 3 | |||
| 4 | #define HAVE_blkpg_h | ||
| 5 | #define HAVE_kd_h | ||
| 6 | #define HAVE_locale_h | ||
| 7 | #define HAVE_langinfo_h | ||
| 8 | #define HAVE_sys_user_h | ||
| 9 | #define HAVE_asm_types_h | ||
| 10 | //#define NEED_tqueue_h | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/make_include b/meta/recipes-core/util-linux/util-linux-2.21/make_include new file mode 100644 index 0000000000..e6abcd91f7 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/make_include | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | VERSION=2.12 | ||
| 2 | CC=gcc | ||
| 3 | CFLAGS= | ||
| 4 | LDFLAGS= | ||
| 5 | HAVE_OLD_GCC=yes | ||
| 6 | HAVE_RAW_H=yes | ||
| 7 | HAVE_NCURSES=yes | ||
| 8 | CURSESFLAGS=-DNCH=1 | ||
| 9 | LIBCURSES=-lncurses | ||
| 10 | HAVE_TERMCAP=no | ||
| 11 | NEED_LIBCRYPT=yes | ||
| 12 | FOREIGN = --foreign-user | ||
| 13 | HAVE_XGETTEXT=yes | ||
| 14 | HAVE_OPENPTY=yes | ||
| 15 | HAVE_PIVOT_ROOT=yes | ||
| 16 | HAVE_GOOD_RPC=yes | ||
| 17 | HAVE_ZLIB=yes | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch b/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch new file mode 100644 index 0000000000..434e28d637 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Upstream-Status: Inappropriate [distribution] | ||
| 2 | |||
| 3 | Take out lscpu stuff from the code | ||
| 4 | |||
| 5 | 2011/03/17 | ||
| 6 | Saul Wold <saul.wold@intel.com> | ||
| 7 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
| 8 | |||
| 9 | Index: util-linux-2.20.1/sys-utils/Makefile.am | ||
| 10 | =================================================================== | ||
| 11 | --- util-linux-2.20.1.orig/sys-utils/Makefile.am | ||
| 12 | +++ util-linux-2.20.1/sys-utils/Makefile.am | ||
| 13 | @@ -17,12 +17,6 @@ usrsbin_exec_PROGRAMS += ldattach tunelp | ||
| 14 | dist_man_MANS += dmesg.1 ctrlaltdel.8 cytune.8 setarch.8 \ | ||
| 15 | ldattach.8 tunelp.8 rtcwake.8 fsfreeze.8 fstrim.8 | ||
| 16 | |||
| 17 | -if HAVE_CPU_SET_T | ||
| 18 | -usrbin_exec_PROGRAMS += lscpu | ||
| 19 | -lscpu_SOURCES = lscpu.c $(top_srcdir)/lib/cpuset.c $(top_srcdir)/lib/strutils.c | ||
| 20 | -dist_man_MANS += lscpu.1 | ||
| 21 | -endif | ||
| 22 | - | ||
| 23 | endif | ||
| 24 | |||
| 25 | cytune_SOURCES = cytune.c cyclades.h | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/remove_sigsetmark.patch b/meta/recipes-core/util-linux/util-linux-2.21/remove_sigsetmark.patch new file mode 100644 index 0000000000..02e4d16ff7 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/remove_sigsetmark.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | simpleinit: remove deprecated sigsetmask() | ||
| 2 | |||
| 3 | The sigsetmask() is deprecated in favor of sigprocmask(). | ||
| 4 | |||
| 5 | This is not needed upstream since simpleinit is removed from | ||
| 6 | util-linux-ng master | ||
| 7 | |||
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate | ||
| 11 | |||
| 12 | Index: util-linux-2.19.1/simpleinit/shutdown.c | ||
| 13 | =================================================================== | ||
| 14 | --- util-linux-2.19.1.orig/simpleinit/shutdown.c 2011-03-04 03:47:47.000000000 -0800 | ||
| 15 | +++ util-linux-2.19.1/simpleinit/shutdown.c 2011-07-06 08:43:39.183849752 -0700 | ||
| 16 | @@ -145,7 +145,7 @@ | ||
| 17 | { | ||
| 18 | int c, i, fd; | ||
| 19 | char *ptr; | ||
| 20 | - | ||
| 21 | + sigset_t sigmask; | ||
| 22 | i = getdtablesize (); | ||
| 23 | for (fd = 3; fd < i; fd++) close (fd); | ||
| 24 | if (getpid () == 1) | ||
| 25 | @@ -153,7 +153,9 @@ | ||
| 26 | for (fd = 0; fd < 3; fd++) close (fd); | ||
| 27 | while (1) wait (NULL); /* Grim reaper never stops */ | ||
| 28 | } | ||
| 29 | - sigsetmask (0); /* simpleinit(8) blocks all signals: undo for ALRM */ | ||
| 30 | + /* simpleinit(8) blocks all signals: undo for ALRM */ | ||
| 31 | + sigemptyset(&sigmask); | ||
| 32 | + sigprocmask (SIG_SETMASK, &sigmask, NULL); | ||
| 33 | for (i = 1; i < NSIG; i++) signal (i, SIG_DFL); | ||
| 34 | |||
| 35 | setlocale(LC_ALL, ""); | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/swapargs.h b/meta/recipes-core/util-linux/util-linux-2.21/swapargs.h new file mode 100644 index 0000000000..e960eef05f --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/swapargs.h | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #define SWAPON_HAS_TWO_ARGS | ||
| 2 | #include <asm/page.h> | ||
| 3 | #include <sys/swap.h> | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/uclibc-__progname-conflict.patch b/meta/recipes-core/util-linux/util-linux-2.21/uclibc-__progname-conflict.patch new file mode 100644 index 0000000000..45826b180a --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/uclibc-__progname-conflict.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | configure should include errno.h instead of argp.h when | ||
| 2 | checking for presence of program_invocation_short_name | ||
| 3 | uclibc defines this to be const char* unlike util-linux-ng | ||
| 4 | which defines this to be char* so this error goes unnoticed | ||
| 5 | on glibc/eglibc systems. | ||
| 6 | |||
| 7 | here is the error it fixes | ||
| 8 | |||
| 9 | in file included from mountP.h:14:0, | ||
| 10 | from cache.c:29: | ||
| 11 | /home/kraj/work/slugos/build/tmp-slugos-uclibc/sysroots/nslu2le/usr/include/errno.h:55:46: error: conflicting types for '__progname' | ||
| 12 | ../../../include/c.h:118:14: note: previous declaration of '__progname' was here | ||
| 13 | make[3]: *** [cache.lo] Error 1 | ||
| 14 | |||
| 15 | |||
| 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 17 | |||
| 18 | Upstream-Status: Pending | ||
| 19 | Index: util-linux-2.19.1/configure.ac | ||
| 20 | =================================================================== | ||
| 21 | --- util-linux-2.19.1.orig/configure.ac | ||
| 22 | +++ util-linux-2.19.1/configure.ac | ||
| 23 | @@ -250,7 +250,7 @@ esac | ||
| 24 | |||
| 25 | |||
| 26 | AC_MSG_CHECKING(whether program_invocation_short_name is defined) | ||
| 27 | -AC_TRY_COMPILE([#include <argp.h>], | ||
| 28 | +AC_TRY_COMPILE([#include <errno.h>], | ||
| 29 | [program_invocation_short_name = "test";], | ||
| 30 | AC_DEFINE(HAVE_PROGRAM_INVOCATION_SHORT_NAME, 1, | ||
| 31 | [Define if program_invocation_short_name is defined]) | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/uclibc-compile.patch b/meta/recipes-core/util-linux/util-linux-2.21/uclibc-compile.patch new file mode 100644 index 0000000000..75774d8200 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/uclibc-compile.patch | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | Upstream-Status: Inappropriate [embedded specific] | ||
| 2 | |||
| 3 | Index: util-linux-ng-2.16/misc-utils/cal.c | ||
| 4 | =================================================================== | ||
| 5 | --- util-linux-ng-2.16.orig/misc-utils/cal.c 2009-07-03 16:20:01.000000000 -0700 | ||
| 6 | +++ util-linux-ng-2.16/misc-utils/cal.c 2009-07-18 23:21:37.000000000 -0700 | ||
| 7 | @@ -407,7 +407,7 @@ | ||
| 8 | strcpy(day_headings,""); | ||
| 9 | strcpy(j_day_headings,""); | ||
| 10 | |||
| 11 | -#ifdef HAVE_LANGINFO_H | ||
| 12 | +#ifdef HAVE_LANGINFO_H && !defined(__UCLIBC__) | ||
| 13 | # define weekday(wd) nl_langinfo(ABDAY_1+wd) | ||
| 14 | #else | ||
| 15 | # define weekday(wd) _time_info->abbrev_wkday[wd] | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-2.16-mount_lock_path.patch b/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-2.16-mount_lock_path.patch new file mode 100644 index 0000000000..5773d7ea1b --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-2.16-mount_lock_path.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Upstream-Status: Inappropriate [embedded specific] | ||
| 2 | |||
| 3 | The FHS indicates that /etc must be capable of being mounted R/O. | ||
| 4 | |||
| 5 | The FHS also indicates that lock files belong in /var/lock, and /var must | ||
| 6 | be R/W as soon as possible during boot. | ||
| 7 | |||
| 8 | This patch moves the mtab lock file from the potentially R/O /etc, to the | ||
| 9 | R/W /var/lock area. This lock file is used when mounting disks and making | ||
| 10 | other mount adjustments. The _PATH_MOUNTED_TMP is not adjusted, as failing | ||
| 11 | to write to this file does not cause any functional limitations. | ||
| 12 | |||
| 13 | (Note, if /etc is R/O, then /etc/mtab should be a symlink to /proc/mounts) | ||
| 14 | |||
| 15 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
| 16 | |||
| 17 | --- util-linux-ng-2.16/include/pathnames.h.orig | ||
| 18 | +++ util-linux-ng-2.16/include/pathnames.h | ||
| 19 | @@ -90,7 +90,7 @@ | ||
| 20 | # endif | ||
| 21 | #endif | ||
| 22 | |||
| 23 | -#define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~" | ||
| 24 | +#define _PATH_MOUNTED_LOCK "/var/lock/mtab~" | ||
| 25 | #define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp" | ||
| 26 | |||
| 27 | #ifndef _PATH_DEV | ||
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-replace-siginterrupt.patch b/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-replace-siginterrupt.patch new file mode 100644 index 0000000000..ef56048c60 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.21/util-linux-ng-replace-siginterrupt.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Index: util-linux-2.21/login-utils/login.c | ||
| 4 | =================================================================== | ||
| 5 | --- util-linux-2.21.orig/login-utils/login.c | ||
| 6 | +++ util-linux-2.21/login-utils/login.c | ||
| 7 | @@ -1216,6 +1216,8 @@ int main(int argc, char **argv) | ||
| 8 | char *buff; | ||
| 9 | int childArgc = 0; | ||
| 10 | int retcode; | ||
| 11 | + struct sigaction act; | ||
| 12 | + | ||
| 13 | |||
| 14 | char *pwdbuf = NULL; | ||
| 15 | struct passwd *pwd = NULL, _pwd; | ||
| 16 | @@ -1229,7 +1231,9 @@ int main(int argc, char **argv) | ||
| 17 | timeout = getlogindefs_num("LOGIN_TIMEOUT", LOGIN_TIMEOUT); | ||
| 18 | |||
| 19 | signal(SIGALRM, timedout); | ||
| 20 | - siginterrupt(SIGALRM, 1); /* we have to interrupt syscalls like ioclt() */ | ||
| 21 | + (void) sigaction(SIGALRM, NULL, &act); | ||
| 22 | + act.sa_flags &= ~SA_RESTART; | ||
| 23 | + sigaction(SIGALRM, &act, NULL); | ||
| 24 | alarm((unsigned int)timeout); | ||
| 25 | signal(SIGQUIT, SIG_IGN); | ||
| 26 | signal(SIGINT, SIG_IGN); | ||
