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

Bug 24739

Summary: zip needs unzip if USE=crypt
Product: Gentoo Linux Reporter: Andy Dustman <farcepest>
Component: New packagesAssignee: Martin Holzer (RETIRED) <mholzer>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: 1.4_rc4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: app-arch/zip/zip-2.3-r3.ebuild
app-arch/zip/zip-2.3-r3.ebuild

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 :)