summaryrefslogtreecommitdiffstats
path: root/package/micropython/0001-fix-version.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2015-09-17 11:29:58 +1200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-17 23:36:51 +0200
commit9646e80fca281030eb5d3125f499a60231476373 (patch)
treee2ad20bb413422884b0c744a978d02670cd8b87a /package/micropython/0001-fix-version.patch
parent1fc839e436a2a745bc7996545b1f60df5670df63 (diff)
downloadbuildroot-9646e80fca281030eb5d3125f499a60231476373.tar.gz
buildroot-9646e80fca281030eb5d3125f499a60231476373.zip
micropython: new package
Micro Python is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. [Thomas: fix minor typo in Config.in noticed by Vicente.] Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/micropython/0001-fix-version.patch')
-rw-r--r--package/micropython/0001-fix-version.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/micropython/0001-fix-version.patch b/package/micropython/0001-fix-version.patch
new file mode 100644
index 0000000000..1bf2992169
--- /dev/null
+++ b/package/micropython/0001-fix-version.patch
@@ -0,0 +1,22 @@
+Always use the fallback behaviour for determining the version number
+
+When built from within buildroot the micropython build process detects
+that it is inside a git repository and ends up using the buildroot
+version number instead of the correct micropython version number.
+
+Signed-off-by: Chris Packham <judge.packham@gmail.com>
+---
+diff -Naur micropython-v1.4.5-old/py/makeversionhdr.py micropython-v1.4.5/py/makeversionhdr.py
+--- micropython-v1.4.5-old/py/makeversionhdr.py 2015-08-12 00:42:30.000000000 +1200
++++ micropython-v1.4.5/py/makeversionhdr.py 2015-09-16 10:21:06.698962836 +1200
+@@ -70,9 +70,7 @@
+
+ def make_version_header(filename):
+ # Get version info using git, with fallback to docs/conf.py
+- info = get_version_info_from_git()
+- if info is None:
+- info = get_version_info_from_docs_conf()
++ info = get_version_info_from_docs_conf()
+
+ git_tag, git_hash, ver = info
+
OpenPOWER on IntegriCloud