Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 518680

Summary: media-video/get_flash_videos-1.24-r1 should provide a USE flag for pulling dev-perl/XML-Simple
Product: Gentoo Linux Reporter: Attila Stehr <as.gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: alex_y_xu
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info get_flash_videos

Description Attila Stehr 2014-07-31 15:39:35 UTC
Created attachment 381946 [details]
emerge --info get_flash_videos

I tried to d/l a video from vimeo with get_flash_videos. It complains that XML::Simple is missing.

***
$> get_flash_videos http://vimeo.com/26818646          
Downloading http://vimeo.com/26818646
Using method 'vimeo' for http://vimeo.com/26818646
Must have XML::Simple to download 1 videos
***

The ebuild file states that the XML lib is an "optional dependency" - see below.
What does "optional dependency" mean? Did I forget to set a certain USE flag somewhere?

I tried
#> revdep-rebuild -vip 
#> emerge -p get_flash_videos
but none of the commands take any action here.

After manually emerging I get a different error message but -IMO - thats no matter here.

***
src_prepare() {
        DISABLE_AUTOFORMATTING="yes"
        DOC_CONTENTS="Downloading videos from RTMP server requires the following packages:
- media-video/rtmpdump
- dev-perl/Tie-IxHash
Other optional dependencies:
- dev-perl/XML-Simple
- dev-perl/Crypt-Rijndael
- dev-perl/Data-AMF
- virtual/perl-IO-Compress"

        # 405761
        epatch "${FILESDIR}"/${PN}-youtubefix.patch
        perl-module_src_prepare
}
***
Comment 1 Alex Xu (Hello71) 2014-07-31 23:17:25 UTC
"optional dependency" means "runtime dependency" means "you need to install it yourself".

portage does not yet have runtime use deps to handle this case, and adding use flags means unnecessary rebuilding.