Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397599 - virtual/ffmeg-0.9 & media-video/ffmpeg-0.9 file collision in {PKGDIR}/All directory
Summary: virtual/ffmeg-0.9 & media-video/ffmpeg-0.9 file collision in {PKGDIR}/All dir...
Status: RESOLVED DUPLICATE of bug 133908
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2012-01-04 06:42 UTC by Francois Chenier
Modified: 2012-01-04 08:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chenier 2012-01-04 06:42:33 UTC
A virtual package should not have the same name & version as it's associated package as one of the packages will be overwritten in {PKGDIR}/All directory. An example with virtual/ffmpeg-0.9 et media-video/ffmpeg-0.9 ...

belgix@darwin ~/Linux $ ls -la {PKGDIR}/virtual
lrwxrwxrwx  1 root    root      22 Dec 23 07:16 ffmpeg-0.9.tbz2 -> ../All/ffmpeg-0.9.tbz2

belgix@darwin ~/Linux $ ls -la {PKGDIR}/media-video
lrwxrwxrwx  1 root    root      22 Dec 31 08:04 ffmpeg-0.9.tbz2 -> ../All/ffmpeg-0.9.tbz2

Reproducible: Always

Steps to Reproduce:
1. emerge virtual/ffmpeg-0.9 (this create a small {PKGDIR}/All/ffmpeg-0.9.tbz2 file)
2. emerge media-video/ffmpeg-0.9 (file in 1 is overwritten by a large tbz2 file)
3. emerge virtual/ffmpeg-0.9 again (file in 2 is overwritten again)
4. ... and so on!

Expected Results:  
Just rename virtual/ffmeg-0.9 package to virtual/ffmeg-0 as any other packages in virtual group to fix the problem
Comment 1 Zac Medico gentoo-dev 2012-01-04 08:34:59 UTC
It should resolve the collision by moving the previous file into ${PKGDIR}/${CATEGORY}/, as described in this commit:;a=commit;h=2dcc5e159615cacc370645dd26fe81e6e36fb54d

*** This bug has been marked as a duplicate of bug 133908 ***