util-linux-ng: fix readprofile update-alternatives vs busybox
authorEric Bénard <eric@eukrea.com>
Thu, 9 Sep 2010 20:40:54 +0000 (22:40 +0200)
committerEric Bénard <eric@eukrea.com>
Sat, 11 Sep 2010 12:45:55 +0000 (14:45 +0200)
commit17c44a59d305b4eccbb2867cd01f499f9885da37
treec026347db59da96df4b2f33f3eb7b44ef1f557b6
parenta47ba2149aec9fd187632841143db42301809b44
util-linux-ng: fix readprofile update-alternatives vs busybox

* util-linux-ng installs readprofile in /sbin, busybox installs
it in /usr/sbin which tiggers the following log when configuring
the package :
Configuring util-linux-ng-readprofile.
update-alternatives: Error: cannot register alternative readprofile to
/sbin/readprofile since it is already registered to /usr/sbin/readprofile
Collected errors:
 * pkg_run_script: postinst script returned status 1.
 * opkg_configure: util-linux-ng-readprofile.postinst returned 1.

* the fix is to have util-linux-ng install readprofile in /usr/sbin

* this patch fix http://bugs.openembedded.org/show_bug.cgi?id=5474 as
suggested by Tom Rini

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Tested-by: Philip Balister <philip@balister.org>
recipes/util-linux-ng/util-linux-ng.inc