Skip to contentSkip to conversation

python3-cffi: consolidate inc and bb files into a single bb file

PATCH In review Derek Straka 2 participants 3 messages Feb 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-cffi: consolidate inc and bb files into a single bb file

---
 .../recipes-devtools/python/python-cffi.inc   | 17 -----------------
 .../python/python3-cffi_1.13.2.bb             | 19 ++++++++++++++++++-
 2 files changed, 18 insertions(+), 18 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python-cffi.inc
meta-python/recipes-devtools/python/python-cffi.inc deleted +0 -17
deleted file mode 100644
index a2b0c3bb0c..0000000000
@@ -1,17 +0,0 @@
-SUMMARY = "Foreign Function Interface for Python calling C code"
-HOMEPAGE = "http://cffi.readthedocs.org/"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
-DEPENDS += "libffi ${PYTHON_PN}-pycparser"
-
-SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
-SRC_URI[sha256sum] = "599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"
-
-RDEPENDS_${PN}_class-target = " \
-    ${PYTHON_PN}-ctypes \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-pycparser \
-    ${PYTHON_PN}-shell \
-"
-
-BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb +18 -1
index e888084347..6156081126 100644
@@ -1,2 +1,19 @@
+SUMMARY = "Foreign Function Interface for Python calling C code"
+HOMEPAGE = "http://cffi.readthedocs.org/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
+DEPENDS += "libffi ${PYTHON_PN}-pycparser"
+
+SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
+SRC_URI[sha256sum] = "599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"
+
 inherit pypi setuptools3
-require python-cffi.inc
+
+RDEPENDS_${PN}_class-target = " \
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-pycparser \
+    ${PYTHON_PN}-shell \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 46 lines · Derek Straka
---
  .../recipes-devtools/python/python-cffi.inc   | 17 -----------------
  .../python/python3-cffi_1.13.2.bb             | 19 ++++++++++++++++++-
  2 files changed, 18 insertions(+), 18 deletions(-)

delete mode 100644 meta-python/recipes-devtools/python/python-cffi.inc

meta-python/recipes-devtools/python/python-cffi.inc deleted +0 -17
deleted file mode 100644
index a2b0c3bb0c..0000000000
@@ -1,17 +0,0 @@
-SUMMARY = "Foreign Function Interface for Python calling C code"
-HOMEPAGE = "http://cffi.readthedocs.org/"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
-DEPENDS += "libffi ${PYTHON_PN}-pycparser"
-
-SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
-SRC_URI[sha256sum] = "599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"
-
-RDEPENDS_${PN}_class-target = " \
-    ${PYTHON_PN}-ctypes \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-pycparser \
-    ${PYTHON_PN}-shell \
-"
-
-BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb +9 -0
index e888084347..6156081126 100644
@@ -1,2 +1,19 @@
+SUMMARY = "Foreign Function Interface for Python calling C code"
+HOMEPAGE = "http://cffi.readthedocs.org/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
+DEPENDS += "libffi ${PYTHON_PN}-pycparser"
+
+SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
+SRC_URI[sha256sum] = "599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"
+
  inherit pypi setuptools3

meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb line 19

Quoted 10 lines
meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb +9 -1
-require python-cffi.inc
+
+RDEPENDS_${PN}_class-target = " \
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-pycparser \
+    ${PYTHON_PN}-shell \
+"
+
+BBCLASSEXTEND = "native nativesdk"

this patch does not apply cleanly on master-next, can you rebase and send v2 please ?

#2 lore raw
Quoted 48 lines · Khem Raj

Review

Quoted 8 lines · Derek Straka
---
  .../recipes-devtools/python/python-cffi.inc   | 17 -----------------
  .../python/python3-cffi_1.13.2.bb             | 19 ++++++++++++++++++-
  2 files changed, 18 insertions(+), 18 deletions(-)

delete mode 100644 meta-python/recipes-devtools/python/python-cffi.inc

(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python-cffi.inc

meta-python/recipes-devtools/python/python-cffi.inc line 8

Quoted 13 lines

deleted file mode 100644
index a2b0c3bb0c..0000000000

meta-python/recipes-devtools/python/python-cffi.inc deleted +0 -8
@@ -1,17 +0,0 @@
-SUMMARY = "Foreign Function Interface for Python calling C code"
-HOMEPAGE = "http://cffi.readthedocs.org/"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
-DEPENDS += "libffi ${PYTHON_PN}-pycparser"
-
-SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
-SRC_URI[sha256sum] =

"599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"

Review

Quoted 10 lines
meta-python/recipes-devtools/python/python-cffi.inc deleted +0 -9
-
-RDEPENDS_${PN}_class-target = " \
-    ${PYTHON_PN}-ctypes \
-    ${PYTHON_PN}-io \
-    ${PYTHON_PN}-pycparser \
-    ${PYTHON_PN}-shell \
-"
-
-BBCLASSEXTEND = "native nativesdk"
(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb

meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb line 8

Quoted 12 lines

index e888084347..6156081126 100644

meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb +8 -0
@@ -1,2 +1,19 @@
+SUMMARY = "Foreign Function Interface for Python calling C code"
+HOMEPAGE = "http://cffi.readthedocs.org/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
+DEPENDS += "libffi ${PYTHON_PN}-pycparser"
+
+SRC_URI[md5sum] = "652203cf99faa254efff7fab23c2f3a2"
+SRC_URI[sha256sum] =

"599a1e8ff057ac530c9ad1778293c665cb81a791421f46922d80a86473c13346"

Quoted 17 lines

meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb line 19

Quoted 13 lines
meta-python/recipes-devtools/python/python3-cffi_1.13.2.bb +10 -1
+
  inherit pypi setuptools3
-require python-cffi.inc
+
+RDEPENDS_${PN}_class-target = " \
+    ${PYTHON_PN}-ctypes \
+    ${PYTHON_PN}-io \
+    ${PYTHON_PN}-pycparser \
+    ${PYTHON_PN}-shell \
+"
+
+BBCLASSEXTEND = "native nativesdk"

this patch does not apply cleanly on master-next, can you rebase and send v2 please ?

No problem. v2 sent.