Skip to contentSkip to conversation

libiio: Disable python support for determism

PATCH In review Richard Purdie 2 participants 2 messages Oct 23, 2019 – Oct 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libiio: Disable python support for determism

Recent cmake changes in OE-Core mean python is now detected from PATH. For determism, disable the python bindings to match previous behaviour.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/libiio/libiio_git.bb +1 -0
index 4e57d5b77..63248b4e3 100644
@@ -22,6 +22,7 @@ DEPENDS = " \
 EXTRA_OECMAKE = " \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
+    -DPYTHON_BINDINGS=OFF \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
 "
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 15 lines · Richard Purdie

Recent cmake changes in OE-Core mean python is now detected from PATH. For determism, disable the python bindings to match previous behaviour.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/libiio/libiio_git.bb +0 -0
index 4e57d5b77..63248b4e3 100644

meta-oe/recipes-support/libiio/libiio_git.bb DEPENDS = " \ · line 25

Quoted 4 lines
meta-oe/recipes-support/libiio/libiio_git.bb +1 -0
@@ -22,6 +22,7 @@ DEPENDS = " \
 EXTRA_OECMAKE = " \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
+    -DPYTHON_BINDINGS=OFF \

instead of disabling the bindings if we specify location to python library and headers then it works
this is in effect after the cmake change

Quoted 11 lines
meta-oe/recipes-support/libiio/libiio_git.bb +0 -1
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
 "
 
--

2.20.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel