[Pkg-sysvinit-devel] Bug#825975: sysvinit: Add missing poweroff on hurd-i386
Samuel Thibault
sthibault at debian.org
Wed Jun 1 07:02:54 UTC 2016
Samuel Thibault, on Wed 01 Jun 2016 02:24:44 +0200, wrote:
> The sysvinit-core package currently doesn't ship a /sbin/poweroff for
> hurd-i386 with proper alternative configuration. The attached patch
> fixes that, could you please apply it?
Oops, sorry, the manpage symlink was bogus, here is a fixed patch.
Samuel
-------------- next part --------------
--- debian/rules.original 2016-06-01 02:18:40.089432414 +0200
+++ debian/rules 2016-06-01 02:20:45.288372651 +0200
@@ -117,9 +117,13 @@
mv $(sysvtmp)/usr/share/man/man8/halt.8.gz $(sysvtmp)/usr/share/man/man8/halt-sysv.8.gz
rm $(sysvtmp)/usr/share/man/man8/reboot.8.gz
ln -s halt-sysv.8.gz $(sysvtmp)/usr/share/man/man8/reboot-sysv.8.gz
+ rm $(sysvtmp)/usr/share/man/man8/poweroff.8.gz
+ ln -s halt-sysv.8.gz $(sysvtmp)/usr/share/man/man8/poweroff-sysv.8.gz
mv $(sysvtmp)/sbin/halt $(sysvtmp)/sbin/halt-sysv
rm $(sysvtmp)/sbin/reboot
ln -s halt-sysv $(sysvtmp)/sbin/reboot-sysv
+ rm $(sysvtmp)/sbin/poweroff
+ ln -s halt-sysv $(sysvtmp)/sbin/poweroff-sysv
# Add runsystem to conffiles, suppress lintian error
echo /etc/hurd/runsystem.sysv >> $(inittmp)/DEBIAN/conffiles
else
--- debian/initscripts.postinst.original 2016-06-01 02:15:47.811043361 +0200
+++ debian/initscripts.postinst 2016-06-01 02:17:13.920199428 +0200
@@ -237,6 +237,7 @@
--install /etc/hurd/runsystem runsystem \
/etc/hurd/runsystem.sysv 10 \
--slave /sbin/halt halt /sbin/halt-sysv \
+ --slave /sbin/poweroff poweroff /sbin/poweroff-sysv \
--slave /sbin/reboot reboot /sbin/reboot-sysv
new="$(get_runsystem)"
More information about the Pkg-sysvinit-devel
mailing list