[oe] pkg_postinst_* not working anymore -> broken packages

Koen Kooi k.kooi at student.utwente.nl
Sun Jun 8 17:14:13 UTC 2008


Hi,

Lately I have been wondering why things like avahi and umount don't work 
properly any more in angstrom 2008, and I found out why:

	OE (and/or bitbake) ignores pkg_postinst_*

 From avahi.inc:

pkg_postinst_avahi-daemon () {
         # can't do this offline
         if [ "x$D" != "x" ]; then
                 exit 1
         fi
         grep "^avahi:" /etc/group > /dev/null || addgroup avahi
         grep "^avahi:" /etc/passwd > /dev/null || adduser 
--disabled-password --system --home /var/run/avahi-daemon 
--no-create-home avahi --ingroup avahi -g Avahi

         DBUSPID=`pidof dbus-daemon`

         if [ "x$DBUSPID" != "x" ]; then
                 /etc/init.d/dbus-1 force-reload
         fi
}

In the rootfs:

root at efika:/usr/lib/opkg/info# cat avahi-daemon.postinst
#!/bin/sh
if test "x$D" != "x"; then
	OPT="-r $D"
else
	OPT="-s"
fi
update-rc.d $OPT avahi-daemon defaults 21 19

The same happens with the u-a calls for util-linux-(u)mount

This occurs with .dev + bitbake 1.8 head

regards,

Koen







More information about the Openembedded-devel mailing list