[oe] [oe-commits] Koen Kooi : util-linux-ng: fix packaging, u-a and replace hardcoded paths

Phil Blundell philb at gnu.org
Sat Jun 20 09:42:33 UTC 2009


> @@ -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.

p.






More information about the Openembedded-devel mailing list