Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rungetty for openSUSE:Factory checked in at 2021-01-30 13:57:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rungetty (Old) and /work/SRC/openSUSE:Factory/.rungetty.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rungetty" Sat Jan 30 13:57:06 2021 rev:5 rq:867911 version:1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/rungetty/rungetty.changes 2012-07-06 09:52:19.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rungetty.new.28504/rungetty.changes 2021-01-30 13:58:01.086422422 +0100 @@ -1,0 +2,5 @@ +Sat Nov 14 14:14:14 UTC 2020 - [email protected] + +- Remove usage of sys_errlist with rungetty.patch + +------------------------------------------------------------------- New: ---- rungetty.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rungetty.spec ++++++ --- /var/tmp/diff_new_pack.xoqO4z/_old 2021-01-30 13:58:01.754423548 +0100 +++ /var/tmp/diff_new_pack.xoqO4z/_new 2021-01-30 13:58:01.754423548 +0100 @@ -23,8 +23,8 @@ License: GPL-2.0+ Group: System/Base Provides: sysvinit:/sbin/mingetty -BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %{name}-%{version}.tar.bz2 +Patch0: rungetty.patch %description rungetty might be the getty you were looking for when you want to run any @@ -38,19 +38,17 @@ suitable for serial use. %prep -%setup -q +%autosetup -p1 %build -make RPM_OPT_FLAGS="%optflags -D_FILE_OFFSET_BITS=64" DEFTERM=linux +make CFLAGS="%optflags -D_FILE_OFFSET_BITS=64" %install mkdir -p %buildroot{/sbin,%{_mandir}/man8} -# make install MANPATH=%buildroot/%{_mandir} DESTDIR=%buildroot install -m 755 rungetty %buildroot/sbin/ install -m 644 rungetty.8 %buildroot/%{_mandir}/man8/ %files -%defattr(-,root,root,755) %doc %{_mandir}/man8/rungetty.8.gz /sbin/rungetty ++++++ rungetty.patch ++++++ --- a/rungetty.c +++ b/rungetty.c @@ -313,7 +313,7 @@ get_logname (void) { if (errno == EINTR || errno == EIO || errno == ENOENT) exit (0); - error ("%s: read: %s", tty, sys_errlist[errno]); + error ("%s: read: %m", tty); } if (c == '\n' || c == '\r') { @@ -430,7 +430,7 @@ mingetty_login (char *logname, char *tty while ((logname = get_logname ()) == 0); execl (_PATH_LOGIN, _PATH_LOGIN, "--", logname, NULL); } - error ("%s: can't exec " _PATH_LOGIN ": %s", tty, sys_errlist[errno]); + error ("%s: can't exec " _PATH_LOGIN ": %m", tty); exit (0); } @@ -446,7 +446,7 @@ open_tty (void) strcpy (buf, "/dev/"); strcat (buf, tty); if (chown (buf, 0, 0) || chmod (buf, 0600)) - error ("%s: %s", buf, sys_errlist[errno]); + error ("%s: %m", buf); sa.sa_handler = SIG_IGN; sa.sa_flags = 0; @@ -461,7 +461,7 @@ open_tty (void) */ if ((fd = open (buf, O_RDWR, 0)) < 0 || ioctl (fd, TIOCSCTTY, (void *) 1) == -1) - error ("%s: cannot open tty: %s", buf, sys_errlist[errno]); + error ("%s: cannot open tty: %m", buf); if (!isatty (fd)) error ("%s: not a tty", buf); @@ -474,12 +474,11 @@ open_tty (void) /* ioctl (0, TIOCNOTTY, (char *)1); */ if (open (buf, O_RDWR, 0) != 0) - error ("%s: cannot open as standard input: %s", buf, - sys_errlist[errno]); + error ("%s: cannot open as standard input: %m", buf); /* Set up standard output and standard error file descriptors. */ if (dup (0) != 1 || dup (0) != 2) - error ("%s: dup problem: %s", buf, sys_errlist[errno]); + error ("%s: dup problem: %m", buf); /* Write a reset string to the terminal. This is very linux-specific and should be checked for other systems. */ @@ -605,6 +604,6 @@ main (int argc, char **argv) nice (priority); execvp (program_run, &argv[optind + 1]); - error ("%s: can't exec %s : %s", tty, program_run, sys_errlist[errno]); + error ("%s: can't exec %s : %m", tty, program_run); exit (0); }
