[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] Problem compiling git snapshots
From: |
esp2200 |
Subject: |
[Chicken-hackers] Problem compiling git snapshots |
Date: |
Tue, 26 Jul 2011 09:26:13 +0000 (UTC) |
Hello,
In the last few days, compiling git snapshots of "Master", et. al., has failed after invoking "identify.sh"; gcc emits errors about not finding files: buildid, buildbranch, and buildtag.h .
Seems identify.sh is trying to get info from a ".git" directory, but the git snapshots don't have the directory, so the shell script doesn't write the build* files, hence the build fails.
This very simple patch solved the problem:
--- identify-orig.sh
2011-07-23 03:13:18.000000000 -0700
+++ identify.sh
2011-07-25 22:51:34.000000000 -0700
@@ -35,4 +35,9 @@
if test "${tag0}" \!= "${tag}"; then
echo ${tag} >buildtag.h
fi
+else
+ tag="#define C_BUILD_TAG \"compiled ${buildtime} on ${host} (${usys})\""
+ echo ${rev} >buildid
+ echo ${branchname} >buildbranch
+ echo ${tag} >buildtag.h
fi
Don't know if this is best solution, or will even be needed later. But it works around the apparent quirks of git's snapshots.
Thanks,
Jules Altfas
- [Chicken-hackers] Problem compiling git snapshots,
esp2200 <=