[Mesa-dev] Trouble with missing git_sha1.h when building from a fresh tree

Haixia Shi hshi at chromium.org
Thu Jun 16 20:14:52 UTC 2016


Emil

I looked at commit 3689ef32 which started the problem, and it seems that
patch removed the line "touch git_sha1.h.tmp". Previously my workflow was
"working" because the touch command ensures there's always going to be an
empty header file.

Was this intentional? For the new git_sha1.h rules, I wonder if it is ok to
add a step for git_sha1.h.tmp that does a "touch git_sha1.h" to ensure the
file exists?

On Thu, Jun 16, 2016 at 12:48 PM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> On 16 June 2016 at 20:47, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> > On 16 June 2016 at 20:42, Haixia Shi <hshi at chromium.org> wrote:
> >> Bisect shows the problem started at commit
> >> 3689ef32afdafbb030069e560aac0e563fc29048
> >> Author: Emil Velikov <emil.velikov at collabora.com>
> >> Date:   Mon May 30 12:32:05 2016 +0100
> >>
> >>     automake: rework the git_sha1.h rule, include in tarball
> >>
> >>     As we'll need the file in the release tarball, rework the rule so
> that
> >>     the file is regenerated _only_ if we're in a git repository.
> >>
> >>     With this in place we can build vulkan (anv) from a release tarball.
> >>
> >>     Cc: Jason Ekstrand <jason.ekstrand at intel.com>
> >>     Cc: Kristian Høgsberg Kristensen <krh at bitplanet.net>
> >>     Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> >>
> >> I'm not building from a release tarball, but the workflow first copies
> the
> >> source tree to a tmp directory (without the .git directory), so there's
> no
> >> git_sha1.h file, and the file is not generated either.
> >>
> > Hmmm... I wouldn't have imagine this particular workflow. Have you
> > considered gitlink and/or git worktree ?
> >
> > If neither of these are an option for you see my earlier email.
> >
> The former seems to be missing a manpage so here's a PDF
> https://media.readthedocs.org/pdf/git-link/latest/git-link.pdf
>
> -Emil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160616/f20feef1/attachment.html>


More information about the mesa-dev mailing list