From owner-freebsd-python@FreeBSD.ORG Fri Aug 8 14:44:53 2014 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DFA8EB5 for ; Fri, 8 Aug 2014 14:44:53 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C1FE2B49 for ; Fri, 8 Aug 2014 14:44:53 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s78EirxE060854 for ; Fri, 8 Aug 2014 14:44:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-python@FreeBSD.org Subject: [Bug 192511] [patch] fix lang/python27 build with libressl Date: Fri, 08 Aug 2014 14:44:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: meyer.arne83@gmail.com X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-python@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2014 14:44:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192511 --- Comment #2 from meyer.arne83@gmail.com --- (In reply to Marcus von Appen from comment #1) > Root problem: > As soon as libressl is installed via ports, lang/pythonXX and other ports > will try to pick it up, most likely due to the include and linker flags > order. This is problematic in two regards: > > * lang/python27 does not have an explicit BUILD/RUN_DEPENDS on libressl, > since libressl is not officially supported by upstream (yet) > * libressl is API and ABI incompatible with OpenSSL, so depending on the > system status (libressl installed or not), python will take the one or other. > > I do not like the patch, since it would disable the function for both, > OpenSSL and libressl and thus effectively change the behaviour of > lang/pythonXX. Does RAND_egd even work on FreeBSD? I also tried to preserve the python ssl api by having PySSL_RAND_egd just return an error. So I don't think it's behaviour has changed. Might have missed something, tho. > We need to get two things right: > > * handle OpenSSL support correctly and explicitly use OpenSSL, so that an > installed SSL replacement does not cause a wrong and unintended behaviour > * offer users to link against libressl explicitly (via an OPTION), which can > cause different behaviour. How about this: * Add smt. like WITH_OPENSSL_LIBRE and some logic to bsd.openssl.mk * Have the libressl port fail to build without that flag set. * Add a static library or c file with dummy functions(RAND_egd, ...) to libressl. -- You are receiving this mail because: You are the assignee for the bug.