Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506046 - dev-libs/openssl: add USE=sctp support
Summary: dev-libs/openssl: add USE=sctp support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://rt.openssl.org/Ticket/Display...
Whiteboard:
Keywords: Inclusion, PATCH
Depends on:
Blocks:
 
Reported: 2014-03-28 10:46 UTC by Joshua Kinard
Modified: 2022-12-14 13:52 UTC (History)
2 users (show)

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


Attachments
OpenSSL SCTP/DTLS support. (file_506046.txt,1.89 KB, patch)
2014-03-28 10:47 UTC, Joshua Kinard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2014-03-28 10:46:40 UTC
It looks like OpenSSL 1.0.1* supports DTLS over SCTP Due to upstream Bug #2535.  I've got a patch that appears to work on both a Linux/AMD64 machine and Gentoo/FreeBSD VM.  I'll need someone to double-check the use of the kernel_linux/kernel_FreeBSD USE flags in the LIB_DEPEND variable to make sure that's proper, as I can't find any specific documentation on the use of those special USE flags, nor the case of a feature common to two different OSes, but in different libraries.
Comment 1 Joshua Kinard gentoo-dev 2014-03-28 10:47:19 UTC
Created attachment 373722 [details, diff]
OpenSSL SCTP/DTLS support.
Comment 2 Joshua Kinard gentoo-dev 2014-03-28 10:57:24 UTC
I wonder if a virtual for sctp would be a better approach versus using the kernel_* flags.  virtual/sctp could be satisfied by net-misc/lksctp-tools on Linux and sys-freebsd/freebsd-lib on FreeBSD.
Comment 3 SpanKY gentoo-dev 2014-03-28 17:00:37 UTC
ebuild patch seems reasonable.  i know nothing about sctp though.

if that's the only change you need (to the ebuild), then feel free to commit to latest 1.0.1 and 1.0.2 versions.  if you need a patch for the openssl sources, then it's a different story ...
Comment 4 Joshua Kinard gentoo-dev 2014-03-28 20:25:11 UTC
Worth opening a discussion on -dev about a virtual/sctp and possibly an 'sctp' global USE flag first?  It's one of the four IANA "General Purpose Protocols" (tcp, udp, sctp, and dccp).  It's big in telephony networks (SCTP originally was developed to carry the SS7 stack over IP networks), but it's being looked at for a lot of other things.  Might be a good idea to futureproof now rather than later.
Comment 5 SpanKY gentoo-dev 2014-03-28 20:57:05 UTC
if we're the only consumer, for now let's just keep it in the ebuild.  if it becomes more of a thing (like when USE=sctp transitions from a local to global flag), we can re-evaluate the virtual then.
Comment 6 Joshua Kinard gentoo-dev 2014-04-17 01:19:21 UTC
Setting to IN_PROGRESS, because while I have an e-mail ready, I'm waiting for all the furor over Heartbleed to die down before changing anything.
Comment 7 Joshua Kinard gentoo-dev 2014-04-17 01:19:41 UTC
(In reply to Joshua Kinard from comment #6)
> Setting to IN_PROGRESS, because while I have an e-mail ready, I'm waiting
> for all the furor over Heartbleed to die down before changing anything.

s/e-mail/ebuild/g
Comment 8 Maciej S. Szmigiero 2015-03-04 11:14:24 UTC
The dependency on net-misc/lksctp-tools should be changed to depend on at least net-misc/lksctp-tools-1.0.12, since emerging the package having
net-misc/lksctp-tools-1.0.11-r1 installed results in error due to SCTP_SENDER_DRY_EVENT being undeclared.

It looks to me it was added in lksctp-tools-1.0.12 release.
Comment 9 SpanKY gentoo-dev 2015-03-04 16:41:29 UTC
Commit message: Require recent lksctp-tools
http://sources.gentoo.org/dev-libs/openssl/openssl-1.0.2-r2.ebuild?r1=1.1&r2=1.2
Comment 10 Joshua Kinard gentoo-dev 2015-03-04 17:09:05 UTC
I still have that virtual/sctp ebuild lying around for the Gentoo/FreeBSD case.  Want me to still put that into the tree and lock the lksctp version there?
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-14 13:52:43 UTC
We seem to have had sctp support since at the latest 2015.