Bug 2338878 - Incorrect indludedir path in pkgconfig config file
Summary: Incorrect indludedir path in pkgconfig config file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ldns
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 17:45 UTC by MTRNord
Modified: 2025-09-17 11:12 UTC (History)
7 users (show)

Fixed In Version: ldns-1.8.4-7.fc44
Clone Of:
Environment:
Last Closed: 2025-09-17 11:12:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description MTRNord 2025-01-19 17:45:33 UTC
The fedora 41 package provides a ldns.pc file. This file currently includes the line `includedir=/usr/include/ldns/ldns`. However, the package instead writes the include files to `includedir=/usr/include/ldns` which results in a `/usr/include/ldns/ldns` not found error when used with tools like cmake as the path was incorrect.

Reproducible: Always

Steps to Reproduce:
1. Compare the ldns.pc file with the real files on disk
Actual Results:  
They do not match

Expected Results:  
The includedir option matches the on-disk structure

Comment 1 Petr Menšík 2025-09-16 08:50:03 UTC
Ah, correct. Not sure how it went wrong, but you are right it is.

On top of that, there is also ldns-config tool provided by ldns-devel package. That has just /usr/include in its include path.
This were done by wrong sed in spec file, which overrides updated include after multilib patch. Adding /ldns twice.

But, projects like dnsperf include ldns by #include <ldns/ldns.h> statement and that means no include path specification is needed. Default should be okay, that would by why nobody complained about this before. I would recommend using include <ldns/*.h> in any your projects too.

But yes, let's fix this too.

Comment 2 Fedora Update System 2025-09-17 10:21:01 UTC
FEDORA-2025-49153d2433 (ldns-1.8.4-7.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-49153d2433

Comment 3 Fedora Update System 2025-09-17 11:12:46 UTC
FEDORA-2025-49153d2433 (ldns-1.8.4-7.fc44) has been pushed to the Fedora 44 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.