Bug 127524

Summary: multimedia/mplayer lacks dependencies on Xv and dga
Product: Ports & Packages Reporter: Christoph Mallon <christoph.mallon>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
mplayer.diff
none
mplayer.diff none

Description Christoph Mallon 2008-09-21 16:30:03 UTC
If the packages libXv and libXxf86dga are installed, mplayer silently builds with support for these, but does not register them as dependencies in the package database.  If they are not present, mplayer does not have support for them.  This is especially annoying if libXv is missing, because this results in no hardware accelerated scaling.

Fix: 

Add library dependencies on libXv and libXxf86dga to the Makefile of multimedia/mplayer and optionally add "make config"-switches.
How-To-Repeat: Build mplayer, when libXv and/or libXxf86dga are already/not installed.  Compare the "pkg_info -r mplayer-0.99.11_5" lists (which do not differ) and the "mplayer -vo help" lists (which differ by the presence/absence of xv and dga video output).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-09-21 16:30:10 UTC
Maintainer of multimedia/mplayer,

Please note that PR ports/127524 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127524

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-09-21 16:30:11 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-21 22:33:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-22 10:40:27 UTC
State Changed
From-To: feedback->open

Maintainer approved via private email.
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2008-09-22 10:41:57 UTC
State Changed
From-To: open->feedback

Oops, changed wrong PR.
Comment 6 Thomas E. Zander 2008-09-30 05:43:54 UTC
Sounds like a reasonable suggestions. I'll look into it.

Riggs
Comment 7 Thomas E. Zander 2008-10-05 05:41:02 UTC
Attached patch introduces dependencies on commonly available video
output drivers on FreeBSD.
They are integrated in the OPTIONS framework.

Can you please verify if that resolves the issue?

Riggs
Comment 8 Christoph Mallon 2008-10-05 15:28:26 UTC
Thomas E. Zander wrote:
> Attached patch introduces dependencies on commonly available video
> output drivers on FreeBSD.
> They are integrated in the OPTIONS framework.
> 
> Can you please verify if that resolves the issue?

This looks good. after applying the patch and rebuilding mplayer the 
dependency list is much longer and includes the libraries, which were 
missing before. Though, I did not try to uninstall libraries and check, 
if they are automatically installed, but I suspect the bsd.xorg.mk magic 
works. Thanks for tackling this issue.
A minor point: Can the message about switches, which are not available 
via OPTIONS, be removed?

	Christoph
Comment 9 Thomas E. Zander 2008-10-06 11:43:28 UTC
On Sun, 05. Oct 2008, at 16:28 +0200, Christoph Mallon wrote
according to [Re: ports/127524: multimedia/mplayer lacks dependencies on Xv and dga]:

> This looks good.

> Though, I did not try to uninstall libraries and check,  
> if they are automatically installed, but I suspect the bsd.xorg.mk magic  
> works.

Yeah, don't worry about that. bsd.xorg.mk handles it nicely as you
pointed out.

> A minor point: Can the message about switches, which are not available  
> via OPTIONS, be removed?

May I ask why this is an issue?
It simply is the case that we have additional switches which are used
very rarely and are therefore not included in OPTIONS. I would like to
make sure the admin person installing the port knows about their
existence.

Riggs

-- 
- "[...] I talked to the computer at great length and
-- explained my view of the Universe to it" said Marvin.
--- And what happened?" pressed Ford.
---- "It committed suicide." said Marvin.
Comment 10 Christoph Mallon 2008-10-06 11:55:31 UTC
Thomas E. Zander wrote:
>> A minor point: Can the message about switches, which are not available  
>> via OPTIONS, be removed?
> 
> May I ask why this is an issue?
> It simply is the case that we have additional switches which are used
> very rarely and are therefore not included in OPTIONS. I would like to
> make sure the admin person installing the port knows about their
> existence.

I see no reason to /not/ include all switches in OPTIONS.

	Christoph
Comment 11 Thomas E. Zander 2008-10-07 02:48:31 UTC
On Mon, 06. Oct 2008, at 12:55 +0200, Christoph Mallon wrote
according to [Re: ports/127524: multimedia/mplayer lacks dependencies on Xv and dga]:

> I see no reason to /not/ include all switches in OPTIONS.

I do.
First, look at the CPU features options. For the vast majority of
people this just lengthens the list in OPTIONS. It is only in very rare
situations or when someone wants to test/benchmark something that this
is needed.
Second: The OPTIONS framework gives you WITH_ and WITHOUT_.
It does not give you something like
WITH_DVD_DEVICE=/dev/acd2
We can't possibly have an OPTIONS list with all possible device
enumerations and language list.

This is why I chose to have some knobs outside the OPTIONS.

Riggs

-- 
- "[...] I talked to the computer at great length and
-- explained my view of the Universe to it" said Marvin.
--- And what happened?" pressed Ford.
---- "It committed suicide." said Marvin.
Comment 12 Dmitry Marakasov 2008-10-10 15:40:08 UTC
This fails to build WITHOUT_X11:
http://people.freebsd.org/~amdmi3/mplayer-nox11-0.99.11_8.log

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 13 Thomas E. Zander 2008-10-11 08:03:35 UTC
On Fri, 10. Oct 2008, at 18:40 +0400, Dmitry Marakasov wrote
according to [Re: ports/127524: multimedia/mplayer lacks dependencies on Xv and dga]:
> This fails to build WITHOUT_X11:
> http://people.freebsd.org/~amdmi3/mplayer-nox11-0.99.11_8.log

True.
Should be fixed in the attached revision of the patch.

Riggs
Comment 14 dfilter service freebsd_committer freebsd_triage 2008-10-11 14:46:05 UTC
amdmi3      2008-10-11 13:45:57 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/mplayer   Makefile 
  Log:
  - Add dependencies on Xorg libs and corresponding OPTIONS
  
  PR:             127524
  Submitted by:   Christoph Mallon <christoph dot mallon at gmx dot de>
  Patch by:       "Thomas E. Zander" <riggs at rrr dot de> (maintainer)
  
  Revision  Changes    Path
  1.178     +35 -5     ports/multimedia/mplayer/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 15 Dmitry Marakasov freebsd_committer freebsd_triage 2008-10-11 14:46:16 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!