This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.24-627-g64235cc


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  64235ccc11175e6d4186a8fa911816cd7674d453 (commit)
      from  77847b5cc352c04b7d8d8b84c7dd5e7091c1aaec (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=64235ccc11175e6d4186a8fa911816cd7674d453

commit 64235ccc11175e6d4186a8fa911816cd7674d453
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Jan 10 16:31:19 2017 -0200

    Make build-many-glibcs.py work on python3.2
    
    I used this patch to run the new build script with python3.2, it may be worth
    adding this hack if python3.5 is not widespread (might work with older python,
    i haven't tested that).
    
    This patch make build-many-glibcs.py work with python 3.2 by
    adding fallback implementation to python 3.5 facilities if they
    are not present.
    
    Checked building a x86_64-linux-gnu toolchain with python 3.2.
    
    2016-11-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
    
    	* scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
    	(re.fullmatch, subprocess.run): Likewise.

diff --git a/ChangeLog b/ChangeLog
index e1cb037..4f87985 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+	* scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
+	(re.fullmatch, subprocess.run): Likewise.
+
 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
 	* po/libc.pot: Regenerate.
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 60a7874..d27e70b 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -49,6 +49,43 @@ import sys
 import time
 import urllib.request
 
+try:
+    os.cpu_count
+except:
+    import multiprocessing
+    os.cpu_count = lambda: multiprocessing.cpu_count()
+
+try:
+    re.fullmatch
+except:
+    re.fullmatch = lambda p,s,f=0: re.match(p+"\\Z",s,f)
+
+try:
+    subprocess.run
+except:
+    class _CompletedProcess:
+        def __init__(self, args, returncode, stdout=None, stderr=None):
+            self.args = args
+            self.returncode = returncode
+            self.stdout = stdout
+            self.stderr = stderr
+
+    def _run(*popenargs, input=None, timeout=None, check=False, **kwargs):
+        assert(timeout is None)
+        with subprocess.Popen(*popenargs, **kwargs) as process:
+            try:
+                stdout, stderr = process.communicate(input)
+            except:
+                process.kill()
+                process.wait()
+                raise
+            returncode = process.poll()
+            if check and returncode:
+                raise subprocess.CalledProcessError(returncode, popenargs)
+        return _CompletedProcess(popenargs, returncode, stdout, stderr)
+
+    subprocess.run = _run
+
 
 class Context(object):
     """The global state associated with builds in a given directory."""

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                    |    5 +++++
 scripts/build-many-glibcs.py |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]