Bug 2513486

Summary: mstflint builds bundled libraries (iniparser,jsoncpp,muParser,sqlite)
Product: [Fedora] Fedora Reporter: Michal Schmidt <mschmidt>
Component: mstflintAssignee: Michal Schmidt <mschmidt>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: davide, honggangli, jiri, kheib, mschmidt, negativo17
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: mstflint-4.36.0-3.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-08-13 13:46:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Schmidt 2026-08-10 12:43:35 UTC
mstflint in Fedora is built with bundled libraries even though system equivalents are available: iniparser, jsoncpp, muParser, sqlite

This quote from https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling is relevant to mstflint:
> All packages whose upstreams allow them to be built against system libraries
> MUST be built against system libraries. In this case, bundled libraries
> (and/or their source code) MUST be explicitly deleted during %prep.
> Build scripts may need to be patched to deal with this situation.
> Whenever possible, the patch should conditionalize the use of the bundled libraries,
> so that the patch can be sent upstream for consideration.

Reproducible: Always

Steps to Reproduce:
Check the package's build.log from Koji.
OR
ldd /usr/bin/mst*
Actual Results:
./configure script does not detect the 4 system libraries. The bundled libraries are compiled.
ldd shows the resulting binaries are not linked to any of the 4 system libraries.

https://kojipkgs.fedoraproject.org//packages/mstflint/4.36.0/1.fc45/data/logs/x86_64/build.log:
...
checking for iniparser.h... no
checking for library containing JSON... no
checking for library containing mupCreateVar... no
checking for library containing sqlite3_initialize... no
...


Expected Results:
./configure script should detect the 4 system libraries.
The resulting binaries should be dynamically linked to the system libraries.

Comment 1 Michal Schmidt 2026-08-10 12:45:29 UTC
I created a PR upstream: https://github.com/Mellanox/mstflint/pull/1848

Comment 2 Michal Schmidt 2026-08-10 14:26:23 UTC
Fedora PR: https://src.fedoraproject.org/rpms/mstflint/pull-request/20