Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89441 - /etc/mplayer.conf is updated incorrectly with options cache_min, cache_prefill instead of cache-min, cache-prefill
Summary: /etc/mplayer.conf is updated incorrectly with options cache_min, cache_prefil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 91874 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-17 11:37 UTC by hzulu_4
Modified: 2006-06-21 16:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hzulu_4 2005-04-17 11:37:38 UTC
After emerging media-video/mplayer-1.0_pre6-r4 as part of an "emerge -u world" and using dispatch-conf to update /etc/mplayer.conf, the options "cache-min" and "cache-prefill" are changed to "cache_min" and "cache_prefill".

When I next used mplayer, I got the error:

Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

Reproducible: Always
Steps to Reproduce:
1.emerge mplayer
2.Use dispatch-conf, replace old config file /etc/mplayer.conf with new file
3.



Expected Results:  
The options in the file /etc/mplayer.conf should remain cache-min and cache-prefill.

emerge info:

Gentoo Base System version 1.4.16
Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.4.26-gentoo-r14 i686)
=================================================================
System uname: 2.4.26-gentoo-r14 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 15:32:12)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/
shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/con
fig/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/x
dvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.oregonstate.edu
http://www.gtlib.cc.gatech.edu/pub/gentoo http
://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts bonobo canna cdr cjk crypt
cups curl divx4linux dvd dvdr emboss encode es
d fam flac foomaticdb fortran freewnn gdbm gif gnome gphoto2 gtk gtk2 gtkhtml
guile imagemagick imlib ipv6 java jpeg kde libg++
 libwww mad mikmod motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline
 scanner sdl slang snmp spell ssl svga tcpd tetex tiff truetype truetype-fonts
type1-fonts vorbis xml xml2 xmms xv zlib linguas
_en linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jeff Davidson 2005-04-17 12:04:37 UTC
I think if you add this line:

dosed -e "s/^cache_/cache-/g" /etc/mplayer.conf

Right after these two lines:

dosed -e 's/include =/#include =/' /etc/mplayer.conf
dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf

Then the ebuild should work as expected.  Can't test atm.

-Jeff
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2005-05-08 04:02:24 UTC
*** Bug 91874 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Roberts 2005-05-08 04:14:13 UTC
This is fixed in mplayer-1.0_pre7, as the file located at ${S}/etc/example.conf contains the correct directives.
Comment 4 Luca Barbato gentoo-dev 2005-05-18 16:55:49 UTC
Could I mark the bug as fixed or there is somebody who needs the pre6?
Comment 5 Steve Dibb (RETIRED) gentoo-dev 2006-06-21 16:39:55 UTC
fixed in pre7