Bug 103539 - Windows build breaks if 'sh' is not available
Summary: Windows build breaks if 'sh' is not available
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 17.2
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-01 20:52 UTC by Charles Huber
Modified: 2017-11-01 21:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Charles Huber 2017-11-01 20:52:46 UTC
3fd425aed7 switched write_git_sha1_h_file() in src/SConscript from Popen()ing 'git' directly to using a sh script.  Since sh isn't available on Windows the function fails to create the git_sha1.h file and eventually breaks the build when things like src\mesa\main\version.c try to #include it.

I'm using the mesa-17.2.4 tag (a4b72e2643) with the VS2015 toolchain.
Comment 1 Charles Huber 2017-11-01 21:08:02 UTC
Reverting write_git_sha1_h_file() to the pre-3fd425aed7 code fixes the build for me.
Comment 2 Brian Paul 2017-11-01 21:29:22 UTC
Please try the latest code.  This was fixed back in August.  Re-open this bug if you still have trouble.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.