[MPlayer-dev-eng] fixes for mplayer needed on OpenBSD

Björn Sandell biorn at dce.chalmers.se
Thu Jul 15 01:42:37 CEST 2004


On Tue, 13 Jul 2004 18:42:06 +0200
Diego Biurrun <diego at biurrun.de> wrote:

> Björn Sandell writes:
> > On Mon, 12 Jul 2004 12:35:50 +0200
> > Diego Biurrun <diego at biurrun.de> wrote:
> > 
> > > > --- Makefile.orig	Tue Apr 13 13:22:37 2004
> > > > +++ Makefile	Mon Jul 12 00:51:31 2004
> > > > @@ -287,8 +287,6 @@
> > > >  	@echo "*** Download skin(s) at
> > > >  	http://www.mplayerhq.hu/homepage/dload.html"
> > > >  	@echo "*** for GUI, and extract to $(DATADIR)/Skin/"
> > > >  endif
> > > > -	@if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi
> > > > -	@if test -f $(CONFDIR)/codecs.conf ; then mv -f
> > > > $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi
> > > 
> > > This is wrong.  We put this check there for a reason.  codecs.conf
> > > causes lots of troubles when it is outdated.  Old versions that
> > > are kept through upgrades will make many movies fail with obscure
> > > error messages.
> > 
> > Yepp, this is a typical OpenBSD tweek. We don't install codecs.conf.
> 
> But you may have done so in the past and a stray codecs.conf file may
> be lying around in $(CONFDIR) and it needs to be renamed since old
> codecs.conf files are incompatible with newer MPlayer versions and
> playback will break for several files.  This has caused no end of
> grief in the past.  Nowadays the codecs.conf data is compiled into the
> binary, but the file will override it, so keeping it around is a BUG
> and a bad one.

No, I'm almost dead certain that we have never installed in in such a way
that it would'nt be removed if the package was deleted.
 
> Do you also not create the $(CONFDIR)?  Why?

Ports are installed in a "fake-root" and the (basically) tarred to a package.
$(CONFDIR) (/etc/mplayer) is there, it just not created by that Makefile.
This might not be needed anymore as $(CONFDIR) is \$(DESTDIR)$_confdir.
 
> > > > --- configure.orig	Mon Apr 26 11:44:06 2004
> > > > +++ configure	Mon Jul 12 00:51:31 2004
> > > > @@ -4991,7 +4991,7 @@
> > > >  
> > > >  echocheck "iconv"
> > > > -if test "$_iconv" = auto ; then
> > > > +if test "$_iconv" != no ; then
> > > 
> > > I don't know what purpose this serves, but it's wrong as it
> > > removes the distinction between yes and auto.
> > 
> > Ports tweek again; we gotta keep track of dependencies.
> 
> I don't understand how this helps you keep track of dependencies.
> Maybe you can enlighten me..

I don't remember the gory details now, but the basic idea with ports is that
you can build a package any machine and install it on any other (kind of like an rpm)
so it must not make itself dependant on some random lib just because it's there.
This mmight also be outdate though...
 
> > > > --- loader/Makefile.orig	Thu Jan 29 13:01:26 2004
> > > > +++ loader/Makefile	Mon Jul 12 00:51:31 2004
> > > > @@ -32,9 +32,6 @@
> > > >  
> > > >  libloader.a:  $(LIB_OBJECTS) stubs.s
> > > >  	$(CC) -c ./stubs.s -o stubs.o
> > > > -ifeq ($(TARGET_OS),OpenBSD)
> > > > -	./loader_objfix.sh
> > > > -endif
> > > 
> > > Hmm, this reverses an old portability patch by Björn Sandell.  If
> > > it is no longer required in newer versions of OpenBSD then we
> > > should remove loader_objfix.sh as well.
> > 
> > Ports tweek again! :-) MPlayer developers wanted to be backwards
> > compatile, the ports system is not (by design).
> 
> Backwards compatible to what?  Older OpenBSD versions?  Which ones?

Yepp, 3.3 and backwards.

> If I read the thread referenced in the other mail correctly..
> 
> http://zebra.fh-weingarten.de/~maxi/html/mplayer-users/2004-01/msg00286.html
> 
> .. then it's causing problems.  If that's the case, then we should
> simply remove it.

It was causing problems; I submitted a patch:

http://zebra.fh-weingarten.de/~maxi/html/mplayer-dev-eng/2004-01/msg00047.html

-- 
Björn Sandell       DCE/DFS Sysadmin       IT department
Chalmers University of Technology    www.dce.chalmers.se




More information about the MPlayer-dev-eng mailing list