summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/python/python3-smartypants/0001-Change-hash-bang-to-python3.patch47
-rw-r--r--meta/recipes-devtools/python/python3-smartypants_2.0.0.bb1
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-smartypants/0001-Change-hash-bang-to-python3.patch b/meta/recipes-devtools/python/python3-smartypants/0001-Change-hash-bang-to-python3.patch
new file mode 100644
index 0000000000..aab16eaab4
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-smartypants/0001-Change-hash-bang-to-python3.patch
@@ -0,0 +1,47 @@
1From e299bcb05405ff49450307bf3002c1fac14a866c Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com>
3Date: Sun, 20 Feb 2022 18:55:50 -0800
4Subject: [PATCH] Change hash bang to python3
5
6In setup.py, smartypants and smartypants.py set hash bang to python3.
7
8Upstream-Status: Inappropriate [oe-core specific]
9
10Signed-off-by: Tim Orling <tim.orling@konsulko.com>
11
12---
13 setup.py | 2 +-
14 smartypants | 2 +-
15 smartypants.py | 2 +-
16 3 files changed, 3 insertions(+), 3 deletions(-)
17
18diff --git a/setup.py b/setup.py
19index ff1ea76..96a8b73 100755
20--- a/setup.py
21+++ b/setup.py
22@@ -1,4 +1,4 @@
23-#!/usr/bin/env python
24+#!/usr/bin/env python3
25 # Copyright (C) 2013, 2014 by Yu-Jie Lin
26 # For detail license information, See COPYING
27
28diff --git a/smartypants b/smartypants
29index 189adf5..0cca568 100755
30--- a/smartypants
31+++ b/smartypants
32@@ -1,4 +1,4 @@
33-#!/usr/bin/env python
34+#!/usr/bin/env python3
35 # Copyright (c) 2013, 2014 Yu-Jie Lin
36 # Licensed under the BSD License, for detailed license information, see COPYING
37
38diff --git a/smartypants.py b/smartypants.py
39index a70575b..e53bd87 100755
40--- a/smartypants.py
41+++ b/smartypants.py
42@@ -1,4 +1,4 @@
43-#!/usr/bin/python
44+#!/usr/bin/env python3
45 # -*- coding: utf-8 -*-
46 # Copyright (c) 2013, 2014, 2016 Yu-Jie Lin
47 # Copyright (c) 2004, 2005, 2007, 2013 Chad Miller
diff --git a/meta/recipes-devtools/python/python3-smartypants_2.0.0.bb b/meta/recipes-devtools/python/python3-smartypants_2.0.0.bb
index ba3408247b..05c94c390f 100644
--- a/meta/recipes-devtools/python/python3-smartypants_2.0.0.bb
+++ b/meta/recipes-devtools/python/python3-smartypants_2.0.0.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=977036977591ac666c728921ecc54c4f"
6inherit pypi setuptools3 6inherit pypi setuptools3
7 7
8PYPI_PACKAGE = "smartypants" 8PYPI_PACKAGE = "smartypants"
9SRC_URI += "file://0001-Change-hash-bang-to-python3.patch"
9SRC_URI[sha256sum] = "7812353a32022699a1aa8cd5626e01c94a946dcaeedaee2d0b382bae4c4cbf36" 10SRC_URI[sha256sum] = "7812353a32022699a1aa8cd5626e01c94a946dcaeedaee2d0b382bae4c4cbf36"
10 11
11BBCLASSEXTEND = "native" 12BBCLASSEXTEND = "native"