Skip to contentSkip to conversation

pmtools: use update-alternatives for acpixtract

PATCH New [email protected] 1 participant 1 message Sep 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pmtools: use update-alternatives for acpixtract

From: Jackie Huang <[email protected]>

acpixtract is both provided by acpica and pmtools, so use update-alternatives to fix conflicts:

| file /usr/bin/acpixtract conflicts between attempted installs of
pmtools-20130209+git0+3ebe0e54c5-r0.i586 and acpica-20170303-r0.i586

---
 meta-oe/recipes-devtools/pmtools/pmtools_git.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-devtools/pmtools/pmtools_git.bb +5 -0
index 94fc736b5..8491fc904 100644
@@ -15,6 +15,11 @@ COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
 
 S = "${WORKDIR}/git"
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_${PN} = "acpixtract"
+
 do_configure[noexec] = "1"
 do_compile() {
     oe_runmake
Signature · 1 line
2.11.0