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

Bug 622810

Summary: net-dialup/freeradius - add support for dev-libs/libressl
Product: Gentoo Linux Reporter: Reuben Farrelly <reuben-gentoo-bugzilla>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    

Description Reuben Farrelly 2017-06-27 10:48:36 UTC
There are two problems currently preventing the Gentoo FreeRADIUS ebuild building with LibreSSL:

1. The ebuild currently insists on openssl.  Specifically, use of the ssl USE flag has this:

ssl? ( dev-libs/openssl:0= )

This needs to be changed to this:

    ssl? (
        !libressl? ( dev-libs/openssl:0 )
        libressl? ( dev-libs/libressl )
    )



2. The FreeRADIUS build requires a patch, which can be found here:

https://raw.githubusercontent.com/openbsd/ports/master/net/freeradius3/patches/patch-src_main_tls_c

I have tested the patch in (2) and manually modified my ebuild to allow LibreSSL instead of OpenSSL and the package then builds succesfully.

This bug is to therefore track those two changes.
Comment 1 Reuben Farrelly 2017-06-27 10:53:40 UTC
Unfortunately I accidentally submitted this bug before properly proof reading it and fixing up the formatting.  The version of FreeRADIUS I tested this with is 3.0.14, which is the only version currently in the tree.
Comment 2 Reuben Farrelly 2017-06-29 14:03:43 UTC
As of today the patch I referenced below for LibreSSL support in FreeRADIUS was committed to the upstream Git repository.  This means that we should see FreeRADIUS build against LibreSSL in the next upstream release without any external patch (presumably this will be v3.0.15).

The fix for the .ebuild file dependency still needs to happen but this can wait for now and should probably be done as part of the next upstream release when LibreSSL will actually build against LibreSSL.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-22 00:28:07 UTC
The bug has been closed via the following commit(s):

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

commit be9ddca4036344a2ab4c85b7360130f0e3ebf565
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2018-04-22 00:27:43 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2018-04-22 00:27:57 +0000

    net-dialup/freeradius: add LibreSSL support
    
    Closes: https://bugs.gentoo.org/622810
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 net-dialup/freeradius/freeradius-3.0.15.ebuild | 7 +++++--
 net-dialup/freeradius/freeradius-3.0.16.ebuild | 7 +++++--
 net-dialup/freeradius/freeradius-3.0.17.ebuild | 7 +++++--
 3 files changed, 15 insertions(+), 6 deletions(-)