Skip to contentSkip to conversation

sysvinit-2.86 fails

DISCUSSION Mohammed Amine SAYA 2 participants 4 messages Aug 26, 2006 – Aug 27, 2006

lore
Share & tools
lore
#0 lore raw

I got this :

ln: `/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/rc2.d/S99stop-bootlogd': File exists

I tried to fix it in sysvinit-2.86.bb file but with no success.
I tried to replace ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd with ln -sf .... but It doesn't work either. I mean It builds successfully but tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/ is empty !!!

Any hint on that too please ?

Amine.

#1 lore raw
Quoted 9 lines · Mohammed Amine SAYA

I got this :

ln:
`/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/rc2.d/S99stop-bootlogd': File exists

I tried to fix it in sysvinit-2.86.bb file but with no success.
I tried to replace ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd with ln -sf .... but It doesn't work either. I mean It builds successfully but tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/ is empty !!!

Hi all,

As I said before, sysvinit don't build successfully so I replaced

ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

with

ln -sf ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

But I am not sure that is the right way ? Any comment on this workaround please ?

Regards,

Amine.

#2 lore raw
Quoted 17 lines · Mohammed Amine SAYA
Quoted 6 lines · Mohammed Amine SAYA

I got this :

ln:
`/home/users/asaya/Work/OpenEmbedded/OpenEmbedded-Dev1-mnt028/build/tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/rc2.d/S99stop-bootlogd':
File exists

Quoted 6 lines

I tried to fix it in sysvinit-2.86.bb file but with no success. I tried to replace ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd with ln -sf .... but It doesn't work either. I mean It builds successfully but tmp/work/at91sam9261-linux/sysvinit-2.86-r28/image/etc/ is empty !!!

Hi all,

As I said before, sysvinit don't build successfully so I replaced

Quoted 8 lines

ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

with

ln -sf ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

But I am not sure that is the right way ? Any comment on this workaround please ?

I think the problem lies here:

NOTE: package sysvinit-2.86-r28: task do_install: started
NOTE: package sysvinit-2.86-r28: task do_install: completed
NOTE: package sysvinit-2.86-r28: task do_package: started
ERROR: function do_install failed

PACKAGEFUNCS in package.bbclass contains do_install as first element, so do_install is run twice. After removing do_install from PACKAGEFUNCS, installation works fine.

regards
Philipp

#3 lore raw
Quoted 16 lines · pHilipp Zabel
Quoted 4 lines

Hi all,

As I said before, sysvinit don't build successfully so I replaced

Quoted 9 lines

ln -s ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

with

ln -sf ../init.d/stop-bootlogd ${D}${sysconfdir}/rc$level.d/S99stop-bootlogd

But I am not sure that is the right way ? Any comment on this workaround please ?

I think the problem lies here:

Quoted 9 lines

NOTE: package sysvinit-2.86-r28: task do_install: started
NOTE: package sysvinit-2.86-r28: task do_install: completed
NOTE: package sysvinit-2.86-r28: task do_package: started
ERROR: function do_install failed

PACKAGEFUNCS in package.bbclass contains do_install as first element, so do_install is run twice. After removing do_install from PACKAGEFUNCS, installation works fine.

Hi All, Hi Philipp,

Thanks a lot for your help, this actually solves all the problems I reported before. busybox, sysvinit are now working fine without tweaking their bb files.

Do you have any doc on BITBAKE variables. I know that DEPENDS and RDEPENDS functions have changed with the new bitbake version, can you point me to a link where all these variables are explained ?

Thanks again.

Best regards,
Amine.