Package: rungetty
Version: 1.2-16.1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Hello Rhonda,

rungetty unsurprisingly installs into /sbin. For the ongoing UsrMerge
effort [1], /sbin needs to become "empty", IOW no package should install
files there, instead into /usr/sbin.

I think rungetty could move /sbin/rungetty now. I've attached a patch to
do this, opting for a smaller diff vs. also canonicalizing all paths in
man-pages, etc. Note that any backports to bookworm or earlier should
undo this change.

Please apply it at your earliest convenience.

Thanks,
Chris

1. https://wiki.debian.org/UsrMerge
diff -Nru rungetty-1.2/debian/changelog rungetty-1.2/debian/changelog
--- rungetty-1.2/debian/changelog       2021-11-07 16:45:12.000000000 +0100
+++ rungetty-1.2/debian/changelog       2023-11-27 14:50:11.000000000 +0100
@@ -1,3 +1,10 @@
+rungetty (1.2-16.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Install rungetty into /usr/sbin instead of /sbin.
+
+ -- Chris Hofstaedtler <z...@debian.org>  Mon, 27 Nov 2023 14:50:11 +0100
+
 rungetty (1.2-16.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru rungetty-1.2/debian/patches/01_make-install-fix 
rungetty-1.2/debian/patches/01_make-install-fix
--- rungetty-1.2/debian/patches/01_make-install-fix     2016-01-04 
19:56:37.000000000 +0100
+++ rungetty-1.2/debian/patches/01_make-install-fix     2023-11-27 
14:49:46.000000000 +0100
@@ -5,15 +5,17 @@
 ===================================================================
 --- rungetty-1.2.orig/Makefile
 +++ rungetty-1.2/Makefile
-@@ -7,9 +7,9 @@ all:           rungetty
+@@ -6,10 +6,10 @@ all:         rungetty
+               size rungetty
  
  install:      all
-               mkdir -p $(ROOT)/sbin
+-              mkdir -p $(ROOT)/sbin
 -              mkdir -p $(ROOT)/usr/man/man8
 -              install -s -m 0755 -o root -g root rungetty $(ROOT)/sbin/
 -              install -m 0644 -o root -g root rungetty.8 $(ROOT)/usr/man/man8/
++              mkdir -p $(ROOT)/usr/sbin
 +              mkdir -p $(ROOT)/usr/share/man/man8
-+              install -m 0755 -o root -g root rungetty $(ROOT)/sbin/
++              install -m 0755 -o root -g root rungetty $(ROOT)/usr/sbin/
 +              install -m 0644 -o root -g root rungetty.8 
$(ROOT)/usr/share/man/man8/
  
  rungetty:     rungetty.o

Reply via email to