[SeaBIOS] [PATCH 0/3] Patches for baytrail based chromebooks

Kevin O'Connor kevin at koconnor.net
Sun Nov 8 14:24:10 CET 2015


On Sun, Nov 08, 2015 at 11:44:26AM +0000, John Lewis wrote:
> 
> 
> On 2015-11-03 13:23, Kevin O'Connor wrote:
> >On Tue, Nov 03, 2015 at 01:09:39PM +0000, John Lewis wrote:
> >>On 2015-11-03 13:02, Kevin O'Connor wrote:
> >>>That log shows that git wasn't found during the build.  Is there
> >>>something in Jenkins that prevents the build from accessing git or is
> >>>git not in the path?
> >>>
> >>
> >>It's more or less a default Jenkins install, so Git mustn't be available
> >>inside the workspace. I'll see what I can do about that. I guess it's
> >>one to
> >>watch out for in future.
> >
> >What does the build output with the patch below?
> >
> 
> CWD=/var/lib/jenkins/jobs/SeaBIOS/workspace
> PATH=/sbin:/usr/sbin:/bin:/usr/bin FILES=['docs', 'vgasrc',
> 'COPYING.LESSER', 'scripts', 'README', 'COPYING', '.config', 'Makefile',
> 'src', 'out', '.gitignore', '.git', '.config.old', 'buildversion.patch']

Odd.  Can you report the output with the patch below instead?

-Kevin


--- a/scripts/buildversion.py
+++ b/scripts/buildversion.py
@@ -14,13 +14,19 @@ VERSION_FORMAT = """
 
 # Obtain version info from "git" program
 def git_version():
+    sys.stdout.write("CWD=%s PATH=%s FILES=%s\n" % (
+        os.getcwd(), os.environ['PATH'], os.listdir(os.getcwd())))
     if not os.path.exists('.git'):
         return ""
     params = "git describe --tags --long --dirty".split()
+    sys.stdout.write("try git %s\n" % (params,))
     try:
         ver = subprocess.check_output(params).decode().strip()
     except:
+        import traceback
+        sys.stdout.write("git exc: %s\n" % (traceback.format_exc(),))
         return ""
+    sys.stdout.write("git ver %s\n" % (ver,))
     return ver
 
 # Look for version in a ".version" file.  Official release tarballs



More information about the SeaBIOS mailing list