Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346497 - mail-mta/ssmtp-2.62-r8 build failed
Summary: mail-mta/ssmtp-2.62-r8 build failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 05:01 UTC by kirin yuri
Modified: 2010-11-23 08:09 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,4.09 KB, text/plain)
2010-11-23 05:04 UTC, kirin yuri
Details
emerge -pqv (emerge.info,4.09 KB, text/plain)
2010-11-23 05:04 UTC, kirin yuri
Details
Patch error log (ssmtp-2.62-darwin-crypto.patch.out,2.99 KB, text/plain)
2010-11-23 05:05 UTC, kirin yuri
Details
emerge -pqv (emerge.pqv,84 bytes, text/plain)
2010-11-23 05:06 UTC, kirin yuri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kirin yuri 2010-11-23 05:01:36 UTC
I am trying to build ssmtp:

>>> Emerging (1 of 1) mail-mta/ssmtp-2.62-r8
 * ssmtp_2.62.orig.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                                          [ ok ]
 * CPV:  mail-mta/ssmtp-2.62-r8
 * REPO: gentoo
 * USE:  elibc_glibc ipv6 kernel_linux ssl userland_GNU x86
>>> Unpacking source...
>>> Unpacking ssmtp_2.62.orig.tar.gz to /var/tmp/portage/mail-mta/ssmtp-2.62-r8/work
>>> Source unpacked in /var/tmp/portage/mail-mta/ssmtp-2.62-r8/work
>>> Preparing source in /var/tmp/portage/mail-mta/ssmtp-2.62-r8/work/ssmtp ...                                         
 * Applying ssmtp-2.62-from_format_fix.patch ...                                                                 [ ok ]
 * Applying CVE-2008-3962-r2.patch ...                                                                           [ ok ]
 * Applying ssmtp-2.62-authpass.patch ...                                                                        [ ok ]
 * Applying ssmtp-2.61-darwin7.patch ...                                                                         [ ok ]
 * Applying ssmtp-2.62-strndup.patch ...                                                                         [ ok ]
 * Applying ssmtp-2.62-darwin-crypto.patch ...                                                                         
                                                                                                                       
 * Failed Patch: ssmtp-2.62-darwin-crypto.patch !                                                                      
 *  ( /usr/portage/mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch )                                               
 *                                                                                                                     
 * Include in your bugreport the contents of:                                                                          
 *                                                                                                                     
 *   /var/tmp/portage/mail-mta/ssmtp-2.62-r8/temp/ssmtp-2.62-darwin-crypto.patch.out                                   
                                                                                                                       
 * ERROR: mail-mta/ssmtp-2.62-r8 failed:                                                                               
 *   Failed Patch: ssmtp-2.62-darwin-crypto.patch!                                                                     
 *                                                                                                                     
 * Call stack:                                                                                                         
 *     ebuild.sh, line   54:  Called src_prepare                                                                       
 *   environment, line 2887:  Called epatch '/usr/portage/mail-mta/ssmtp/files/ssmtp-2.62-darwin-crypto.patch'         
 *   environment, line 1701:  Called die                                                                               
 * The specific snippet of code:                                                                                       
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =mail-mta/ssmtp-2.62-r8',
 * the complete build log and the output of 'emerge -pqv =mail-mta/ssmtp-2.62-r8'.
 * The complete build log is located at '/var/tmp/portage/mail-mta/ssmtp-2.62-r8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/ssmtp-2.62-r8/temp/environment'.
 * S: '/var/tmp/portage/mail-mta/ssmtp-2.62-r8/work/ssmtp'
Comment 1 kirin yuri 2010-11-23 05:04:25 UTC
Created attachment 255163 [details]
emerge --info
Comment 2 kirin yuri 2010-11-23 05:04:39 UTC
Created attachment 255165 [details]
emerge -pqv
Comment 3 kirin yuri 2010-11-23 05:05:08 UTC
Created attachment 255167 [details]
Patch error log
Comment 4 kirin yuri 2010-11-23 05:06:25 UTC
Created attachment 255169 [details]
emerge -pqv
Comment 5 Sergey Vishnikin 2010-11-23 06:41:10 UTC
The same problem appears.
Comment 6 Jyrki Launonen 2010-11-23 07:49:56 UTC
The ssmtp-2.62-darwin-crypto.patch seems to contain invalid whitespace at relevant patch-lines: It is formatted as:
-<SPACE><TAB>LIBS="$LIBS -lssl"
+<SPACE><TAB>LIBS="$LIBS -lssl -lcrypto"
whereas it should be
-<TAB>LIBS="$LIBS -lssl"
+<TAB>LIBS="$LIBS -lssl -lcrypto"

With this fixed, patch's correctly, and builds.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-11-23 08:09:53 UTC
Sigh, GNU patch versions handle whitespace differently :/

Thanks for reporting, now fixed in tree.