Skip to contentSkip to conversation

util-linux-ng: use u-a for /sbin/blockdev

PATCH In review Martin Jansa 2 participants 4 messages Feb 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 util-linux-ng: use u-a for /sbin/blockdev

* resolves conflict with latest busybox

---
 recipes/util-linux-ng/util-linux-ng.inc |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
recipes/util-linux-ng/util-linux-ng.inc +5 -4
index 579c8dc..51f25b2 100644
@@ -6,7 +6,7 @@ DEPENDS_virtclass-native = "zlib-native lzo-native gettext-native"
 
 inherit autotools gettext
 
-INC_PR = "r35"
+INC_PR = "r36"
 
 # allows for a release candidate
 RC ?= ""
@@ -126,8 +126,8 @@ do_install () {
 		'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' 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 uuidd"
+        sbinprogs="agetty ctrlaltdel cfdisk"
+        sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk fsck blkid blockdev 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"
@@ -220,6 +220,7 @@ pkg_postinst_${PN} () {
 	update-alternatives --install ${base_bindir}/login login login.${PN} 100
 	update-alternatives --install ${base_sbindir}/vipw vipw vipw.${PN} 100
 	update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 100
+	update-alternatives --install ${base_sbindir}/blockdev blockdev blockdev.${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
@@ -236,7 +237,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 uuidd; 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 blockdev chfn newgrp chsh login cal script flock uuidd; do
 		update-alternatives --remove $i $i.${PN}
 	done
 }
Signature · 1 line
1.7.4
#1 lore raw

PATCH 2/2 eject: use u-a for /usr/bin/volname

* resolves conflict with latest busybox

---
 recipes/eject/eject_2.1.5.bb |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
recipes/eject/eject_2.1.5.bb +13 -3
index 7c46432..06328dc 100644
@@ -2,12 +2,22 @@ DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, ta
 HOMEPAGE = "http://eject.sourceforge.net/"
 LICENSE = "GPLv2"
 
-inherit autotools gettext
+PR = "r1"
 
-SRC_URI = "http://sources.openembedded.org/eject-2.1.5.tar.gz"
+inherit autotools gettext update-alternatives
 
-S = "${WORKDIR}/${PN}"
+ALTERNATIVE_NAME = "volname"
+ALTERNATIVE_LINK = "${bindir}/volname"
+ALTERNATIVE_PATH = "${bindir}/volname.${PN}"
+ALTERNATIVE_PRIORITY = "100"
 
+SRC_URI = "http://sources.openembedded.org/${P}.tar.gz"
 
 SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
 SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"
+
+do_install_append() {
+  mv ${D}/${bindir}/volname ${D}/${bindir}/volname.${PN}
+}
+
+S = "${WORKDIR}/${PN}"
Signature · 1 line
1.7.4
Acked-by on v1 1/2
#3 lore raw
In reply to Martin Jansa

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Martin Jansa

* resolves conflict with latest busybox

Quoted 37 lines
---
 recipes/util-linux-ng/util-linux-ng.inc |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
recipes/util-linux-ng/util-linux-ng.inc +4 -3
index 579c8dc..51f25b2 100644
@@ -6,7 +6,7 @@ DEPENDS_virtclass-native = "zlib-native lzo-native gettext-native"
 
 inherit autotools gettext
 
-INC_PR = "r35"
+INC_PR = "r36"
 
 # allows for a release candidate
 RC ?= ""
@@ -126,8 +126,8 @@ do_install () {
 		'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' 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 uuidd"
+        sbinprogs="agetty ctrlaltdel cfdisk"
+        sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk fsck blkid blockdev 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"
@@ -220,6 +220,7 @@ pkg_postinst_${PN} () {
 	update-alternatives --install ${base_bindir}/login login login.${PN} 100
 	update-alternatives --install ${base_sbindir}/vipw vipw vipw.${PN} 100
 	update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 100
+	update-alternatives --install ${base_sbindir}/blockdev blockdev blockdev.${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

recipes/util-linux-ng/util-linux-ng.inc pkg_prerm_${PN} () { · line 243

Quoted 8 lines
recipes/util-linux-ng/util-linux-ng.inc +1 -1
@@ -236,7 +237,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 uuidd; 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 blockdev chfn newgrp chsh login cal script flock uuidd; do
 		update-alternatives --remove $i $i.${PN}
 	done
 }

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNVnosMkyGM64RGpERAuIHAJ4+/0uyMjYywzuLbklUmV84CR/sdgCdE2qa pm+QYnyjZ4goWqbtexZTZwI=
=QNHh
-----END PGP SIGNATURE-----

Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] eject: use u-a for /usr/bin/volname

In reply to Martin Jansa

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Martin Jansa

* resolves conflict with latest busybox

Quoted 24 lines
---
 recipes/eject/eject_2.1.5.bb |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
recipes/eject/eject_2.1.5.bb +6 -3
index 7c46432..06328dc 100644
@@ -2,12 +2,22 @@ DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, ta
 HOMEPAGE = "http://eject.sourceforge.net/"
 LICENSE = "GPLv2"
 
-inherit autotools gettext
+PR = "r1"
 
-SRC_URI = "http://sources.openembedded.org/eject-2.1.5.tar.gz"
+inherit autotools gettext update-alternatives
 
-S = "${WORKDIR}/${PN}"
+ALTERNATIVE_NAME = "volname"
+ALTERNATIVE_LINK = "${bindir}/volname"
+ALTERNATIVE_PATH = "${bindir}/volname.${PN}"
+ALTERNATIVE_PRIORITY = "100"
 

recipes/eject/eject_2.1.5.bb DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, ta · line 23

Quoted 10 lines
recipes/eject/eject_2.1.5.bb +7 -0
+SRC_URI = "http://sources.openembedded.org/${P}.tar.gz"
 
 SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
 SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"
+
+do_install_append() {
+  mv ${D}/${bindir}/volname ${D}/${bindir}/volname.${PN}
+}
+
+S = "${WORKDIR}/${PN}"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNVno4MkyGM64RGpERAshlAJ4oAJzSTfXQVAqil/IFhAqz6zbomQCgsYA2 F1wpuukUUqbH7AfKomMU/uE=
=iZKg
-----END PGP SIGNATURE-----