Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543280 - net-libs/gnutls-2*: add multilib support
Summary: net-libs/gnutls-2*: add multilib support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Crypto team [DISABLED]
URL: https://bugs.archlinux.org/task/42554
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-14 10:35 UTC by Quentin Minster
Modified: 2015-08-19 08:51 UTC (History)
4 users (show)

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


Attachments
gnutls-2.12.23-r7.ebuild (file_543280.txt,4.29 KB, text/plain)
2015-03-14 10:37 UTC, Quentin Minster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Minster 2015-03-14 10:35:55 UTC
net-analyzer/openvas locks net-libs/gnutls into version 2.* (bug #525640).
This prevents users of openvas to install the multilib-enabled net-libs/gnutls-3*.

Attached is an attempt at a multilib-enabled net-libs/gnutls-2* ebuild.

Reproducible: Always
Comment 1 Quentin Minster 2015-03-14 10:37:24 UTC
Created attachment 398872 [details]
gnutls-2.12.23-r7.ebuild
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2015-03-14 18:39:10 UTC
for one package in tree that has no actual reason why not to upgrade to gnutls-3, it does not worth the effort.

gnutls-2 is obsolete upstream, we won't continue to maintain it soon.

BTW: when attaching ebuilds, please attach diff, easier to review.

Thanks!
Comment 3 Rafał Mużyło 2015-03-14 18:58:38 UTC
...
There seems to be an ArchLinux bug claiming that openvas does work with gnutls 3.3.10


...

OK, given I have no real idea what openvas does, I can't be certain it works, but that handshake failure from bug 525640 is not in the log after going through openvas-check-setup.
Comment 4 Rafał Mużyło 2015-03-14 19:01:56 UTC
PS: BTW, it's data dir grows to nearly 1.5 GB in the process....why ??!!
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2015-03-14 21:02:49 UTC
(In reply to Rafał Mużyło from comment #3)
> ...
> There seems to be an ArchLinux bug claiming that openvas does work with
> gnutls 3.3.10
> 
> 
> ...
> 
> OK, given I have no real idea what openvas does, I can't be certain it
> works, but that handshake failure from bug 525640 is not in the log after
> going through openvas-check-setup.

From all my tests it doesn't work with version 3*
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2015-03-14 21:03:23 UTC
(In reply to Rafał Mużyło from comment #4)
> PS: BTW, it's data dir grows to nearly 1.5 GB in the process....why ??!!

check patterns and similar.
Comment 7 Rafał Mużyło 2015-03-14 23:50:25 UTC
(In reply to Justin Lecher from comment #5)
> (In reply to Rafał Mużyło from comment #3)
> > ...
> > There seems to be an ArchLinux bug claiming that openvas does work with
> > gnutls 3.3.10
> > 
> > 
> > ...
> > 
> > OK, given I have no real idea what openvas does, I can't be certain it
> > works, but that handshake failure from bug 525640 is not in the log after
> > going through openvas-check-setup.
> 
> From all my tests it doesn't work with version 3*

To clarify: I don't mean 7.0, I mean latest openvas set still on 7.0 branch (7.0.9 for libraries, etc.)
Comment 8 Rafał Mużyło 2015-03-14 23:51:55 UTC
...
That is to say, what exactly would count as a valid test ?
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-03-15 10:17:21 UTC
(In reply to Rafał Mużyło from comment #8)
> ...
> That is to say, what exactly would count as a valid test ?

Follow the README.gentoo and try to connect to the GSAD at port 9390

This is the error

lib  serv:WARNING:2015-03-15 10h16.18 utc:13872: Failed to shake hands with peer: An unexpected TLS packet was received.
md   main:CRITICAL:2015-03-15 10h16.18 utc:13872: serve_client: failed to attach client session to socket 9
lib  serv:WARNING:2015-03-15 10h16.18 utc:13872:    Failed to gnutls_bye: GnuTLS internal error.
lib  serv:WARNING:2015-03-15 10h16.18 utc:13872:    Failed to gnutls_bye: Error in the push function.
Comment 10 Rafał Mużyło 2015-03-15 16:13:04 UTC
(In reply to Justin Lecher from comment #9)
> (In reply to Rafał Mużyło from comment #8)
> > ...
> > That is to say, what exactly would count as a valid test ?
> 
> Follow the README.gentoo and try to connect to the GSAD at port 9390
> 
> This is the error
> 
> lib  serv:WARNING:2015-03-15 10h16.18 utc:13872: Failed to shake hands with
> peer: An unexpected TLS packet was received.
> md   main:CRITICAL:2015-03-15 10h16.18 utc:13872: serve_client: failed to
> attach client session to socket 9
> lib  serv:WARNING:2015-03-15 10h16.18 utc:13872:    Failed to gnutls_bye:
> GnuTLS internal error.
> lib  serv:WARNING:2015-03-15 10h16.18 utc:13872:    Failed to gnutls_bye:
> Error in the push function.

You could have mentioned that file was in the meta - I've installed just the 4 openvas packages + gsad.

Anyway, a funny thing: openvas-check-setup already covered most README.gentoo did, but that's a side note, the important part is that while openvassd and openvasmd are running, I'm getting no message at all (both in openvasmd.log and openvassd.log) if I start gsad ('ps -elly | grep gsad' shows it as 'stopped') - don't known if it's a good or a bad thing in this context.
Comment 11 Rafał Mużyło 2015-03-15 17:02:18 UTC
Never mind.

The correct test should have been "go to https://127.0.0.1:9390 afterwards".

Now I see the errors too...
OK, let's see if google helps...
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2015-08-19 08:51:08 UTC
gnutls-2.x is obsoleted, unmaintained upstream.