[oe] [oe-commits] Koen Kooi : util-linux-ng: fix packaging, u-a and replace hardcoded paths
Koen Kooi
k.kooi at student.utwente.nl
Sat Jun 20 10:06:19 UTC 2009
On 20-06-09 11:42, Phil Blundell wrote:
>> @@ -129,7 +131,8 @@ do_install () {
>> install -d ${D}${sysconfdir}/default/
>> echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"'> ${D}${sysconfdir}/default/mountall
>>
>> - ln -sf ${sbindir}/swapon ${D}${sbindir}/swapoff.${PN}
>> + rm ${D}${sbindir}/swap* -f
>> + ln -sf ${base_sbindir}/swapon.${PN} ${D}${base_sbindir}/swapoff.${PN}
>> ln -sf ${sbindir}/shutdown ${D}${sbindir}/reboot.${PN}
>> ln -sf ${sbindir}/shutdown ${D}${sbindir}/halt.${PN}
>> ln -sf ${sbindir}/shutdown ${D}${sbindir}/fastboot
>
> What's the reason for that "rm"? This looks like it will lose when
> ${base_sbindir} and ${sbindir} are the same directory.
u-l-ng installs a symlink there that breaks finding swapoff at runtime.
base_sbindir and sbindir aren't the same for me, so I can't test what
happens if they are.
regards,
Koen
More information about the Openembedded-devel
mailing list