Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447252 - media-video/vlc: please make the meaning of USE=upnp clearer
Summary: media-video/vlc: please make the meaning of USE=upnp clearer
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Tom Wijsman (TomWij) (RETIRED)
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2012-12-14 16:25 UTC by Michał Górny
Modified: 2014-04-25 11:43 UTC (History)
2 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-14 16:25:10 UTC
The global USE=upnp is meant for UPnP port forwarding. There's also USE=upnp-av for some weird multimedia magic.

What purpose does USE=upnp in vlc serve? The metadata.xml description is unclear.

Please also fix/unify indentation in that file.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-02-22 13:49:16 UTC
Let's see ...

http://git.videolan.org/?p=vlc.git;a=blob;f=configure.ac;hb=HEAD

> 3939 dnl
> 3940 dnl UPnP Plugin (Intel SDK)
> 3941 dnl
> 3942 PKG_ENABLE_MODULES_VLC([UPNP], [upnp], [libupnp], [Intel UPNP SDK],[auto])

..., we've got that already; but the actual file reveals more:

http://git.videolan.org/?p=vlc.git;a=blob;f=modules/services_discovery/upnp_intel.cpp;h=b6fcaabee7397d5c79a0dbaaee4ccc933b0a772b;hb=a968c2427b3c25e47d617e3769c654acc8563f2c

>  2  * Upnp_intel.cpp :  UPnP discovery module (Intel SDK)
> 11  * UPnP Plugin using the Intel SDK (libupnp) instead of CyberLink

And thus:

- <flag name="upnp">Enables support for Intel UPnP stack.</flag>
+ <flag name="upnp">Enables support for the Intel SDK stack based UPnP discovery module instead of CyberLink.</flag>

+  22 Feb 2014; Tom Wijsman <TomWij@gentoo.org> metadata.xml:
+  Clarify USE flag upnp; fixes bug #447252, reported by mgorny.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-22 14:04:23 UTC
Sorry but this is nowhere more helpful than the original description. Users need to know what they gain by enabling the flag, not how it's implemented. What feature it enables.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-02-22 14:18:31 UTC
That module does UPnP discovery as stated in the description, which is a known concept, thus they know that they will gain that by enabling this; it is supposed to be a description of an USE flag, not a manual.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-22 14:35:11 UTC
(In reply to Tom Wijsman (TomWij) from comment #3)
> That module does UPnP discovery as stated in the description, which is a
> known concept, thus they know that they will gain that by enabling this; it
> is supposed to be a description of an USE flag, not a manual.

Discovery of what? Routers? A/V sources? Coffee makers?

And if it's about A/V, wouldn't USE=upnp-av fit better?
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-02-22 14:48:20 UTC
(In reply to Michał Górny from comment #4)
> (In reply to Tom Wijsman (TomWij) from comment #3)
> > That module does UPnP discovery as stated in the description, which is a
> > known concept, thus they know that they will gain that by enabling this; it
> > is supposed to be a description of an USE flag, not a manual.
> 
> Discovery of what? Routers? A/V sources? Coffee makers?

All of them!

UPnP discovery = SSDP (Simple Service Discovery Protocol), it discovers services.

> And if it's about A/V, wouldn't USE=upnp-av fit better?

Maybe, maybe not; that depends on the services. Given that the module says it does discovery, we know that it does just that; and thus the description fits.