Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407969 - dev-php/PEAR-Mail_Mime-1.8.3: Failed Patch
Summary: dev-php/PEAR-Mail_Mime-1.8.3: Failed Patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 22:09 UTC by Federico Cuello
Modified: 2012-03-13 13:17 UTC (History)
2 users (show)

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


Attachments
1.5.2-php-pass-by-reference-fix.patch.out (1.5.2-php-pass-by-reference-fix.patch.out,3.15 KB, text/plain)
2012-03-12 22:09 UTC, Federico Cuello
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Cuello 2012-03-12 22:09:03 UTC
* ERROR: dev-php/PEAR-Mail_Mime-1.8.3 failed (unpack phase):
 *   Failed Patch: 1.5.2-php-pass-by-reference-fix.patch!
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_unpack
 *   environment, line 1874:  Called epatch '/usr/portage/dev-php/PEAR-Mail_Mime/files/1.5.2-php-pass-by-reference-fix.patch'
 *   environment, line  852:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *
 * If you need support, post the output of 'emerge --info =dev-php/PEAR-Mail_Mime-1.8.3',
 * the complete build log and the output of 'emerge -pqv =dev-php/PEAR-Mail_Mime-1.8.3'.
 * The complete build log is located at '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.8.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.8.3/temp/environment'.
 * S: '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.8.3/work/Mail_Mime-1.8.3'
 *
 * The following package has failed to build or install:
 *
 *  (dev-php/PEAR-Mail_Mime-1.8.3::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-php/PEAR-Mail_Mime-1.8.3/temp/build.log'
Comment 1 Federico Cuello 2012-03-12 22:09:46 UTC
Created attachment 305043 [details]
1.5.2-php-pass-by-reference-fix.patch.out
Comment 2 Kevin Parent 2012-03-12 23:22:19 UTC
patch also fails for me on ~amd64
Comment 3 Kevin Parent 2012-03-12 23:44:03 UTC
The file to be patched resides in ${S}/Mail, not ${S}.

Prefixing the file mime.php in the first two lines of the patch file with "Mail/" solves the problem.

changed from:

--- mime.php.orig  2007-08-16 12:16:47.000000000 +0200
+++ mime.php       2007-08-16 12:25:07.000000000 +0200

to:

--- Mail/mime.php.orig  2007-08-16 12:16:47.000000000 +0200
+++ Mail/mime.php       2007-08-16 12:25:07.000000000 +0200

How did this get by QA?
Comment 4 Joshua Kinard gentoo-dev 2012-03-13 13:17:53 UTC
Already ran into this a few hours ago and just committed a fix to the tree.  The 1.5.2 patch worked fine on 1.8.2, so probably a minor oversight.