From: Graham Gower <graham.gower@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] util-linux-ng.inc, e2fsprogs.inc: Use update-alternatives for uuidd.
Date: Thu, 02 Dec 2010 12:36:02 +1030 [thread overview]
Message-ID: <4CF6FF0A.6090505@gmail.com> (raw)
Util-linux-ng put uuidd in ${sbindir}, e2fsprogs put it in ${base_sbindir}.
This change puts both in ${base_sbindir}.
Fixes a conflict when DISTRO=micro.
| Collected errors:
| * check_data_file_clashes: Package util-linux-ng wants to install file /mnt/oe/tmp/rootfs/native-sdk-image/sbin/uuidd
| But that file is already provided by package * e2fsprogs
Signed-off-by: Graham Gower <graham.gower@gmail.com>
---
recipes/e2fsprogs/e2fsprogs.inc | 5 ++++-
recipes/util-linux-ng/util-linux-ng.inc | 7 ++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/recipes/e2fsprogs/e2fsprogs.inc b/recipes/e2fsprogs/e2fsprogs.inc
index 7697440..1366ce7 100644
--- a/recipes/e2fsprogs/e2fsprogs.inc
+++ b/recipes/e2fsprogs/e2fsprogs.inc
@@ -9,7 +9,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-${PV}.tar.gz"
S = "${WORKDIR}/e2fsprogs-${PV}"
-INC_PR = "r24"
+INC_PR = "r25"
inherit autotools
@@ -39,6 +39,7 @@ do_install_append () {
rm ${D}${base_sbindir}/mkfs.ext2
rm ${D}${base_sbindir}/mkfs.ext3
rm ${D}${base_sbindir}/mkfs.ext4*
+ mv ${D}${base_sbindir}/uuidd ${D}${base_sbindir}/uuidd.${PN}
cd ${D}/${base_sbindir}
ln -sf ./e2fsck.${PN} fsck.ext2.${PN}
@@ -58,10 +59,12 @@ do_install_append () {
pkg_postinst_e2fsprogs () {
update-alternatives --install ${base_bindir}/chattr chattr chattr.${PN} 100
+ update-alternatives --install ${base_sbindir}/uuidd uuidd uuidd.${PN} 10
}
pkg_prerm_e2fsprogs () {
update-alternatives --remove chattr chattr.${PN}
+ update-alternatives --remove uuidd uuidd.${PN}
}
diff --git a/recipes/util-linux-ng/util-linux-ng.inc b/recipes/util-linux-ng/util-linux-ng.inc
index 7455098..fbc92e4 100644
--- a/recipes/util-linux-ng/util-linux-ng.inc
+++ b/recipes/util-linux-ng/util-linux-ng.inc
@@ -6,7 +6,7 @@ DEPENDS_virtclass-native = "zlib-native ncurses-native lzo-native gettext-native
inherit autotools gettext
-INC_PR = "r33"
+INC_PR = "r34"
# allows for a release candidate
RC ?= ""
@@ -124,7 +124,7 @@ do_install () {
mkdir -p ${D}${base_bindir}
sbinprogs="agetty blockdev ctrlaltdel cfdisk"
- sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk fsck blkid vigr vipw"
+ sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk fsck blkid vigr vipw uuidd"
usrbinprogs_a="chfn chsh hexdump last logger mesg newgrp renice wall setsid chrt reset cal script flock"
usrsbinprogs_a="readprofile"
binprogs_a="dmesg kill more umount mount login"
@@ -219,6 +219,7 @@ pkg_postinst_${PN} () {
update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 100
update-alternatives --install ${bindir}/setsid setsid setsid.${PN} 100
update-alternatives --install ${bindir}/chrt chrt chrt.${PN} 100
+ update-alternatives --install ${base_sbindir}/uuidd uuidd uuidd.${PN} 100
# There seems to be problem, atleast on nslu2, with these, until they are
# fixed the busybox ones have higher priority
@@ -232,7 +233,7 @@ pkg_prerm_${PN} () {
test -x ${base_sbindir}/pivot_root.${PN} && \
update-alternatives --remove pivot_root pivot_root.${PN}
- for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hexdump setsid chrt last logger mesg renice wall vipw vigr chfn newgrp chsh login cal script flock; do
+ for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hexdump setsid chrt last logger mesg renice wall vipw vigr chfn newgrp chsh login cal script flock uuidd; do
update-alternatives --remove $i $i.${PN}
done
}
--
1.7.1
next reply other threads:[~2010-12-02 2:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 2:06 Graham Gower [this message]
2010-12-02 15:50 ` [PATCH] util-linux-ng.inc, e2fsprogs.inc: Use update-alternatives for uuidd Stefan Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF6FF0A.6090505@gmail.com \
--to=graham.gower@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox