Bug 2375287

Summary: development package does not come with static library for use with CMake
Product: [Fedora] Fedora Reporter: MatusGuy <martusguy>
Component: iniparserAssignee: Dave Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: dcantrell, robinlee.sysu
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: iniparser-4.2.5-3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-08 00:54:25 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:
Attachments:
Description Flags
CMake error none

Description MatusGuy 2025-06-27 22:07:25 UTC
Despite the iniparser-devel package installing iniparser-staticTargets.cmake to /usr/lib64/cmake/iniparser, the static library that this CMake script refers to, it does not install libiniparser.a to /usr/lib64.
This means that the CMake config file (/usr/lib64/cmake/iniparser/iniparser-config.cmake) becomes unusable because it includes both shared and static library scripts at the start of the main config script:

# if the targets files exist it is save to include them, even if they are not
# demanded
include("${CMAKE_CURRENT_LIST_DIR}/iniparser-sharedTargets.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/iniparser-staticTargets.cmake" OPTIONAL)

Reproducible: Always

Steps to Reproduce:
1. Use find_package to get the iniparser library:
   find_package(iniparser REQUIRED CONFIG)
2. Configure with CMake.
Actual Results:
Script throws an error (output attached to this bug report).

Expected Results:
The CMake script finds the package successfully.

Additional Information:
It seems the static library is provided by the iniparser-static package, so that means this package should depend on iniparser-static.

Comment 1 MatusGuy 2025-06-27 22:09:27 UTC
Created attachment 2095457 [details]
CMake error

Comment 2 Fedora Update System 2025-08-05 16:29:05 UTC
FEDORA-2025-6ce9d767bb (iniparser-4.2.5-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-6ce9d767bb

Comment 3 Fedora Update System 2025-08-06 02:36:50 UTC
FEDORA-2025-6ce9d767bb has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6ce9d767bb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6ce9d767bb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-08-08 00:54:25 UTC
FEDORA-2025-6ce9d767bb (iniparser-4.2.5-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.