Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 624412

Summary: =net-libs/libesmtp-1.0.6-r2 fails to build with >=openssl-1.1.0
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, quentin
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/10238
https://github.com/briancs60/libESMTP/pull/2
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592438    
Attachments: build log
libesmtp-1.0.6-openssl-1.1-api-compatibility.patch

Description Hanno Böck gentoo-dev 2017-07-10 10:06:35 UTC
Created attachment 482868 [details]
build log

libesmtp fails to build with openssl 1.1. This seems to be only an issue with the configure script:

checking for SSL_library_init in -lssl... no
configure: error: cannot find the ssl library

Linux from Scratch has a oneliner/sed-patch to fix this:
http://www.linuxfromscratch.org/blfs/view/svn/general/libesmtp.html

sed 's@SSL_library_init@SSL_new@g' -i configure.ac &&
autoreconf -fi

I think we can add something like that to the ebuild and should be fine.
Comment 1 Quentin Minster 2018-02-01 01:18:07 UTC
Created attachment 517330 [details, diff]
libesmtp-1.0.6-openssl-1.1-api-compatibility.patch

The build still fails (at least on my box) since the code uses locking APIs which have been nuked without compatibility macros in OpenSSL 1.1.0.

Attached is a patch to fix these.

Anyone know who's the upstream for libESMTP now? http://www.stafford.uklinux.net/libesmtp/ seems dead. :-/
Comment 2 Quentin Minster 2018-02-01 01:23:40 UTC
It seems the failure I experienced is due to USE flag 'threads'.
Comment 3 Craig Andrews gentoo-dev 2018-10-26 16:51:53 UTC
I cannot reproduce this issue. Note that I'm using node 9.11.2 (7.x is no longer in Gentoo).

USE="openssl" emerge =net-libs/nodejs-9.11.2

Succeeds. I'm using dev-libs/openssl-1.1.1

I'm confident that this issue was solved by https://bugs.gentoo.org/592438#c5
Comment 4 Larry the Git Cow gentoo-dev 2018-10-26 18:09:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa230af7c9832b53e08d34799acbc5877a912fc5

commit fa230af7c9832b53e08d34799acbc5877a912fc5
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2018-10-26 16:50:33 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2018-10-26 18:08:55 +0000

    net-libs/libesmtp: Fix OpenSSL 1.1, EAPI=7 bump
    
    Closes: https://bugs.gentoo.org/624412
    Signed-off-by: Craig Andrews <candrews@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 ...esmtp-1.0.6-openssl-1.1-api-compatibility.patch | 72 ++++++++++++++++++++++
 net-libs/libesmtp/libesmtp-1.0.6-r3.ebuild         | 47 ++++++++++++++
 2 files changed, 119 insertions(+)