libgpiod_1.2: add a dependency on python when building python bindings

Submitted by Ferry Toth on Jan. 7, 2019, 12:56 p.m. | Patch ID: 157600

Details

Message ID ecb15e5d-ec71-d425-e188-9c3b6fd6cd11@telfort.nl
State New
Headers show

Commit Message

Ferry Toth Jan. 7, 2019, 12:56 p.m.
Commit ab54dd75 "libgpiod: Rrecommend python3 only for PN-python 
package" also removes the build dependency

on python3 however this results in fatal error: Python.h: No such file 
or directory #include <Python.h>

Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>

---
meta-oe/recipes-support/libgpiod/libgpiod_1.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

PACKAGES =+ "${PN}-python"

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.2.bb 
b/meta-oe/recipes-support/libgpiod/libgpiod_1.2.bb
index dd080ff9d..93165a0c2 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod_1.2.bb
+++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.2.bb
@@ -7,7 +7,7 @@  SRC_URI[sha256sum] = 
"b6b9079c933f7c8524815437937dda6b795a16141bca202a9eec70ba58
PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx"
-PACKAGECONFIG[python3] = 
"--enable-bindings-python,--disable-bindings-python,"
+PACKAGECONFIG[python3] = 
"--enable-bindings-python,--disable-bindings-python,python3"
inherit ${@bb.utils.contains('PACKAGECONFIG', 'python3', 
'python3native', '', d)}