Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129410 - mail-notification-2.0 ebuild doesn't work because of an unset variable
Summary: mail-notification-2.0 ebuild doesn't work because of an unset variable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tom Martin (RETIRED)
URL:
Whiteboard:
Keywords:
: 129509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-09 20:20 UTC by john smith
Modified: 2006-04-10 12:08 UTC (History)
2 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 john smith 2006-04-09 20:20:43 UTC
looking at the ebuild and the variable EVO_VERSION only gets set if evolution is USEd. its then references in the unpack function and crashes when the file can't be found...

>>> Unpacking mail-notification-2.0.tar.gz to /var/tmp/portage/mail-notification-2.0/work

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /usr/portage/mail-client/mail-notification/files/mail-notification-2.0-evolution-.diff
 *   ( mail-notification-2.0-evolution-.diff )
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2006-04-10 07:25:44 UTC
Index: mail-notification-2.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/mail-client/mail-notification/mail-notification-2.0.ebuild,v
retrieving revision 1.6
diff -u -B -r1.6 mail-notification-2.0.ebuild
--- mail-notification-2.0.ebuild        8 Apr 2006 10:51:45 -0000       1.6
+++ mail-notification-2.0.ebuild        10 Apr 2006 14:25:28 -0000
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/mail-client/mail-notification/mail-notification-2.0.ebuild,v 1.6 2006/04/08 10:51:45 slarti Exp $
 
-inherit eutils gnome2 multilib flag-o-matic
+inherit eutils gnome2 multilib flag-o-matic versionator
 
 DESCRIPTION="A GNOME trayicon which checks for mail. Supports mbox, MH,
 Maildir, IMAP, Sylpheed, POP3, Gmail and Evolution.  Authenticates via
@@ -35,7 +35,10 @@
 
 pkg_setup() {
        if use evolution ; then
-               EVO_VERSION="$(best_version mail-client/evolution)"
+               EVO_INSTALLED="$(best_version mail-client/evolution)"
+
+               EVO_VERSION=${EVO_INSTALLED##*-}
+               EVO_VERSION=$(get_version_component_range 1-2 ${EVO_VERSION})
        fi
 
        G2CONF="${G2CONF} $(use_enable ssl)"
@@ -54,7 +57,11 @@
        unpack ${A}
        cd ${S}
 
-       epatch "${FILESDIR}/${P}-evolution-${EVO_VERSION}.diff"
+       if use evolution
+       then
+               epatch "${FILESDIR}/${P}-evolution-${EVO_VERSION}.diff"
+       fi
+
        epatch "${FILESDIR}/${P}-buildfix.diff"
        epatch "${FILESDIR}/${P}-gmail-properties-fix.diff"
Comment 2 Tom Martin (RETIRED) gentoo-dev 2006-04-10 10:39:24 UTC
In CVS, thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-10 12:08:58 UTC
*** Bug 129509 has been marked as a duplicate of this bug. ***