Donate Share

OGMRip

Tracker: Bugs

5 Ubuntu Edgy: mplayer version not detected properly - ID: 1569540
Last Update: Comment added ( billl )

./configure does not correctly interpret Ubuntu's
mplayer version, which leads to compile-time errors.


/* Mplayer major version number */
#define MPLAYER_MAJOR MPlayer 2:0.99+1.0pre8-0ubuntu7
(C) 2000-2006 MPlayer Team

/* Mplayer pre version number */
#define MPLAYER_PRE 0



John Dong ( jdong2002 ) - 2006-10-02 20:31

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2006-10-03 08:50
Sender: billlProject AdminAccepting Donations

Logged In: YES
user_id=725712

A better solution would be not to patch configure but to
patch config.h. See this thread:
http://sourceforge.net/forum/forum.php?thread_id=1530591&forum_id=258033

Anyway, I won't commit any patches to add support of ubuntu
because I think these patches are very specific. Ubuntu
should not change mplayer's version number.

Cheers,

Olivier



Date: 2006-10-02 20:35
Sender: jdong2002

Logged In: YES
user_id=736418

Never mind I guess, found this patch:


--- ogmrip-0.10.0-rc3.orig/configure
+++ ogmrip-0.10.0-rc3/configure
@@ -20377,15 +20377,15 @@
echo "$as_me: WARNING: Mplayer SVN/CVS detected - USE AT
YOUR OWN RISK" >&2;}
else
have_mplayer_dev=no
- MPLAYER_MAJOR=`$MPLAYER_PROG 2> /dev/null |
grep "^MPlayer" | $SED_PROG -e 's%^MPlayer
\([0-1]\).*%\1%'`
+ MPLAYER_MAJOR=`$MPLAYER_PROG 2> /dev/null |
grep "^MPlayer" | $SED_PROG -e 's%^MPlayer .*\([0-1]\)\.
[0-9]pre.*%\1%'`

cat >>confdefs.h <<_ACEOF
#define MPLAYER_MAJOR $MPLAYER_MAJOR
_ACEOF


- if $MPLAYER_PROG 2> /dev/null | grep -q "^MPlayer
[0-1]\.[0-9]\+pre[0-9]\+.*"; then
- MPLAYER_PRE=`$MPLAYER_PROG 2> /dev/null |
grep "^MPlayer" | $SED_PROG -e 's%^MPlayer [0-1]\.
[0-9]\+pre\([0-9]\+\).*%\1%'`
+ if $MPLAYER_PROG 2> /dev/null |
grep -q "^MPlayer .*[0-1]\.[0-9]pre[0-9].*"; then
+ MPLAYER_PRE=`$MPLAYER_PROG 2> /dev/null |
grep "^MPlayer" | $SED_PROG -e 's%^MPlayer .*[0-1]\.
[0-9]pre\([0-9]\).*%\1%'`

cat >>confdefs.h <<_ACEOF
#define MPLAYER_PRE $MPLAYER_PRE


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2006-10-03 08:50 billl
close_date - 2006-10-03 08:50 billl