Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283798 - media-tv/mythtv missing DEPEND on app-arch/unzip
Summary: media-tv/mythtv missing DEPEND on app-arch/unzip
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
: 283072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-06 00:11 UTC by Mark Knecht
Modified: 2011-02-26 06:15 UTC (History)
3 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 Mark Knecht 2009-09-06 00:11:39 UTC
As per title, I have a system that didn't have unzip on it. I tried to emerge Myth and it complained.

Reproducible: Always

Steps to Reproduce:
1. emerge -C unzip
2. emerge mythtv
3.

Actual Results:  
failed to emerge


None required
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2009-11-08 01:31:52 UTC
This is really a bug with the package managers. If they claim they support unzip, they're the ones in fact depending on unzip.

I've had this discussion several times with the Portage guys.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2009-11-08 01:32:59 UTC
*** Bug 283072 has been marked as a duplicate of this bug. ***
Comment 3 Brandon Penglase 2009-11-15 01:57:41 UTC
(In reply to comment #1)
> This is really a bug with the package managers. If they claim they support
> unzip, they're the ones in fact depending on unzip.
> 
> I've had this discussion several times with the Portage guys.
> 

It does seem it's their end, however, shouldn't we depend on it until they fix it on their side?

Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2009-11-16 08:00:44 UTC
I've added it temporarily to the eclass until this is fixed correctly.
Comment 5 Ciaran McCreesh 2009-11-19 22:00:32 UTC
It's not realistic to have package managers depend upon every possible extracting tool they could use, since that would include several highly obscure tools used only by a very small number of packages. Forcing every user to have things like 7zip installed is silly.

There are proposals for switching to a dependency like special/unpack-zip in future EAPIs to avoid hard-coding the unpacker, but that's a separate issue.

Closing this off as fixed, anyway, since the package correctly sets the dep, as policy says it should.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2009-11-19 22:20:44 UTC
You're 100% correct that the packager shouldn't depend on every single different compression algo software. However, it should take action to add to the DEPEND the unpackager its going to use based on SRC_URI as I've been saying for a while.

Having the package depend on the unpackager is incorrect because the ebuild maintainer has NO IDEA if Paludis is going to use foo or bar to unpack zip's. Portage might use baz and then we're in a complete world of hurt.
Comment 7 Ciaran McCreesh 2009-11-19 22:24:05 UTC
It can't go off SRC_URI. That gives false positives.

And no, PMS specifies which program is used to do the unpacking. That's the point -- package managers *have* to use a particular program, so that ebuilds can get the dependency right.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2009-11-20 17:43:15 UTC
(In reply to comment #6)
> You're 100% correct that the packager shouldn't depend on every single
> different compression algo software. However, it should take action to add to
> the DEPEND the unpackager its going to use based on SRC_URI as I've been saying
> for a while.
> 

As ciaramn said you can't rely on SRC_URI as it's possible that the ebuild never unpack the declared zip file. The current policy is to a add a DEPEND when you are unpacking something that's not provided by the default system target.
Comment 9 Ulrich Müller gentoo-dev 2011-02-26 06:15:38 UTC
Looks like this has been fixed long time ago.