Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24739 - zip needs unzip if USE=crypt
Summary: zip needs unzip if USE=crypt
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 08:20 UTC by Andy Dustman
Modified: 2003-07-18 08:35 UTC (History)
0 users

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


Attachments
app-arch/zip/zip-2.3-r3.ebuild (zip-2.3-r3.ebuild,1004 bytes, text/plain)
2003-07-18 08:22 UTC, Andy Dustman
Details
app-arch/zip/zip-2.3-r3.ebuild (zip-2.3-r3.ebuild,981 bytes, text/plain)
2003-07-18 08:29 UTC, Andy Dustman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Dustman 2003-07-18 08:20:23 UTC
zip-2.3-r2 won't emerge if USE=crypt is set unless unzip is installed, i.e. it
is a missing dependency. ebuild to be attached.
Comment 1 Andy Dustman 2003-07-18 08:22:11 UTC
Created attachment 14663 [details]
app-arch/zip/zip-2.3-r3.ebuild

Require app-arch/unzip if using crypt so that patch can be unpacked.

--- zip-2.3-r2.ebuild	2003-07-16 02:15:42.000000000 -0400
+++ zip-2.3-r3.ebuild	2003-07-18 11:14:55.000000000 -0400
@@ -13,6 +13,10 @@
 KEYWORDS="~x86 ~ppc ~sparc ~alpha"
 LICENSE="Info-ZIP"
  
+if use crypt >/dev/null; then
+	DEPEND="app-arch/unzip"
+fi
+
 src_unpack() {
	unpack ${A}
	if [ "`use crypt`" ]; then
Comment 2 Andy Dustman 2003-07-18 08:29:54 UTC
Created attachment 14664 [details]
app-arch/zip/zip-2.3-r3.ebuild

The preceding ebuild is the result of an insufficient amount of coffee. It does
work, but is not very Gentoo-ish.

--- zip-2.3-r2.ebuild	2003-07-16 02:15:42.000000000 -0400
+++ zip-2.3-r3.ebuild	2003-07-18 11:27:24.000000000 -0400
@@ -13,6 +13,8 @@
 KEYWORDS="~x86 ~ppc ~sparc ~alpha"
 LICENSE="Info-ZIP"
  
+DEPEND="crypt? ( app-arch/unzip )"
+
 src_unpack() {
	unpack ${A}
	if [ "`use crypt`" ]; then
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-07-18 08:35:20 UTC
your fix is too dirty

fixed in cvs
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-07-18 08:35:47 UTC
ok 2nd is better :)