Skip to contentSkip to conversation

czmq: use update-alternatives for sha1.h

PATCH In review Wang Mingyu 2 participants 2 messages Mar 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 czmq: use update-alternatives for sha1.h

libmd also uses the doc 'sha1.h'.

libmd has a priority of 100.

---
 meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb +5 -0
index e742d2a1c4..bd40fb92f7 100644
@@ -30,3 +30,8 @@ PACKAGECONFIG[systemd] = ",-DCMAKE_DISABLE_FIND_PACKAGE_systemd=TRUE,systemd"
 
 BBCLASSEXTEND = "nativesdk"
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "60"
+ALTERNATIVE_${PN}-doc = "sha1.h"
+ALTERNATIVE_LINK_NAME[sha1.h] = "${includedir}/sha1.h"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 15 lines · Wang Mingyu

libmd also uses the doc 'sha1.h'.

libmd has a priority of 100.

---
 meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb +0 -0
index e742d2a1c4..bd40fb92f7 100644

meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb PACKAGECONFIG[systemd] = ",-DCMAKE_DISABLE_FIND_PACKAGE_systemd=TRUE,systemd" · line 37

Quoted 8 lines
meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb +5 -0
@@ -30,3 +30,8 @@ PACKAGECONFIG[systemd] = ",-DCMAKE_DISABLE_FIND_PACKAGE_systemd=TRUE,systemd"
 
 BBCLASSEXTEND = "nativesdk"
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "60"
+ALTERNATIVE_${PN}-doc = "sha1.h"
+ALTERNATIVE_LINK_NAME[sha1.h] = "${includedir}/sha1.h"

usually update-alternative mechanism is for executables, for development files and libs, its better to package them in there own subdirs
e.g. this file could live as ${includedir}/czmq/sha1.h and of course adjust the apps using them to detect right header via pkgconfig or some such mechanism

Quoted 6 lines

--
2.25.1