czmq: use update-alternatives for sha1.h
PATCH 1/1 czmq: use update-alternatives for sha1.h
libmd also uses the doc 'sha1.h'.
libmd has a priority of 100.
Signed-off-by Wang Mingyu <[email protected]>
--- 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
@@ -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
Quoted 15 lines · Wang Mingyu
libmd also uses the doc '
sha1.h'.libmd has a priority of 100.
Signed-off-by Wang Mingyu <[email protected]>--- 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
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