Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29322 - ebuild of mailx crashed on a patch
Summary: ebuild of mailx crashed on a patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 29884 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-22 03:13 UTC by Denis Sacchet
Modified: 2003-09-30 08:31 UTC (History)
5 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 Denis Sacchet 2003-09-22 03:13:44 UTC
When I try to emerge mailx, the ebuild failed when it tries to apply the patch
multifix.diff.gz, but it seems the patch is correctly applied (see output below)

Reproducible: Always
Steps to Reproduce:
1. emerge mailx
Actual Results:  
hostname root # emerge mailx
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/mailx-8.1.2.20021129-r2 to /
>>> md5 src_uri ;-) mailx_8.1.1.orig.tar.gz
>>> md5 src_uri ;-) multifix.diff.gz
>>> md5 src_uri ;-) 20021129-cvs.diff.bz2
>>> Unpacking source...
>>> Unpacking mailx_8.1.1.orig.tar.gz to
/var/tmp/portage/mailx-8.1.2.20021129-r2/work
>>> Unpacking multifix.diff.gz to /var/tmp/portage/mailx-8.1.2.20021129-r2/work
>>> Unpacking 20021129-cvs.diff.bz2 to /var/tmp/portage/mailx-8.1.2.20021129-r2/work
 * Applying 20021129-cvs.diff.bz2...                                           
            [ ok ]
 * Applying multifix.diff.gz...                                                
            [ ok ]

!!! ERROR: net-mail/mailx-8.1.2.20021129-r2 failed.
!!! Function src_unpack, Line 31, Exitcode 1
!!! patch failed

hostname root #
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-09-24 06:05:55 UTC
The offending line in the ebuild is: 
 
   use ia64 && epatch ${FILESDIR}/mailx-64bit.diff || die "patch failed" 
 
It's better to use something like: 
 
   if [ `use ia64` ] ; then 
	epatch ${FILESDIR}/mailx-64bit.diff || die "patch failed" 
   fi 
Comment 2 Victor Tseng 2003-09-27 03:53:57 UTC
this might work too:

use ia64 && (epatch ${FILESDIR}/mailx-64bit.diff || die "patch failed")
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-09-27 23:57:15 UTC
use ia64 && (epatch ${FILESDIR}/mailx-64bit.diff || die "patch failed")
will not stop the emerge process if the epatch command fails:


 * Applying mailx-64bit.diff...

 * Failed Patch: mailx-64bit.diff!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/mailx-8.1.2.20021129-r2/temp/mailx-64bit.diff-3436.out


!!! ERROR: net-mail/mailx-8.1.2.20021129-r2 failed.
!!! Function epatch, Line 354, Exitcode 0
!!! Failed Patch: mailx-64bit.diff!

>>> Source unpacked.
gcc -D_BSD_SOURCE  -march=pentium4  -pipe -fomit-frame-pointer -c version.c
....
Comment 4 Denis Sacchet 2003-09-28 02:11:33 UTC
I'm new to bug submission, the proposition of Brandy Westcott resolve the
problem, what i'm supposed to do ? Propose a patch, someone else will close
the bug ? A patch will be submitted ?

I want to thank you for your help

Cordially
Comment 5 Narada Sage 2003-09-29 04:23:12 UTC
Additional Comment #1 also solved this problem for me.  -r1 works fine too.
 Please add this modification into cvs.
Comment 6 Narada Sage 2003-09-29 04:23:53 UTC
Bug 29884 is a duplicate of this one due to my carelessness. Sorry.
Comment 7 Brandy Westcott (RETIRED) gentoo-dev 2003-09-29 07:33:11 UTC
*** Bug 29884 has been marked as a duplicate of this bug. ***
Comment 8 Jon Portnoy (RETIRED) gentoo-dev 2003-09-30 08:31:37 UTC
Fixed.