diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux-2.19.1/remove_sigsetmark.patch | 35 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.19.1.bb | 3 |
2 files changed, 37 insertions, 1 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.19.1/remove_sigsetmark.patch b/meta/recipes-core/util-linux/util-linux-2.19.1/remove_sigsetmark.patch new file mode 100644 index 0000000000..02e4d16ff7 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.19.1/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.19.1.bb b/meta/recipes-core/util-linux/util-linux_2.19.1.bb index 0fd67d11d7..2ef95e6250 100644 --- a/meta/recipes-core/util-linux/util-linux_2.19.1.bb +++ b/meta/recipes-core/util-linux/util-linux_2.19.1.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | MAJOR_VERSION = "2.19" | 1 | MAJOR_VERSION = "2.19" |
2 | PR = "r2" | 2 | PR = "r3" |
3 | require util-linux.inc | 3 | require util-linux.inc |
4 | 4 | ||
5 | # note that `lscpu' is under GPLv3+ | 5 | # note that `lscpu' is under GPLv3+ |
@@ -8,6 +8,7 @@ LICENSE_util-linux-lscpu = "GPLv3+" | |||
8 | SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \ | 8 | SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \ |
9 | file://util-linux-ng-2.16-mount_lock_path.patch \ | 9 | file://util-linux-ng-2.16-mount_lock_path.patch \ |
10 | file://uclibc-__progname-conflict.patch \ | 10 | file://uclibc-__progname-conflict.patch \ |
11 | file://remove_sigsetmark.patch \ | ||
11 | " | 12 | " |
12 | 13 | ||
13 | SRC_URI[md5sum] = "3eab06f05163dfa65479c44e5231932c" | 14 | SRC_URI[md5sum] = "3eab06f05163dfa65479c44e5231932c" |