Bug 74459

Summary: No rule to make target src/git-version.h
Product: Wayland Reporter: U. Artie Eoff <ullysses.a.eoff>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description U. Artie Eoff 2014-02-03 17:13:10 UTC
Weston fails to compile outside of the git tree:

*** No rule to make target `src/git-version.h', needed by `src/compositor.c'.  Stop.

A developer should be able to use "git checkout-index" into a working directory and then compile from that directory... for example:

1. cd $WLD/src/weston/
2. git checkout-index -a -f --prefix="$WLD/build/weston/"
3. cd $WLD/build/weston/
4. ./autogen.sh --prefix=$WLD
5. make
6. ...

The first bad commit is somewhere between 1afb2383ea and 1e47a93f8
Comment 1 Kristian Høgsberg 2014-02-03 19:22:29 UTC
commit 1d2dd077e77816975a950c22e8345b9e54e712d0
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Mon Feb 3 10:55:51 2014 -0800

    build: Add a rule for creating git-version.h when we don't have a git repo
    
    For dist tarballs we ship git-version.h but if you do a git archive or
    similar to check out a source tree, there's no git-version.h and no
    way to make one.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=74459

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.