package/norm: prepare for Python3
cover package/norm: prepare for Python3
This small series update the norm package to make it possible to compile it using a Python3 based waf package infrastructure, and changes the download server to Github to enhance the reliability of the tarball download, because the original server is quite slow and unreliable.
Titouan Christophe (2):
package/norm: switch to Github hosted archive
package/norm: make wscript Python3 compatible
...ction-call-for-Python3-compatibility.patch | 29 +++++++++++++ ...ixed-tabs-spaces-in-protolib-wscript.patch | 41 +++++++++++++++++++ package/norm/norm.hash | 2 +- package/norm/norm.mk | 4 +- 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 package/norm/0002-Use-print-as-function-call-for-Python3-compatibility.patch create mode 100644 package/norm/0003-Fix-mixed-tabs-spaces-in-protolib-wscript.patch
Signature · 1 line
2.24.1
PATCH 1/2 package/norm: switch to Github hosted archive
The original download server (downloads.pf.itd.nrl.navy.mil) is quite unreliable, which lead to the download being very slow or even failing. Since the project is now hosted on Github, we switch to that site, which makes the download tractable.
--- package/norm/norm.hash | 2 +- package/norm/norm.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
package/norm/norm.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 4480a6ea53fb7ce45b4bc2061d18fbfd46ee9990fc2ed9a9dc303ce4d87888a6 src-norm-1.5.8.tgz +sha256 4480a6ea53fb7ce45b4bc2061d18fbfd46ee9990fc2ed9a9dc303ce4d87888a6 src-norm-with-protolib-1.5.8.tgz sha256 ba4b7e49b0163d6839830e3f47505696c6eaac77ccd93531831dc837b2160608 LICENSE.TXT
package/norm/norm.mk +2 -2
@@ -5,8 +5,8 @@ ################################################################################ NORM_VERSION = 1.5.8 -NORM_SITE = http://downloads.pf.itd.nrl.navy.mil/norm -NORM_SOURCE = src-norm-$(NORM_VERSION).tgz +NORM_SITE = https://github.com/USNavalResearchLaboratory/norm/releases/download/v$(NORM_VERSION) +NORM_SOURCE = src-norm-with-protolib-$(NORM_VERSION).tgz NORM_INSTALL_STAGING = YES NORM_LICENSE = NRL License NORM_LICENSE_FILES = LICENSE.TXT
Signature · 1 line
2.24.1
PATCH 2/2 package/norm: make wscript Python3 compatible
In reply to Titouan ChristopheThis makes slight modifications to the waf build definition files that make possible to compile norm with Waf running on Python3.
This has been tested on my experimental Python3 waf-package infrastructure, and still works with the actual Py2 setup.
--- ...ction-call-for-Python3-compatibility.patch | 29 +++++++++++++ ...ixed-tabs-spaces-in-protolib-wscript.patch | 41 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 package/norm/0002-Use-print-as-function-call-for-Python3-compatibility.patch create mode 100644 package/norm/0003-Fix-mixed-tabs-spaces-in-protolib-wscript.patch
package/norm/0002-Use-print-as-function-call-for-Python3-compatibility.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 8c02c2cbc6f07ddaef23e6bf2f6b9a269ed85ff4 Mon Sep 17 00:00:00 2001 +From: Titouan Christophe <[email protected]> +Date: Tue, 4 Feb 2020 11:59:07 +0100 +Subject: [PATCH] Use print as function call for Python3 compatibility + +A similar patch has already been applied upstream, in commit +ada15125a1cbb3b1718d6eef78512a36ed327fcc, which will therefore be +available in the next norm release + +Signed-off-by: Titouan Christophe <[email protected]> +--- + wscript | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/wscript b/wscript +index 8428899..0fdae96 100644 +--- a/wscript ++++ b/wscript +@@ -32,7 +32,7 @@ for line in vfile.readlines(): + if "#define" == line[0] and "VERSION" == line[1]: + VERSION = line[2].strip('"') + if VERSION is None: +- print "Warning: NORM VERSION not found!?" ++ print("Warning: NORM VERSION not found!?") + + # So you don't need to do ./waf configure if you are just using the defaults + waflib.Configure.autoconfig = True +-- +2.24.1
package/norm/0003-Fix-mixed-tabs-spaces-in-protolib-wscript.patch new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.24.1
cover package/norm: prepare for Python3
In reply to Titouan ChristopheTitouan, All,
On 2020-02-04 14:31 +0100, Titouan Christophe spake thusly:
Quoted 8 lines
This small series update the norm package to make it possible to compile it using a Python3 based waf package infrastructure, and changes the download server to Github to enhance the reliability of the tarball download, because the original server is quite slow and unreliable.
Titouan Christophe (2):
package/norm: switch to Github hosted archive
package/norm: make wscript Python3 compatible
Series applied to master, thanks.
I just re-aligned the hash fields with the new spacing convention.
Thanks!
Regards,
Yann E. MORIN.
Quoted 15 lines
...ction-call-for-Python3-compatibility.patch | 29 +++++++++++++ ...ixed-tabs-spaces-in-protolib-wscript.patch | 41 +++++++++++++++++++ package/norm/norm.hash | 2 +- package/norm/norm.mk | 4 +- 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 package/norm/0002-Use-print-as-function-call-for-Python3-compatibility.patch create mode 100644 package/norm/0003-Fix-mixed-tabs-spaces-in-protolib-wscript.patchSignature · 6 lines
2.24.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'