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

Bug 914342

Summary: mail-client/thunderbird suggests manual emerge of libotr dependency
Product: Gentoo Linux Reporter: Sod off! I am no loger here! <paddlaren>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=745936
Whiteboard:
Package list:
Runtime testing required: ---

Description Sod off! I am no loger here! 2023-09-17 06:20:17 UTC
Hi, 

After an upgrade to mail-client/thunderbird-102.15.1 I was instructed to install libtor to enable extra feature:

* Messages for package mail-client/thunderbird-102.15.1:
* Optional programs for extra features:
*   net-libs/libotr for encrypted chat support


Reading the wiki around portage and emerge it is very clear; one shall never install libraries manually, libraries shall only be installed as dependencies or there will be trouble. Gentoo uses USE-flags for those. Same message is common in the forum. 

My interpretation is that the optional library should be pulled in using a USE-flag. Kopete and other uses USE="otr" for this very dependency, I suggest mail-client/thunderbird should as well. 


Best regards, 
Erik
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-17 06:23:07 UTC
(In reply to Erik Ridderby from comment #0)
> Hi, 
> 
> After an upgrade to mail-client/thunderbird-102.15.1 I was instructed to
> install libtor to enable extra feature:
> 
> * Messages for package mail-client/thunderbird-102.15.1:
> * Optional programs for extra features:
> *   net-libs/libotr for encrypted chat support
> 
> 
> Reading the wiki around portage and emerge it is very clear; one shall never
> install libraries manually, libraries shall only be installed as
> dependencies or there will be trouble. Gentoo uses USE-flags for those. Same
> message is common in the forum. 

Where have you got this from? It's fine (for some definition of fine, we'd prefer runtime USE flags to exist, but they don't right now) or optfeature.eclass wouldn't exist.

These libraries are dlopened() at runtime and hence nothing to build against.
Comment 2 Joonas Niilola gentoo-dev 2023-09-17 07:25:41 UTC
Here's one way how to handle these deps as an admin, or user:

https://wiki.gentoo.org/wiki/Optfeature
https://wiki.gentoo.org/wiki//etc/portage/sets