Bug 74459 - No rule to make target src/git-version.h
Summary: No rule to make target src/git-version.h
Status: VERIFIED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: Other All
: medium critical
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 17:13 UTC by U. Artie Eoff
Modified: 2014-05-08 17:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.