Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772935 - dev-libs/libtomcrypt: Useflags Any-Of does not work
Summary: dev-libs/libtomcrypt: Useflags Any-Of does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-25 20:35 UTC by HansHelm
Modified: 2021-03-19 02:28 UTC (History)
3 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 HansHelm 2021-02-25 20:35:25 UTC
While emerging/updating Dropbear an error occured, because libtomcrypt need t least one of the "math" use flags (libtommath or tomsfastmath).
Adding "libtommath" use flag manually to libtomcrypt fixed the issue.

The full forum post can be seen here: 
https://forums.gentoo.org/viewtopic-t-1130952.html

This buggy emerge is actually possible (and results in failing emerges of other packages, e.g. dropbear):

[ebuild   R    ] dev-libs/libtomcrypt-1.18.2-r2:0/1::gentoo  USE="-gmp -libtommath -tomsfastmath"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-02-25 22:29:18 UTC
Are you sure this isn't a bug in dropbear itself?  Unless I'm mistaken, different packages may support different subset of libtomcrypt backends, so they should probably depend on the backends they accept.
Comment 2 HansHelm 2021-02-25 22:35:14 UTC
(In reply to Michał Górny from comment #1)
> Are you sure this isn't a bug in dropbear itself?  Unless I'm mistaken,
> different packages may support different subset of libtomcrypt backends, so
> they should probably depend on the backends they accept.

Okay, seems legit. I'm not as deep into this as you might guess. To me it just seemed that libtomcrypt is the problem.
Feel free to correct the problematic package name for this bug report. :)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-26 14:29:04 UTC
The strange thing here is, I was sure we had a REQUIRED_USE, and so I need to double-check if we removed it for a reason.

At first glance, yes, it makes sense to require at least one math backend though.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-26 22:32:44 UTC
Note that we enable libtommath by default so you're for some reason negating the default here, but yes, it is still a real
Comment 5 Larry the Git Cow gentoo-dev 2021-03-19 02:27:02 UTC
The bug has been closed via the following commit(s):

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

commit 115464be8a78924624f616ab0b9ae9b61708041c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-19 02:26:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-19 02:26:55 +0000

    dev-libs/libtomcrypt: fix REQUIRED_USE to enforce at least one math provider
    
    Closes: https://bugs.gentoo.org/772935
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libtomcrypt/libtomcrypt-1.18.2-r2.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2021-03-19 02:28:32 UTC
The bug has been referenced in the following commit(s):

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

commit dfad13e8044d36db7f610e00cb19d00ead659bcd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-19 02:27:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-19 02:28:14 +0000

    dev-libs/libtomcrypt: use any-of
    
    Bug: https://bugs.gentoo.org/772935
    Fixes: 115464be8a78924624f616ab0b9ae9b61708041c
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libtomcrypt/libtomcrypt-1.18.2-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)