Patchwork [58/58] eject: use new update-alternatives and add u-a for eject

login
register
mail settings
Submitter Martin Jansa
Date Dec. 4, 2012, 1:59 a.m.
Message ID <c4edc88757afce5fa7416086bcedc3a574200946.1354586187.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/40197/
State Accepted
Commit 5d46cee40f75b89c46bba9eb7b57dc1a26fb43b5
Headers show

Comments

Martin Jansa - Dec. 4, 2012, 1:59 a.m.
* eject conflicts with util-linux now

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Patch

diff --git a/meta-oe/recipes-support/eject/eject_2.1.5.bb b/meta-oe/recipes-support/eject/eject_2.1.5.bb
index 3f17fe8..3f2c90d 100644
--- a/meta-oe/recipes-support/eject/eject_2.1.5.bb
+++ b/meta-oe/recipes-support/eject/eject_2.1.5.bb
@@ -12,12 +12,11 @@  SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${PN}"
 
-do_install_append() {
-  mv ${D}/${bindir}/volname ${D}/${bindir}/volname.${PN}
-}
+PR = "r1"
 
-ALTERNATIVE_NAME = "volname"
-ALTERNATIVE_LINK = "${bindir}/volname"
-ALTERNATIVE_PATH = "${bindir}/volname.${PN}"
-ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_${PN} = "volname eject"
+ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
+ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
+ALTERNATIVE_PRIORITY[volname] = "100"
+ALTERNATIVE_PRIORITY[eject] = "100"