Control: tags 979743 + pending

Dear maintainer,

I've prepared an NMU for rungetty (versioned as 1.2-16.1) and uploaded 
it to DELAYED/14. Please feel free to tell me if I should cancel it.

cu
Adrian
diff -Nru rungetty-1.2/debian/changelog rungetty-1.2/debian/changelog
--- rungetty-1.2/debian/changelog	2016-01-05 01:03:18.000000000 +0200
+++ rungetty-1.2/debian/changelog	2021-11-07 17:45:12.000000000 +0200
@@ -1,3 +1,11 @@
+rungetty (1.2-16.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch from Logan Rosen to fix FTBFS with glibc 2.32.
+    (Closes: #979743)
+
+ -- Adrian Bunk <b...@debian.org>  Sun, 07 Nov 2021 17:45:12 +0200
+
 rungetty (1.2-16) unstable; urgency=medium
 
   * Switch to source format 3.0 (quilt)
diff -Nru rungetty-1.2/debian/patches/glibc-2.32.patch rungetty-1.2/debian/patches/glibc-2.32.patch
--- rungetty-1.2/debian/patches/glibc-2.32.patch	1970-01-01 02:00:00.000000000 +0200
+++ rungetty-1.2/debian/patches/glibc-2.32.patch	2021-11-07 17:45:10.000000000 +0200
@@ -0,0 +1,60 @@
+--- a/rungetty.c
++++ b/rungetty.c
+@@ -313,7 +313,7 @@
+ 	    {
+ 	      if (errno == EINTR || errno == EIO || errno == ENOENT)
+ 		exit (0);
+-	      error ("%s: read: %s", tty, sys_errlist[errno]);
++	      error ("%s: read: %s", tty, strerror(errno));
+ 	    }
+ 	  if (c == '\n' || c == '\r')
+ 	    {
+@@ -430,7 +430,7 @@
+       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 ": %s", tty, strerror(errno));
+   exit (0);
+ }
+ 
+@@ -446,7 +446,7 @@
+   strcpy (buf, "/dev/");
+   strcat (buf, tty);
+   if (chown (buf, 0, 0) || chmod (buf, 0600))
+-    error ("%s: %s", buf, sys_errlist[errno]);
++    error ("%s: %s", buf, strerror(errno));
+ 
+   sa.sa_handler = SIG_IGN;
+   sa.sa_flags = 0;
+@@ -461,7 +461,7 @@
+    */
+   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: %s", buf, strerror(errno));
+   if (!isatty (fd))
+     error ("%s: not a tty", buf);
+ 
+@@ -475,11 +475,11 @@
+ 
+   if (open (buf, O_RDWR, 0) != 0)
+     error ("%s: cannot open as standard input: %s", buf,
+-	   sys_errlist[errno]);
++	   strerror(errno));
+ 
+   /* 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: %s", buf, strerror(errno));
+ 
+   /* Write a reset string to the terminal. This is very linux-specific
+      and should be checked for other systems. */
+@@ -606,6 +606,6 @@
+   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 : %s", tty, program_run, strerror(errno));
+   exit (0);
+ }
diff -Nru rungetty-1.2/debian/patches/series rungetty-1.2/debian/patches/series
--- rungetty-1.2/debian/patches/series	2016-01-04 20:13:07.000000000 +0200
+++ rungetty-1.2/debian/patches/series	2021-11-07 17:45:10.000000000 +0200
@@ -6,3 +6,4 @@
 06_initgroups
 07_clear-not-reset
 08_autologin-on-all-ttys
+glibc-2.32.patch

Reply via email to