Ticket #16589 (closed defect: fixed)
DEFECT: ffmpeg -version fails to report correct svn revision
| Reported by: | db.evans@… | Owned by: | macsforever2000@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | ffmpeg | Cc: | acho@… |
| Port: | ffmpeg |
Description
Building using the existing Portfile, the command ffmpeg -version yields
FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
The ffmpeg makefiles depend on the existence of svn metadata to determine the correct svn revision but the current Portfile fetches the distribution using svn export resulting in no metadata.
The attached patch to the Portfile uses svn co in the fetch phase to insure that the correct svn metadata is included. In addition, a pre-fetch phase is included to forcably delete a pre-existing distribution, prior to the fetch phase, if it does not contain metadata. This ensures that an existing installation will correctly upgrade in the presence of a pre-existing svn distribution without metadata.
After building with the modified Portfile, ffmpeg -version yields
FFmpeg version SVN-r14381, Copyright (c) 2000-2008 Fabrice Bellard, et al.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


