Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675038 - =net-libs/gnutls-3.6.5 depends on >=dev-libs/nettle-3.4.1
Summary: =net-libs/gnutls-3.6.5 depends on >=dev-libs/nettle-3.4.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-09 22:30 UTC by Sven E.
Modified: 2019-01-10 19:29 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2019-01-09 22:30:28 UTC
net-libs/gnutls-3.6.5 fails to build since the configure phase fails.

Reproducible: Always

Steps to Reproduce:
1. emerge net-libs/gnutls-3.6.5
Actual Results:  
configure run fails with:
checking for NETTLE... no
configure: error:
  ***
  *** Libnettle 3.4 was not found.


Expected Results:  
a clean build

Even though configure fails, nettle is present:
qlist -vI nettle
dev-libs/nettle-3.4

Seems to be some sort of detection error.
Comment 1 Sven E. 2019-01-09 22:32:47 UTC
From config.log:
configure:10044: checking for NETTLE
configure:10051: $PKG_CONFIG --exists --print-errors "nettle >= 3.4.1"
Requested 'nettle >= 3.4.1' but version of Nettle is 3.4
You may find new versions of Nettle at http://www.lysator.liu.se/~nisse/nettle
configure:10054: $? = 1
configure:10068: $PKG_CONFIG --exists --print-errors "nettle >= 3.4.1"
Requested 'nettle >= 3.4.1' but version of Nettle is 3.4
You may find new versions of Nettle at http://www.lysator.liu.se/~nisse/nettle
configure:10071: $? = 1
configure:10085: result: no
Requested 'nettle >= 3.4.1' but version of Nettle is 3.4
You may find new versions of Nettle at http://www.lysator.liu.se/~nisse/nettle

So, the configure script should actually print 3.4.1, then it would indeed make sense, and the dep should be updated accordingly in the ebuild.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2019-01-10 06:40:47 UTC
I do not know what happens at your side, the ebuild depends on nettle-3.4.1[1]

Can you please make sure you have latest portage?

[1] https://github.com/gentoo/gentoo/blob/master/net-libs/gnutls/gnutls-3.6.5.ebuild#L24
Comment 3 Sven E. 2019-01-10 19:15:23 UTC
(In reply to Alon Bar-Lev from comment #2)
> I do not know what happens at your side, the ebuild depends on
> nettle-3.4.1[1]
> 
> Can you please make sure you have latest portage?
> 
> [1]
> https://github.com/gentoo/gentoo/blob/master/net-libs/gnutls/gnutls-3.6.5.
> ebuild#L24

Thanks for your feedback.
Indeed nettle-3.4.1 seems to be in RDEPEND.

Unfortunately gnutls was in @preserved-rebuild, so I decided to emerge net-libs/gnutls which in turn tried to emerge 3.6.5 (the version in preserved was gone from portage)

As this failed I decided to manually merge v3.5.19-r1 (oneshotted).

Of course gnutls is now gone from @preserved-rebuild, reproduction is thus impossible. and a wrold update isn'T even trying to upgrade to 3.6.5.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2019-01-10 19:18:11 UTC
How did you reach this state? have you added any unstable keywords to gnutls? How did you get any of the non stable versions?
Comment 5 Sven E. 2019-01-10 19:25:01 UTC
(In reply to Alon Bar-Lev from comment #4)
> How did you reach this state? have you added any unstable keywords to
> gnutls? How did you get any of the non stable versions?

I got ~arch in ACCEPT_KEYWORDS ...

The whole mess actually started with openssl and different packages pulling in different versions (of openssl) in the same slot ...

I started upgrading openssl and rebuilding packages against it, maybe that was the first step into 'darkness'.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2019-01-10 19:27:04 UTC
OK, I am closing this for now. The settings were correct from first package import, I can only guess that you have done something manually to make portage confused.
Comment 7 Sven E. 2019-01-10 19:29:27 UTC
I wanted to suggest the same (closing)

When I now emerge --oneshot -pv net-libs/gnutls the nettle dep is correctly pulled in and listed.

Thanks for your help, patience and feedback.