View Single Post
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#347
Originally Posted by Mentalist Traceur View Post
I just noticed that where-as before the old busybox binary went into /opt, it is now being left in /bin.

Is there a reason for this, or just a side-effect of using dpkg's divert mechanism on it? (I don't know how dpkg diversion work, but if it's possible to put it in opt, I think that would be more ideal, except for the rare cases when busybox-power breaks boot... except we know it doesn't, and anyone arguing for that on those grounds is making a silly claim, because hundreds of users boot on a regular basis with busybox-power as their busybox and no errors have ever surfaced as a result; not to mention you extensively test things.)
Heh, I didn't receive an e-mail notification that someone posted in this thread.

Anyway, the technical rationale is that /opt is on a different partition, which *might* not always be available (e.g. when accessing Maemo in a chroot or rescue situation). However, in that case dpkg wouldn't be able to uninstall busybox-power at all as it resides in /opt/busybox-power, so the rationale is pretty moot.

The reason I put it the diverted binary there, is because it normally is a best practice to put the diverted file in the same directory as the original file (see online documentation and man dpkg-divert). E.g. dpkg-divert --list on my N900 shows:
Code:
diversion of /usr/share/osso-rtcom/google-talk.profile to /usr/share/osso-rtcom/google-talk.profile.novoip by rtcom-accounts-voip-support
diversion of /usr/share/osso-rtcom/jabber.profile to /usr/share/osso-rtcom/jabber.profile.novoip by rtcom-accounts-voip-support
diversion of /usr/share/osso-rtcom/nokiachat.profile to /usr/share/osso-rtcom/nokiachat.profile.novoip by rtcom-accounts-voip-support
diversion of /usr/share/osso-rtcom/sip.profile to /usr/share/osso-rtcom/sip.profile.novoip by rtcom-accounts-voip-support
diversion of /etc/hildon-desktop/home.plugins to /etc/hildon-desktop/home.plugins.real by hildon-desktop-applet-settings-mr0
diversion of /usr/lib/microb-engine/libnssckbi.so to /usr/lib/microb-engine/libnssckbi.mozilla by libmaemosec-certman0
local diversion of /usr/bin/JoikuSpot_Bouncer.ko to /lib/modules/2.6.28-omap1/JoikuSpot_Bouncer.ko
diversion of /usr/lib/qt4/plugins/bearer/libqicdbearer.so to /usr/lib/qt4/plugins/bearer/libqicdbearer.so.original47 by libqt4-bearer-hotfix
diversion of /sbin/fiasco-image-update to /sbin/fiasco-image-update.distrib by fiasco-image-update-ask
diversion of /bin/sh to /bin/sh.distrib by busybox
diversion of /bin/busybox to /bin/busybox.distrib by busybox-power
However, I guess Maemo's own best practice (re: rootfs space) overrides Debian's. You're not the first one to express discontent with the current setup, so I'll give in. Fixed.
 

The Following 4 Users Say Thank You to iDont For This Useful Post: