diff mbox series

[2/3] libsoup: use Python 3 instead of Python 2

Message ID 20170802145308.19074-2-ross.burton@intel.com
State New
Headers show
Series [1/3] ca-certificates: use host Python 3 instead of Python 2 | expand

Commit Message

Ross Burton Aug. 2, 2017, 2:53 p.m. UTC
Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/recipes-support/libsoup/libsoup-2.4/use-py3.patch | 12 ++++++++++++
 meta/recipes-support/libsoup/libsoup-2.4_2.58.1.bb     |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/libsoup/libsoup-2.4/use-py3.patch

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-support/libsoup/libsoup-2.4/use-py3.patch b/meta/recipes-support/libsoup/libsoup-2.4/use-py3.patch
new file mode 100644
index 00000000000..d0156fe1ad2
--- /dev/null
+++ b/meta/recipes-support/libsoup/libsoup-2.4/use-py3.patch
@@ -0,0 +1,12 @@ 
+Use Python 3 instead of Python 2.
+
+Upstream-Status: Submitted (https://bugzilla.gnome.org/show_bug.cgi?id=785735)
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+diff --git a/libsoup/tld-parser.py b/libsoup/tld-parser.py
+index 5d9d2ba..a743471 100755
+--- a/libsoup/tld-parser.py
++++ b/libsoup/tld-parser.py
+@@ -1 +1 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.58.1.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.58.1.bb
index 5b1273efec2..4bd22b4b1ba 100644
--- a/meta/recipes-support/libsoup/libsoup-2.4_2.58.1.bb
+++ b/meta/recipes-support/libsoup/libsoup-2.4_2.58.1.bb
@@ -9,7 +9,8 @@  DEPENDS = "glib-2.0 glib-2.0-native libxml2 sqlite3 intltool-native"
 
 SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
 
-SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz"
+SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
+           file://use-py3.patch"
 
 SRC_URI[md5sum] = "91d7a6bf8785d31f4b154a7612e53e62"
 SRC_URI[sha256sum] = "62c669f557de745b7b20ba9d5b74d839c95e4c9cea1a5ab7f3da5531a1aeefb9"