Bug 2375287 - development package does not come with static library for use with CMake
Summary: development package does not come with static library for use with CMake
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iniparser
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Dave Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-27 22:07 UTC by MatusGuy
Modified: 2025-08-08 00:54 UTC (History)
2 users (show)

Fixed In Version: iniparser-4.2.5-3.fc42
Clone Of:
Environment:
Last Closed: 2025-08-08 00:54:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
CMake error (674 bytes, text/plain)
2025-06-27 22:09 UTC, MatusGuy
no flags Details

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.


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