diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-03-01 23:44:12 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-03-02 08:59:47 +0100 |
commit | d26b7f6e82486c7fe02690ce5706b0660867c70b (patch) | |
tree | a0974c296e6fafc1ae78b443247ec50cd48347ac /source/a/sysvinit | |
parent | 2c09649cb63357808c79c8c6734f986fd5a0d2aa (diff) | |
download | current-d26b7f6e82486c7fe02690ce5706b0660867c70b.tar.gz |
Fri Mar 1 23:44:12 UTC 201920190301234412
a/eudev-3.2.7-x86_64-2.txz: Rebuilt.
Don't require kvm group.
Diffstat (limited to 'source/a/sysvinit')
-rwxr-xr-x | source/a/sysvinit/sysvinit.SlackBuild | 6 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.always.define.version.diff | 12 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.url | 1 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.use_dev_initctl_not_run_initctl.diff | 250 | ||||
-rw-r--r-- | source/a/sysvinit/sysvinit.version.2.93.diff | 17 |
5 files changed, 137 insertions, 149 deletions
diff --git a/source/a/sysvinit/sysvinit.SlackBuild b/source/a/sysvinit/sysvinit.SlackBuild index 457307e1..4e8d90d5 100755 --- a/source/a/sysvinit/sysvinit.SlackBuild +++ b/source/a/sysvinit/sysvinit.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=sysvinit -VERSION=${VERSION:-2.93} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.94} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -66,7 +66,7 @@ find . \ zcat $CWD/sysvinit.paths.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1 # Fix failure to show program version: -zcat $CWD/sysvinit.version.2.93.diff.gz | patch -p1 --verbose || exit 1 +zcat $CWD/sysvinit.always.define.version.diff.gz | patch -p1 --verbose || exit 1 # Use /dev/initctl instead of /run/initctl ; this is a named pipe and probably # should be in /dev anyway, but more importantly, having the upgraded package diff --git a/source/a/sysvinit/sysvinit.always.define.version.diff b/source/a/sysvinit/sysvinit.always.define.version.diff new file mode 100644 index 00000000..aadac9f0 --- /dev/null +++ b/source/a/sysvinit/sysvinit.always.define.version.diff @@ -0,0 +1,12 @@ +--- ./src/init.c.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./src/init.c 2019-03-01 14:07:19.842729825 -0600 +@@ -12,9 +12,7 @@ + /* + Version information is not placed in the top-level Makefile by default + */ +-#ifndef VERSION + #define VERSION "2.94" +-#endif + /* + * This file is part of the sysvinit suite, + * Copyright (C) 1991-2004 Miquel van Smoorenburg. diff --git a/source/a/sysvinit/sysvinit.url b/source/a/sysvinit/sysvinit.url new file mode 100644 index 00000000..b923c17a --- /dev/null +++ b/source/a/sysvinit/sysvinit.url @@ -0,0 +1 @@ +http://download.savannah.nongnu.org/releases/sysvinit diff --git a/source/a/sysvinit/sysvinit.use_dev_initctl_not_run_initctl.diff b/source/a/sysvinit/sysvinit.use_dev_initctl_not_run_initctl.diff index 0a0f23ed..7b4ce971 100644 --- a/source/a/sysvinit/sysvinit.use_dev_initctl_not_run_initctl.diff +++ b/source/a/sysvinit/sysvinit.use_dev_initctl_not_run_initctl.diff @@ -1,18 +1,103 @@ -diff -Nur sysvinit-2.90.orig/doc/Install sysvinit-2.90/doc/Install ---- sysvinit-2.90.orig/doc/Install 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/doc/Install 2018-06-19 19:25:46.523082855 -0500 -@@ -66,7 +66,7 @@ - manual page on shutdown to find out more about this. +--- ./src/shutdown.c.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./src/shutdown.c 2019-03-01 14:09:18.632719995 -0600 +@@ -192,7 +192,7 @@ - Running from a read-only file system (CDROM?): --* All communication to init goes through the FIFO /run/initctl. -+* All communication to init goes through the FIFO /dev/initctl. - There should be no problem using a read-only root file system - If you use a Linux kernel > 1.3.66. Older kernels don't allow - writing to a FIFO on a read-only file system. -diff -Nur sysvinit-2.90.orig/doc/initctl sysvinit-2.90/doc/initctl ---- sysvinit-2.90.orig/doc/initctl 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/doc/initctl 2018-06-19 19:26:00.277206540 -0500 + /* + * Open the fifo and write the command. +- * Make sure we don't hang on opening /run/initctl ++ * Make sure we don't hang on opening /dev/initctl + */ + memset(&sa, 0, sizeof(sa)); + sa.sa_handler = alrm_handler; +--- ./src/Makefile.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./src/Makefile 2019-03-01 14:09:18.624719996 -0600 +@@ -231,8 +231,8 @@ + # + # This part is skipped on Debian systems, the + # debian.preinst script takes care of it. +- @if [ ! -p /run/initctl ]; then \ +- echo "Creating /run/initctl"; \ +- rm -f /run/initctl; \ +- mknod -m 600 /run/initctl p; fi ++ @if [ ! -p /dev/initctl ]; then \ ++ echo "Creating /dev/initctl"; \ ++ rm -f /dev/initctl; \ ++ mknod -m 600 /dev/initctl p; fi + endif +--- ./src/initreq.h.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./src/initreq.h 2019-03-01 14:09:18.630719995 -0600 +@@ -1,5 +1,5 @@ + /* +- * initreq.h Interface to talk to init through /run/initctl. ++ * initreq.h Interface to talk to init through /dev/initctl. + * + * Copyright (C) 1995-2004 Miquel van Smoorenburg + * +@@ -26,7 +26,7 @@ + #include <sys/param.h> + + #ifndef INIT_FIFO +-#define INIT_FIFO "/run/initctl" ++#define INIT_FIFO "/dev/initctl" + #endif + + #define INIT_MAGIC 0x03091969 +--- ./src/init.c.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./src/init.c 2019-03-01 14:09:18.629719995 -0600 +@@ -146,7 +146,7 @@ + int maxproclen; /* Maximal length of argv[0] with \0 */ + struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */ + char *console_dev; /* Console device. */ +-int pipe_fd = -1; /* /run/initctl */ ++int pipe_fd = -1; /* /dev/initctl */ + int did_boot = 0; /* Did we already do BOOT* stuff? */ + int main(int, char **); + +@@ -2382,13 +2382,13 @@ + int quit = 0; + + /* +- * First, try to create /run/initctl if not present. ++ * First, try to create /dev/initctl if not present. + */ + if (stat(INIT_FIFO, &st2) < 0 && errno == ENOENT) + (void)mkfifo(INIT_FIFO, 0600); + + /* +- * If /run/initctl is open, stat the file to see if it ++ * If /dev/initctl is open, stat the file to see if it + * is still the _same_ inode. + */ + if (pipe_fd >= 0) { +@@ -2402,7 +2402,7 @@ + } + + /* +- * Now finally try to open /run/initctl if pipe_fd is -1 ++ * Now finally try to open /dev/initctl if pipe_fd is -1 + * if it is -2, then we leave it closed + */ + if (pipe_fd == -1) { +@@ -2711,7 +2711,7 @@ + } + if (ISMEMBER(got_signals, SIGUSR1)) { + /* +- * SIGUSR1 means close and reopen /run/initctl ++ * SIGUSR1 means close and reopen /dev/initctl + */ + INITDBG(L_VB, "got SIGUSR1"); + if (pipe_fd) +@@ -2959,7 +2959,7 @@ + strerror(errno)); + + /* Open the fifo and write a command. */ +- /* Make sure we don't hang on opening /run/initctl */ ++ /* Make sure we don't hang on opening /dev/initctl */ + SETSIG(sa, SIGALRM, signal_handler, 0); + alarm(3); + if ((fd = open(INIT_FIFO, O_WRONLY)) >= 0) { +--- ./doc/initctl.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./doc/initctl 2019-03-01 14:09:18.614719997 -0600 @@ -1,5 +1,5 @@ This document describes the communiction pipe set up by SysV init -at /run/initctl. This named pipe allows programs with the proper @@ -45,10 +130,20 @@ diff -Nur sysvinit-2.90.orig/doc/initctl sysvinit-2.90/doc/initctl request a power-related shutdown or change the runlevel, like telinit would do. Most of the time there is no need to talk to init directly, but this gives us an extenable approach so init can be taught how to learn -diff -Nur sysvinit-2.90.orig/man/init.8 sysvinit-2.90/man/init.8 ---- sysvinit-2.90.orig/man/init.8 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/man/init.8 2018-06-19 19:26:15.470343168 -0500 -@@ -144,7 +144,7 @@ +--- ./doc/Install.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./doc/Install 2019-03-01 14:09:18.612719997 -0600 +@@ -66,7 +66,7 @@ + manual page on shutdown to find out more about this. + + Running from a read-only file system (CDROM?): +-* All communication to init goes through the FIFO /run/initctl. ++* All communication to init goes through the FIFO /dev/initctl. + There should be no problem using a read-only root file system + If you use a Linux kernel > 1.3.66. Older kernels don't allow + writing to a FIFO on a read-only file system. +--- ./man/init.8.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./man/init.8 2019-03-01 14:11:06.713711051 -0600 +@@ -147,7 +147,7 @@ the letter \fBF\fP. .PP Usage of \fBSIGPWR\fP and \fB/etc/powerstatus\fP is discouraged. Someone @@ -57,8 +152,8 @@ diff -Nur sysvinit-2.90.orig/man/init.8 sysvinit-2.90/man/init.8 control channel - see the initctl manual page for more documentation about this. .PP -@@ -248,7 +248,7 @@ - the current runlevel. +@@ -258,7 +258,7 @@ + immediately exits with a return code of zero. .PP .SH INTERFACE -Init listens on a \fIfifo\fP in /dev, \fI/run/initctl\fP, for messages. @@ -66,7 +161,7 @@ diff -Nur sysvinit-2.90.orig/man/init.8 sysvinit-2.90/man/init.8 \fBTelinit\fP uses this to communicate with init. The interface is not very well documented or finished. Those interested should study the \fIinitreq.h\fP file in the \fIsrc/\fP subdirectory of the \fBinit\fP -@@ -262,11 +262,11 @@ +@@ -272,11 +272,11 @@ .TP 0.5i .B SIGUSR1 On receipt of this signals, init closes and re-opens its control fifo, @@ -75,12 +170,12 @@ diff -Nur sysvinit-2.90.orig/man/init.8 sysvinit-2.90/man/init.8 .TP 0.5i .B SIGUSR2 When init receives SIGUSR2, init closes and leaves the control fifo, --\fB/run/initctl\f\P, closed. This may be used to make sure init is not -+\fB/dev/initctl\f\P, closed. This may be used to make sure init is not +-\fB/run/initctl\fP, closed. This may be used to make sure init is not ++\fB/dev/initctl\fP, closed. This may be used to make sure init is not holding open any files. However, it also prevents init from switching runlevels. Which means commands like shutdown no longer work. The fifo can be re-opened by sending init the SIGUSR1 signal. -@@ -294,7 +294,7 @@ +@@ -304,7 +304,7 @@ /dev/console /var/run/utmp /var/log/wtmp @@ -89,9 +184,8 @@ diff -Nur sysvinit-2.90.orig/man/init.8 sysvinit-2.90/man/init.8 .fi .\"}}} .\"{{{ Warnings -diff -Nur sysvinit-2.90.orig/man/initctl.5 sysvinit-2.90/man/initctl.5 ---- sysvinit-2.90.orig/man/initctl.5 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/man/initctl.5 2018-06-19 19:26:43.481595070 -0500 +--- ./man/initctl.5.orig 2019-02-24 17:26:33.000000000 -0600 ++++ ./man/initctl.5 2019-03-01 14:09:18.622719996 -0600 @@ -16,13 +16,13 @@ .\" .TH INITCTL 5 "April 13, 2018" "" "Linux System Administrator's Manual" @@ -163,105 +257,3 @@ diff -Nur sysvinit-2.90.orig/man/initctl.5 sysvinit-2.90/man/initctl.5 /sbin/init .SH AUTHOR Jesse Smith <jsmith@resonatingmedia.com> -diff -Nur sysvinit-2.90.orig/src/Makefile sysvinit-2.90/src/Makefile ---- sysvinit-2.90.orig/src/Makefile 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/src/Makefile 2018-06-19 19:27:26.501981961 -0500 -@@ -217,8 +217,8 @@ - # - # This part is skipped on Debian systems, the - # debian.preinst script takes care of it. -- @if [ ! -p /run/initctl ]; then \ -- echo "Creating /run/initctl"; \ -- rm -f /run/initctl; \ -- mknod -m 600 /run/initctl p; fi -+ @if [ ! -p /dev/initctl ]; then \ -+ echo "Creating /dev/initctl"; \ -+ rm -f /dev/initctl; \ -+ mknod -m 600 /dev/initctl p; fi - endif -diff -Nur sysvinit-2.90.orig/src/init.c sysvinit-2.90/src/init.c ---- sysvinit-2.90.orig/src/init.c 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/src/init.c 2018-06-19 19:27:08.688821762 -0500 -@@ -131,7 +131,7 @@ - int maxproclen; /* Maximal length of argv[0] with \0 */ - struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */ - char *console_dev; /* Console device. */ --int pipe_fd = -1; /* /run/initctl */ -+int pipe_fd = -1; /* /dev/initctl */ - int did_boot = 0; /* Did we already do BOOT* stuff? */ - int main(int, char **); - -@@ -2354,13 +2354,13 @@ - int quit = 0; - - /* -- * First, try to create /run/initctl if not present. -+ * First, try to create /dev/initctl if not present. - */ - if (stat(INIT_FIFO, &st2) < 0 && errno == ENOENT) - (void)mkfifo(INIT_FIFO, 0600); - - /* -- * If /run/initctl is open, stat the file to see if it -+ * If /dev/initctl is open, stat the file to see if it - * is still the _same_ inode. - */ - if (pipe_fd >= 0) { -@@ -2374,7 +2374,7 @@ - } - - /* -- * Now finally try to open /run/initctl if pipe_fd is -1 -+ * Now finally try to open /dev/initctl if pipe_fd is -1 - * if it is -2, then we leave it closed - */ - if (pipe_fd == -1) { -@@ -2681,7 +2681,7 @@ - } - if (ISMEMBER(got_signals, SIGUSR1)) { - /* -- * SIGUSR1 means close and reopen /run/initctl -+ * SIGUSR1 means close and reopen /dev/initctl - */ - INITDBG(L_VB, "got SIGUSR1"); - if (pipe_fd) -@@ -2929,7 +2929,7 @@ - strerror(errno)); - - /* Open the fifo and write a command. */ -- /* Make sure we don't hang on opening /run/initctl */ -+ /* Make sure we don't hang on opening /dev/initctl */ - SETSIG(sa, SIGALRM, signal_handler, 0); - alarm(3); - if ((fd = open(INIT_FIFO, O_WRONLY)) >= 0) { -diff -Nur sysvinit-2.90.orig/src/initreq.h sysvinit-2.90/src/initreq.h ---- sysvinit-2.90.orig/src/initreq.h 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/src/initreq.h 2018-06-19 19:26:51.388666180 -0500 -@@ -1,5 +1,5 @@ - /* -- * initreq.h Interface to talk to init through /run/initctl. -+ * initreq.h Interface to talk to init through /dev/initctl. - * - * Copyright (C) 1995-2004 Miquel van Smoorenburg - * -@@ -26,7 +26,7 @@ - #include <sys/param.h> - - #ifndef INIT_FIFO --#define INIT_FIFO "/run/initctl" -+#define INIT_FIFO "/dev/initctl" - #endif - - #define INIT_MAGIC 0x03091969 -diff -Nur sysvinit-2.90.orig/src/shutdown.c sysvinit-2.90/src/shutdown.c ---- sysvinit-2.90.orig/src/shutdown.c 2018-06-18 18:25:26.000000000 -0500 -+++ sysvinit-2.90/src/shutdown.c 2018-06-19 19:27:13.214862465 -0500 -@@ -176,7 +176,7 @@ - - /* - * Open the fifo and write the command. -- * Make sure we don't hang on opening /run/initctl -+ * Make sure we don't hang on opening /dev/initctl - */ - memset(&sa, 0, sizeof(sa)); - sa.sa_handler = alrm_handler; diff --git a/source/a/sysvinit/sysvinit.version.2.93.diff b/source/a/sysvinit/sysvinit.version.2.93.diff deleted file mode 100644 index 07b9b121..00000000 --- a/source/a/sysvinit/sysvinit.version.2.93.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- ./src/init.c.orig 2018-11-24 10:38:12.000000000 -0600 -+++ ./src/init.c 2019-01-08 23:56:31.143232075 -0600 -@@ -9,12 +9,8 @@ - * Version: init.c 2.90 18-Jun-2018 jsmith@resonatingmedia.com - */ - --/* --Version information is not placed in the top-level Makefile by default --*/ --#ifndef VERSION --#define VERSION "2.91" --#endif -+#define VERSION "2.93" -+ - /* - * This file is part of the sysvinit suite, - * Copyright (C) 1991-2004 Miquel van Smoorenburg. |