* [PATCH 0/1] sysvinit: use ALTERNATIVE to manage sulogin
@ 2013-11-15 10:45 Qi.Chen
2013-11-15 10:45 ` [PATCH 1/1] " Qi.Chen
0 siblings, 1 reply; 4+ messages in thread
From: Qi.Chen @ 2013-11-15 10:45 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
The following changes since commit ea92671d9823e3667d6ced7ac2af20f991da404d:
bitbake: cooker: replace "w" file opening mode with "a" mode (2013-11-12 17:01:37 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/sysvinit-sulogin
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/sysvinit-sulogin
Chen Qi (1):
sysvinit: use ALTERNATIVE to manage sulogin
meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] sysvinit: use ALTERNATIVE to manage sulogin
2013-11-15 10:45 [PATCH 0/1] sysvinit: use ALTERNATIVE to manage sulogin Qi.Chen
@ 2013-11-15 10:45 ` Qi.Chen
2013-11-15 12:51 ` Phil Blundell
0 siblings, 1 reply; 4+ messages in thread
From: Qi.Chen @ 2013-11-15 10:45 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <qi.chen@windriver.com>
Busybox also provides sulogin command, so we need to use the ALTERNATIVE
mechanism to manage it.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
index 50842e2..f2d5659 100644
--- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
@@ -44,6 +44,9 @@ ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff"
ALTERNATIVE_${PN}-pidof = "pidof"
ALTERNATIVE_LINK_NAME[pidof] = "${base_bindir}/pidof"
+ALTERNATIVE_${PN}-sulogin = "sulogin"
+ALTERNATIVE_LINK_NAME[sulogin] = "${base_sbindir}/sulogin"
+
ALTERNATIVE_${PN}-doc = "mountpoint.1 last.1 mesg.1 wall.1 sulogin.8 utmpdump.1"
ALTERNATIVE_LINK_NAME[last.1] = "${mandir}/man1/last.1"
@@ -56,7 +59,7 @@ ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1"
PACKAGES =+ "sysvinit-pidof sysvinit-sulogin"
FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*"
FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit ${base_sbindir}/killall5"
-FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
+FILES_sysvinit-sulogin = "${base_sbindir}/sulogin.sysvinit"
RDEPENDS_${PN} += "sysvinit-pidof"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/1] sysvinit: use ALTERNATIVE to manage sulogin
2013-11-15 10:45 ` [PATCH 1/1] " Qi.Chen
@ 2013-11-15 12:51 ` Phil Blundell
2013-11-16 2:31 ` ChenQi
0 siblings, 1 reply; 4+ messages in thread
From: Phil Blundell @ 2013-11-15 12:51 UTC (permalink / raw)
To: Qi.Chen; +Cc: openembedded-core
On Fri, 2013-11-15 at 18:45 +0800, Qi.Chen@windriver.com wrote:
> -FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
> +FILES_sysvinit-sulogin = "${base_sbindir}/sulogin.sysvinit"
At the risk of seeming dim, how does ${base_sbindir}/sulogin.sysvinit
get installed in the first place?
p.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 1/1] sysvinit: use ALTERNATIVE to manage sulogin
2013-11-15 12:51 ` Phil Blundell
@ 2013-11-16 2:31 ` ChenQi
0 siblings, 0 replies; 4+ messages in thread
From: ChenQi @ 2013-11-16 2:31 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On 11/15/2013 08:51 PM, Phil Blundell wrote:
> On Fri, 2013-11-15 at 18:45 +0800, Qi.Chen@windriver.com wrote:
>> -FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
>> +FILES_sysvinit-sulogin = "${base_sbindir}/sulogin.sysvinit"
> At the risk of seeming dim, how does ${base_sbindir}/sulogin.sysvinit
> get installed in the first place?
>
> p.
>
>
>
>
It's handled in the update-alternative.bbclass.
# We need to do the rename after the image creation step, but before
# the split and strip steps.. packagecopy seems to be the earliest
reasonable
# place.
python perform_packagecopy_append () {
.....
}
Best Regards,
Chen Qi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-16 2:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 10:45 [PATCH 0/1] sysvinit: use ALTERNATIVE to manage sulogin Qi.Chen
2013-11-15 10:45 ` [PATCH 1/1] " Qi.Chen
2013-11-15 12:51 ` Phil Blundell
2013-11-16 2:31 ` ChenQi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox