Bug 27820 - Add libseccomp-static as it's needed to build snapd
Summary: Add libseccomp-static as it's needed to build snapd
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 22:58 CET by Kristoffer Grundström
Modified: 2020-12-15 17:02 CET (History)
1 user (show)

See Also:
Source RPM: libseccomp
CVE:
Status comment:


Attachments
Proposal spec file to build libseccomp with a static rpm (2.68 KB, text/plain)
2020-12-14 22:59 CET, Kristoffer Grundström
Details

Description Kristoffer Grundström 2020-12-14 22:58:39 CET
Description of problem: I took the liberty of building the latest libseccomp WITH the addition of libseccomp-static as it contains libseccomp.a which is needed to build snapd in Mageia.

Version-Release number of selected component (if applicable): 2.5.1
Comment 1 Kristoffer Grundström 2020-12-14 22:59:20 CET
Created attachment 12080 [details]
Proposal spec file to build libseccomp with a static rpm

CC: (none) => lovaren

Comment 2 Kristoffer Grundström 2020-12-14 23:09:13 CET
The installation of said package will fail with this error:

Installation failed:	file /usr/lib64/libseccomp.so.2 from the installation of libseccomp-2.5.1-1.x86_64 conflicts with file from package lib64seccomp2-2.5.0-1.mga7.x86_64

I honestly don't know how to solve that.
Comment 3 David Walser 2020-12-15 01:34:47 CET
We've managed to build snapd without it (no we won't be providing it), so it's obviously not needed.  In general for the most part, we don't provide static libraries.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 4 Kristoffer Grundström 2020-12-15 02:12:24 CET
Forgive me for saying this, but https://pkgs.org/download/snapd shows no snapd for Mageia.

If you take a look at the Fedora version they seem to need libseccomp-static to build snapd.

How come our approach is different from their way with the same package if we both use RPM?
Comment 5 Kristoffer Grundström 2020-12-15 02:16:43 CET
Even CentOS uses libseccomp-static to build it.
Comment 6 David Walser 2020-12-15 17:02:00 CET
We are not Fedora/CentOS.  I already said that we won't be providing the snapd package that we had built.

Note You need to log in before you can comment on or make changes to this bug.