summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-06-07 17:00:13 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-06-08 15:49:09 +0200
commit0a709e1497108916a8be0e6c8e078e4a8627c7b0 (patch)
tree1df07c2fd2c8bd5080aee7236a5c39c02fd07f7a /patches
parenta08582c44db7a12f7ac6bd021ae0330ab8c9a1ce (diff)
downloadptxdist-0a709e1497108916a8be0e6c8e078e4a8627c7b0.tar.gz
ptxdist-0a709e1497108916a8be0e6c8e078e4a8627c7b0.tar.xz
libmbim: realy use python3
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/libmbim-1.16.0/0001-build-figure-out-the-right-Python-provider-for-the-b.patch145
l---------patches/libmbim-1.16.0/autogen.sh1
-rw-r--r--patches/libmbim-1.16.0/series4
3 files changed, 150 insertions, 0 deletions
diff --git a/patches/libmbim-1.16.0/0001-build-figure-out-the-right-Python-provider-for-the-b.patch b/patches/libmbim-1.16.0/0001-build-figure-out-the-right-Python-provider-for-the-b.patch
new file mode 100644
index 000000000..a5e392689
--- /dev/null
+++ b/patches/libmbim-1.16.0/0001-build-figure-out-the-right-Python-provider-for-the-b.patch
@@ -0,0 +1,145 @@
+From: Lubomir Rintel <lkundrak@v3.sk>
+Date: Tue, 24 Apr 2018 08:10:32 +0200
+Subject: [PATCH] build: figure out the right Python provider for the build
+
+Python can be called python3, python2 or merely python, but we're fine with
+either.
+---
+ configure.ac | 2 ++
+ src/libmbim-glib/generated/Makefile.am | 26 +++++++++++++-------------
+ 2 files changed, 15 insertions(+), 13 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b0aa9cf5cba4..acbd89f5f7ce 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -98,6 +98,8 @@ PKG_CHECK_MODULES(MBIMPROXY,
+ AC_SUBST(MBIMPROXY_CFLAGS)
+ AC_SUBST(MBIMPROXY_LIBS)
+
++AM_PATH_PYTHON([], [], [PYTHON=python])
++
+ GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
+ AC_SUBST(GLIB_MKENUMS)
+
+diff --git a/src/libmbim-glib/generated/Makefile.am b/src/libmbim-glib/generated/Makefile.am
+index ce6940206f3c..2834b99ab1ba 100644
+--- a/src/libmbim-glib/generated/Makefile.am
++++ b/src/libmbim-glib/generated/Makefile.am
+@@ -94,7 +94,7 @@ mbim-basic-connect.h mbim-basic-connect.c mbim-basic-connect.sections: $(top_src
+ $(AM_V_GEN) \
+ rm -f mbim-basic-connect.h && \
+ rm -f mbim-basic-connect.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-basic-connect.json \
+ --output mbim-basic-connect
+
+@@ -103,7 +103,7 @@ mbim-sms.h mbim-sms.c mbim-sms.sections: $(top_srcdir)/data/mbim-service-sms.jso
+ $(AM_V_GEN) \
+ rm -f mbim-sms.h && \
+ rm -f mbim-sms.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-sms.json \
+ --output mbim-sms
+
+@@ -112,7 +112,7 @@ mbim-ussd.h mbim-ussd.c mbim-ussd.sections: $(top_srcdir)/data/mbim-service-ussd
+ $(AM_V_GEN) \
+ rm -f mbim-ussd.h && \
+ rm -f mbim-ussd.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-ussd.json \
+ --output mbim-ussd
+
+@@ -121,7 +121,7 @@ mbim-auth.h mbim-auth.c mbim-auth.sections: $(top_srcdir)/data/mbim-service-auth
+ $(AM_V_GEN) \
+ rm -f mbim-auth.h && \
+ rm -f mbim-auth.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-auth.json \
+ --output mbim-auth
+
+@@ -130,7 +130,7 @@ mbim-phonebook.h mbim-phonebook.c mbim-phonebook.sections: $(top_srcdir)/data/mb
+ $(AM_V_GEN) \
+ rm -f mbim-phonebook.h && \
+ rm -f mbim-phonebook.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-phonebook.json \
+ --output mbim-phonebook
+
+@@ -139,7 +139,7 @@ mbim-stk.h mbim-stk.c mbim-stk.sections: $(top_srcdir)/data/mbim-service-stk.jso
+ $(AM_V_GEN) \
+ rm -f mbim-stk.h && \
+ rm -f mbim-stk.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-stk.json \
+ --output mbim-stk
+
+@@ -148,7 +148,7 @@ mbim-dss.h mbim-dss.c mbim-dss.sections: $(top_srcdir)/data/mbim-service-dss.jso
+ $(AM_V_GEN) \
+ rm -f mbim-dss.h && \
+ rm -f mbim-dss.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-dss.json \
+ --output mbim-dss
+
+@@ -157,7 +157,7 @@ mbim-ms-firmware-id.h mbim-ms-firmware-id.c mbim-ms-firmware-id.sections: $(top_
+ $(AM_V_GEN) \
+ rm -f mbim-ms-firmware-id.h && \
+ rm -f mbim-ms-firmware-id.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-ms-firmware-id.json \
+ --output mbim-ms-firmware-id
+
+@@ -166,7 +166,7 @@ mbim-ms-host-shutdown.h mbim-ms-host-shutdown.c mbim-ms-host-shutdown.sections:
+ $(AM_V_GEN) \
+ rm -f mbim-ms-host-shutdown.h && \
+ rm -f mbim-ms-host-shutdown.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-ms-host-shutdown.json \
+ --output mbim-ms-host-shutdown
+
+@@ -175,7 +175,7 @@ mbim-proxy-control.h mbim-proxy-control.c mbim-proxy-control.sections: $(top_src
+ $(AM_V_GEN) \
+ rm -f mbim-proxy-control.h && \
+ rm -f mbim-proxy-control.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-proxy-control.json \
+ --output mbim-proxy-control
+
+@@ -184,7 +184,7 @@ mbim-qmi.h mbim-qmi.c mbim-qmi.sections: $(top_srcdir)/data/mbim-service-qmi.jso
+ $(AM_V_GEN) \
+ rm -f mbim-qmi.h && \
+ rm -f mbim-qmi.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-qmi.json \
+ --output mbim-qmi
+
+@@ -193,7 +193,7 @@ mbim-atds.h mbim-atds.c mbim-atds.sections: $(top_srcdir)/data/mbim-service-atds
+ $(AM_V_GEN) \
+ rm -f mbim-atds.h && \
+ rm -f mbim-atds.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-atds.json \
+ --output mbim-atds
+
+@@ -202,7 +202,7 @@ mbim-intel-firmware-update.h mbim-intel-firmware-update.c mbim-intel-firmware-up
+ $(AM_V_GEN) \
+ rm -f mbim-intel-firmware-update.h && \
+ rm -f mbim-intel-firmware-update.c && \
+- $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
++ $(PYTHON) $(top_srcdir)/build-aux/mbim-codegen/mbim-codegen \
+ --input $(top_srcdir)/data/mbim-service-intel-firmware-update.json \
+ --output mbim-intel-firmware-update
+
diff --git a/patches/libmbim-1.16.0/autogen.sh b/patches/libmbim-1.16.0/autogen.sh
new file mode 120000
index 000000000..9f8a4cb7d
--- /dev/null
+++ b/patches/libmbim-1.16.0/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh \ No newline at end of file
diff --git a/patches/libmbim-1.16.0/series b/patches/libmbim-1.16.0/series
new file mode 100644
index 000000000..407331c04
--- /dev/null
+++ b/patches/libmbim-1.16.0/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-build-figure-out-the-right-Python-provider-for-the-b.patch
+# cc8db260335767a706f5da594773d8d7 - git-ptx-patches magic