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-371-g0c95f51


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  0c95f51d84e8563b9e08d481b1a2b430a7ccbd0b (commit)
      from  ba1cafea1616d6046ae54a1ed59540867ff647b9 (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=0c95f51d84e8563b9e08d481b1a2b430a7ccbd0b

commit 0c95f51d84e8563b9e08d481b1a2b430a7ccbd0b
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Nov 14 23:48:50 2016 +0000

    Fix build-many-glibcs.py style issues.
    
    	* scripts/build-many-glibcs.py (os.path): Do not import.
    	(Context): Inherit explicitly from object.  Remove blank line
    	between class and docstring.
    	(Config): Likewise.
    	(Glibc): Likewise.
    	(Command): Likewise.
    	(CommandList): Likewise.
    	(Context.write_files): Store chmod mode in a variable.

diff --git a/ChangeLog b/ChangeLog
index 8aee2af..740d796 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
 
+	* scripts/build-many-glibcs.py (os.path): Do not import.
+	(Context): Inherit explicitly from object.  Remove blank line
+	between class and docstring.
+	(Config): Likewise.
+	(Glibc): Likewise.
+	(Command): Likewise.
+	(CommandList): Likewise.
+	(Context.write_files): Store chmod mode in a variable.
+
 	* sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
 	LIBC_SLIBDIR_RTLDDIR for tilegx32.
 	* sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 4b4e15c..be561c3 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -33,7 +33,6 @@ configurations for which compilers or glibc are to be built.
 
 import argparse
 import os
-import os.path
 import re
 import shutil
 import stat
@@ -42,8 +41,7 @@ import sys
 import urllib.request
 
 
-class Context:
-
+class Context(object):
     """The global state associated with builds in a given directory."""
 
     def __init__(self, topdir, parallelism, keep, action):
@@ -460,9 +458,10 @@ class Context:
             'record_status PASS\n')
         with open(self.wrapper, 'w') as f:
             f.write(wrapper_text)
-        os.chmod(self.wrapper,
-                 (stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|
-                  stat.S_IROTH|stat.S_IXOTH))
+        # Mode 0o755.
+        mode_exec = (stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|
+                     stat.S_IROTH|stat.S_IXOTH)
+        os.chmod(self.wrapper, mode_exec)
         save_logs_text = (
             '#!/bin/sh\n'
             'if ! [ -f tests.sum ]; then\n'
@@ -487,9 +486,7 @@ class Context:
             'done\n')
         with open(self.save_logs, 'w') as f:
             f.write(save_logs_text)
-        os.chmod(self.save_logs,
-                 (stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|
-                  stat.S_IROTH|stat.S_IXOTH))
+        os.chmod(self.save_logs, mode_exec)
 
     def do_build(self):
         """Do the actual build."""
@@ -678,8 +675,7 @@ class Context:
         os.remove(filename)
 
 
-class Config:
-
+class Config(object):
     """A configuration for building a compiler and associated libraries."""
 
     def __init__(self, ctx, arch, os_name, variant=None, gcc_cfg=None,
@@ -846,8 +842,7 @@ class Config:
         self.build_cross_tool(cmdlist, 'gcc', tool_build, cfg_opts)
 
 
-class Glibc:
-
+class Glibc(object):
     """A configuration for building glibc."""
 
     def __init__(self, compiler, arch=None, os_name=None, variant=None,
@@ -958,8 +953,7 @@ class Glibc:
         cmdlist.cleanup_dir()
 
 
-class Command:
-
+class Command(object):
     """A command run in the build process."""
 
     def __init__(self, desc, num, dir, path, command, always_run=False):
@@ -999,8 +993,7 @@ class Command:
         return self.shell_make_quote_list(self.command, True)
 
 
-class CommandList:
-
+class CommandList(object):
     """A list of commands run in the build process."""
 
     def __init__(self, desc, keep):

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

Summary of changes:
 ChangeLog                    |    9 +++++++++
 scripts/build-many-glibcs.py |   27 ++++++++++-----------------
 2 files changed, 19 insertions(+), 17 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]