Skip to contentSkip to conversation

bc: use update-alternatives to make dc play nice with busybox

PATCH Applied Denys Dmytriyenko 2 participants 2 messages Mar 29, 2012 – Apr 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bc: use update-alternatives to make dc play nice with busybox

From: Denys Dmytriyenko <[email protected]>

busybox' default configuration enables dc app, which bc also provides, setup update-alternatives to resolve the conflict.

---
 meta/recipes-extended/bc/bc_1.06.bb |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/bc/bc_1.06.bb +5 -2
index 02915e1..283e2d8 100644
@@ -11,11 +11,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
 
 SECTION = "base"
 DEPENDS = "flex"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz"
 
 SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117"
 SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33"
 
-inherit autotools
+inherit autotools update-alternatives
+
+ALTERNATIVE_LINKS = "${bindir}/dc"
+ALTERNATIVE_PRIORITY = "100"
Signature · 1 line
1.7.8.5
Applied
#1 lore raw
Quoted 21 lines · Denys Dmytriyenko

From: Denys Dmytriyenko<[email protected]>

busybox' default configuration enables dc app, which bc also provides, setup update-alternatives to resolve the conflict.

---
  meta/recipes-extended/bc/bc_1.06.bb |    7 +++++--
  1 files changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/bc/bc_1.06.bb +1 -1
index 02915e1..283e2d8 100644
@@ -11,11 +11,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
 
  SECTION = "base"
  DEPENDS = "flex"
-PR = "r0"
+PR = "r1"
 

meta/recipes-extended/bc/bc_1.06.bb LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ · line 24

Quoted 10 lines
meta/recipes-extended/bc/bc_1.06.bb +4 -1
  SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz"
 
  SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117"
  SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33"
 
-inherit autotools
+inherit autotools update-alternatives
+
+ALTERNATIVE_LINKS = "${bindir}/dc"
+ALTERNATIVE_PRIORITY = "100"

Merged into OE-Core

Thanks
Sau!