Skip to contentSkip to conversation

sysvinit_2.86.bb: change sysvinit-utils for compatible with upstart

PATCH Superseded Anatoly Shipitsin 2 participants 2 messages Aug 25, 2010

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 sysvinit_2.86.bb: change sysvinit-utils for compatible with upstart

From: Norguhtar <[email protected]>

* move shutdown to sysvinit package
* move killall5 to sysvinit-utils
* change PR = "r59"

---
 recipes/sysvinit/sysvinit_2.86.bb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
recipes/sysvinit/sysvinit_2.86.bb +4 -4
index 40c642a..aca5249 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
 SECTION = "base"
 LICENSE = "GPLv2+"
 HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r58"
+PR = "r59"
 
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.
@@ -42,7 +42,7 @@ PACKAGES =+ "sysvinit-utils sysvinit-pidof sysvinit-sulogin"
 FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*"
 FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit"
 FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
-FILES_sysvinit-utils = "${bindir}/last.${PN} ${bindir}/mesg.${PN} ${bindir}/wall.${PN} ${base_sbindir}/shutdown.${PN} ${bindir}/lastb ${bindir}/utmpdump ${base_sbindir}/runlevel"
+FILES_sysvinit-utils = "${bindir}/last.${PN} ${bindir}/mesg.${PN} ${bindir}/wall.${PN} ${bindir}/lastb ${bindir}/utmpdump ${base_sbindir}/killall5"
 RRECOMMENDS_${PN} = "sysvinit-utils"
 RRECOMMENDS_${PN}_micro = ""
 
@@ -112,6 +112,7 @@ pkg_postinst_${PN} () {
 update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
 update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
 update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200
+update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
 }
 
 pkg_postinst_sysvinit-utils () {
@@ -119,13 +120,13 @@ pkg_postinst_sysvinit-utils () {
 update-alternatives --install ${bindir}/last last last.${PN} 200
 update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200
 update-alternatives --install ${bindir}/wall wall wall.${PN} 200
-update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
 }
 
 pkg_prerm_${PN} () {
 #!/bin/sh
 update-alternatives --remove halt halt.${PN}
 update-alternatives --remove reboot reboot.${PN}
+update-alternatives --remove shutdown shutdown.${PN}
 }
 
 pkg_prerm_sysvinit-utils () {
@@ -133,7 +134,6 @@ pkg_prerm_sysvinit-utils () {
 update-alternatives --remove last last.${PN}
 update-alternatives --remove mesg mesg.${PN}
 update-alternatives --remove wall wall.${PN}
-update-alternatives --remove shutdown shutdown.${PN}
 }
 
 pkg_postinst_sysvinit-pidof () {
Signature · 1 line
1.6.0.6
Reviewed-by on v3 1/1
#1 lore raw

Am Mittwoch, den 25.08.2010, 22:44 +0600 schrieb Anatoly Shipitsin:

Maybe change the commit summary to

sysvinit_2.86.bb: make sysvinit-utils compatible with upstart

Quoted 1 line

From: Norguhtar <[email protected]>

Where does that name come from? This line will be taken as the author information (git log, git log --pretty=fuller) because it differs from your name in the email address. (That is the reason the From: line got added in the first place.)

Being different from your other message, you should decide using one of them, because it makes it easier to look at the statistics having you turn up as one person only.

Quoted 3 lines

* move shutdown to sysvinit package
* move killall5 to sysvinit-utils
* change PR = "r59"

Next time, »• bump PR« or »• increase PR« is enough.

Reading your commit message a more elaborate explanation is missing what the problem is with current sysvinit-utils. The commit summary says it has something to do with upstart, but explanation, of why it is a problem, would make it a perfect commit message.

This is in my opinion even more important than the information you provided, since I could look those up. But I cannot grasp the “why”.

This would make reviewing and judging and therefore committing your patch much easier and faster.

Quoted 1 line

Otherwise I did not find anything else reviewing this. I did not test it though.

[…]

If you decide to adapt the commit summary/message and to send a v4, you can add my Reviewed-by line manually.

I do not have commit rights. So if nothing happens during the next two days, please join the IRC channel and bug the people there – most of them have commit rights – to apply and commit your patch.

Thanks,

Paul