[Ffmpeg-devel] Problem building from snapshots
Michel Bardiaux
mbardiaux
Thu Apr 19 18:41:04 CEST 2007
Diego Biurrun wrote:
> On Thu, Apr 19, 2007 at 05:28:13PM +0200, Michel Bardiaux wrote:
>> Diego Biurrun wrote:
>> [snip]
>>>>> test $svn_revision || svn_revision=`cd "$1" && grep revision
>>>>> .svn/entries |
>>>>> \
>>>>> cut -d '"' -f2 2> /dev/null`
>>>> The above tries to guess revision from existing svn metadata. But in
>>>> case the client used does not leave metadata similar to the Linux
>>>> client
>>> The problem is that this works only on pre-1.4 Subversion clients as the
>>> metadata was restructured with version 1.4.
>>>
>> Restructured in a way that makes a similar hack impossible?
>
> No, somebody that understands the new format needs to come up with an
> equivalent hack for it.
>
I managed to compile svn 1.4.3 from source. After checkout of ffmpeg,
the file .svn/entries begins with
=== TOP OF FILE
8
dir
8759
svn://svn.mplayerhq.hu/ffmpeg/trunk
svn://svn.mplayerhq.hu/ffmpeg
=== ...
If this form is stable, the 'hack' is simply:
test $svn_revision || svn_revision=`cd "$1" && tail +4 .svn/entries |
head -1 \
2> /dev/null`
Big 'but': is this general? The only way to know is to ask all
developpers to have a look at their entries file.
The pre-1.4 fails gracefully on a (my!!) 1.4 checkout tree, so just
adding this new hack should be OK. Patch attached.
Note that I have slightly changed the pre-1.4 hack, just in case a file
with name containing the string "revision" is ever added to the ffmpeg
sources...
Now, it is rather likely this will be my last message until Monday.
HaNWE,
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be
Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: version.pat
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070419/a23edd45/attachment.asc>
More information about the ffmpeg-devel
mailing list