Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938187 - dev-debug/sysdig: do not install libscap/libsinsp headers & libs
Summary: dev-debug/sysdig: do not install libscap/libsinsp headers & libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-08-19 15:11 UTC by Holger Hoffstätte
Modified: 2024-08-20 00:48 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 Holger Hoffstätte 2024-08-19 15:11:03 UTC
sysdig installs development libraries & headers by default. These are rarely used unless people write their own sysdig-like integration or tools, but take up ~35 MB due to static linking. For a regular sysdig installation they can be made optional with USE="-libs" with no loss of functionality.


Reproducible: Always

Steps to Reproduce:
1. install sysdig
2. lots of rarely used development stuff is installed
Comment 1 Mike Gilbert gentoo-dev 2024-08-19 17:52:47 UTC
We don't normally make libs/headers optional in Gentoo.
Comment 2 Holger Hoffstätte 2024-08-19 18:15:32 UTC
(In reply to Mike Gilbert from comment #1)
> We don't normally make libs/headers optional in Gentoo.

These libs are "usable" in the technical sense, but kind of unversioned since they are only static. Upstream are working on allowing them to be shared libs with proper soname but that's some time away. Their main purpose is to be linked into the main executables. I'm not aware of a single project actually using them (they were split of the executable for purely political & licensing reasons).

I will gladly revisit this when the libs are a separate ebuild/dependency of the main program and installed as properly versioned shared libs. Until them I'd like to get them out of the way by default.
Comment 3 Eli Schwartz gentoo-dev 2024-08-19 18:33:47 UTC
(In reply to Holger Hoffstätte from comment #2)
> I will gladly revisit this when the libs are a separate ebuild/dependency of
> the main program and installed as properly versioned shared libs. Until them
> I'd like to get them out of the way by default.


Question. If it doesn't make sense to install them as a separate ebuild due to the fact that they aren't properly-versioned shared libraries, why would it make sense to install them in the same ebuild either?

Maybe we should unconditionally delete them, in that case?
Comment 4 Holger Hoffstätte 2024-08-19 18:47:49 UTC
(In reply to Eli Schwartz from comment #3)
> (In reply to Holger Hoffstätte from comment #2)
> > I will gladly revisit this when the libs are a separate ebuild/dependency of
> > the main program and installed as properly versioned shared libs. Until them
> > I'd like to get them out of the way by default.
> 
> 
> Question. If it doesn't make sense to install them as a separate ebuild due
> to the fact that they aren't properly-versioned shared libraries, why would
> it make sense to install them in the same ebuild either?
> 
> Maybe we should unconditionally delete them, in that case?

My thoughts exactly! Previously they were installed only by accident (since that's what the falcosecurity/libs cmake build does by default). I only added the USE flag to be a bit more backwards-compatible. Also searched through ::gentoo for users of USE=libs but only found bittorrent-core. So..unless someone objects I can gladly unconditionally delete them and remove the libs flag. Works for me!
Comment 5 Larry the Git Cow gentoo-dev 2024-08-20 00:48:40 UTC
The bug has been closed via the following commit(s):

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

commit 5ce92c88c01d4559ef83d7573091d19377e06535
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-08-09 09:30:03 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-20 00:48:00 +0000

    dev-debug/sysdig: revbump for libs-0.17.3, do not install headers/libs
    
    A few fixes since libs-0.17.2. Building with LTO now works as well.
    Do not install development headers/libs due to many usability problems.
    Clean up some dependency QA issues.
    
    Closes: https://bugs.gentoo.org/938187
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 dev-debug/sysdig/Manifest                |   1 +
 dev-debug/sysdig/sysdig-0.38.1-r1.ebuild | 131 +++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)