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'
Created attachment 255163 [details] emerge --info
Created attachment 255165 [details] emerge -pqv
Created attachment 255167 [details] Patch error log
Created attachment 255169 [details] emerge -pqv
The same problem appears.
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.
Sigh, GNU patch versions handle whitespace differently :/ Thanks for reporting, now fixed in tree.