Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --search - returning packages with identical names
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Sep 20, 2014 11:07 pm    Post subject: emerge --search - returning packages with identical names Reply with quote

emerge --search ffmpeg

Code:
...

media-video/ffmpeg
Latest version available: 1.2.6-r1
Latest version installed: [ Not Installed ]
Size of files: 5,830kB
Homepage: http://ffmpeg.org/
Description: Complete solution to record, convert and stream audio...
License: GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )

...

virtual/ffmpeg
Latest version available: 9-r1
Latest version installed: [ Not Installed ]
Size of files: 0kB
Homepage:
Description: Veritual package for FFmpeg implementation
License:


returns about 10 packages, however I noticed 2 appear to have the same name - 1 seems official and 1 not(as above)

If I was to run

emerge ffmpeg

which package would I get? Would I get a choice? Perhaps even a virus from the dodgy looking package(maybe not in this case as its 0kb, but a future identical named package)?

Thanks in advance.
_________________
k.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Sep 21, 2014 12:59 am    Post subject: Reply with quote

One is the ffmpeg program, and the other is the ffmpeg virtual.

So assuming you do without having any of them install an emerge ffmpeg, portage will pickup the virtual/ffmpeg package and install it, and with the virtual comes the program that is per default pickup for the virtual, for ffmpeg virtual i think the default choice would be libav.

You can drive more your portage to pick the right choice you want by giving it the category of the package.
emerge media-video/ffmpeg
So portage will this time emerge the ffmpeg program and will then also provide the ffmpeg/virtual attach to it.

It is a bit blur because the virtual share the name of ffmpeg program, but virtual is to provide a way to use multi-packages that are doing the same.
Like if you have a "gold spoon" and "silver spoon", you can use one or the other, you will endup with a spoon, so to allow this, you create a virtual "spoon" and "silver spoon" and "gold spoon" are mark as "spoon" provider.
Whatever the user wish to use (gold or silver spoon), as long as one spoon is there, no complain.
Back to top
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sun Sep 21, 2014 10:43 am    Post subject: Reply with quote

Ok thanks, Providing category seems best.
_________________
k.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Sun Sep 21, 2014 11:13 am    Post subject: Reply with quote

Zelt,

virtuals are used where there is an interchangable choice of packages providing the same functionality.
They provide a default choice.

Packages that require one of the interchangable choices depend on the virtual. If you have something installed that provides the virtual, thats OK, if not you get the default and the virtual.
The virtuals don't actually install any code themselves.

If you don't like the default choice you can either mask it, or explicitly install another package to satisfy the virtual.
The mask is preferred, as it avoids world file pollution.

You may not have more that one package that satisfies the same virtual installed at the same time - they all do the same thing and may even install the same files.

In the case of virtual/ffmpeg/ffmpeg-0.10.3 we have
Code:
RDEPEND="
        || (
                >=media-video/ffmpeg-0.10.3:0[X?,encode?,gsm?,jpeg2k?,mp3?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
                >=media-video/libav-0.8.4[X?,encode?,gsm?,jpeg2k?,mp3?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
        )
"
so >=media-video/ffmpeg-0.10.3:0 which is listed first is the default, but if you already have >=media-video/libav-0.8.4, thats OK too.
Its worth mentioning that libav is a fork of ffmpeg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum