"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "package/python3/0032-fix-building-on-older-distributions.patch" between
buildroot-2019.05.1.tar.bz2 and buildroot-2019.08-rc1.tar.bz2

About: Buildroot is a set of Makefiles and patches that makes it easy to generate a complete embedded Linux system. Release candidate.

0032-fix-building-on-older-distributions.patch  (buildroot-2019.05.1.tar.bz2):0032-fix-building-on-older-distributions.patch  (buildroot-2019.08-rc1.tar.bz2)
From ba10bac420398270a0b992e85d93383373d5fcac Mon Sep 17 00:00:00 2001 From ba10bac420398270a0b992e85d93383373d5fcac Mon Sep 17 00:00:00 2001
From: Adam Duskett <aduskett@greenlots.com> From: Adam Duskett <aduskett@gmail.com>
Date: Thu, 16 Aug 2018 14:52:37 -0700 Date: Thu, 16 Aug 2018 14:52:37 -0700
Subject: [PATCH] fix building on older distributions Subject: [PATCH] fix building on older distributions
Python > 3.6.3 calls os.replace in the update_file.py script, during the Python > 3.6.3 calls os.replace in the update_file.py script, during the
regen-importlib phase of the build process. regen-importlib phase of the build process.
According to Doc/whatsnew/3.3.rst line 1631, os.replace acts in the same According to Doc/whatsnew/3.3.rst line 1631, os.replace acts in the same
way as os.rename, however, it is now cross-platform compatible for Windows. way as os.rename, however, it is now cross-platform compatible for Windows.
Because BuildRoot is guaranteed only to be built in POSIX environment, it is Because BuildRoot is guaranteed only to be built in POSIX environment, it is
safe to change os.replace back to os.rename. safe to change os.replace back to os.rename.
This change fixes building on older systems such as CentOS7, that only come This change fixes building on older systems such as CentOS7, that only come
with python 2. with python 2.
Signed-off-by: Adam Duskett <aduskett@greenlots.com> Signed-off-by: Adam Duskett <aduskett@gmail.com>
--- ---
Tools/scripts/update_file.py | 2 +- Tools/scripts/update_file.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Tools/scripts/update_file.py b/Tools/scripts/update_file.py diff --git a/Tools/scripts/update_file.py b/Tools/scripts/update_file.py
index 224585c69b..ef458c0c63 100644 index 224585c69b..ef458c0c63 100644
--- a/Tools/scripts/update_file.py --- a/Tools/scripts/update_file.py
+++ b/Tools/scripts/update_file.py +++ b/Tools/scripts/update_file.py
@@ -16,7 +16,7 @@ def main(old_path, new_path): @@ -16,7 +16,7 @@ def main(old_path, new_path):
with open(new_path, 'rb') as f: with open(new_path, 'rb') as f:
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)