[Ffmpeg-devel] Problem building from snapshots

Michel Bardiaux mbardiaux
Mon Apr 23 15:32:50 CEST 2007


M?ns Rullg?rd wrote:
> Michel Bardiaux <mbardiaux at mediaxim.be> writes:
> 
>> 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`
> 
> Shorter version:
> 
> sed -n '/^dir$/{n;p;q}'
> 
> This should also be more robust.

Yes.

> 
>> Big 'but': is this general? The only way to know is to ask all
>> developpers to have a look at their entries file.
> 
> Better to ask the subversion devs or rtfm/s.
> 
I will check the source before posting a new patch.


-- 
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/




More information about the ffmpeg-devel mailing list