Bug 2452224

Summary: Wrong output of lhapdf-config --incdir
Product: [Fedora] Fedora Reporter: andrii.verbytskyi
Component: lhapdfAssignee: Mattias Ellert <mattias.ellert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 45CC: mattias.ellert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lhapdf-6.5.6-3.el10_3 lhapdf-6.5.6-3.el10_2 lhapdf-6.5.6-3.el8 lhapdf-6.5.6-3.fc42 lhapdf-6.5.6-3.el10_1 lhapdf-6.5.6-3.el9 lhapdf-6.5.6-3.fc43 lhapdf-6.5.6-3.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-04-13 00:24:46 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 andrii.verbytskyi 2026-03-27 12:13:57 UTC
lhapdf-config --incdir does not show the include directories anymore and instead of it just  prints help+error message.


Reproducible: Always

Steps to Reproduce:
1. run lhapdf-config --incdir
2. See the error+help message.
Actual Results:

user@fedora:~$ lhapdf-config --incdir
lhapdf-config: configuration tool for the LHAPDF
               parton density function evolution library
               https://www.lhapdf.org/

Usage: lhapdf-config [options]
Options:
  --help | -h   : show this help message

  --prefix              : show the installation prefix (cf. autoconf)
  --incdir              : show the path to the LHAPDF C++ header directory
  --libdir              : show the path to the LHAPDF library directory
  --datadir             : show the path to the LHAPDF data directory
  --pythonpath|--pydir  : show the path(s) to the directory containing LHAPDF's Python package

  --cxx                   : returns a compiler string matching that used to build LHAPDF
  --cxxflags              : returns a string matching the compiler flags used to build LHAPDF
  --cflags|--cppflags     : returns a '-I' string for insertion into CPPFLAGS
  --libs                  : returns a '-L/-l' string for insertion into LDFLAGS/LDLIBS
  --ldflags|--libs-only-L : returns a '-L' string for insertion into LDFLAGS
  --ldlibs|--libs-only-l  : returns a '-l' string for insertion into LDLIBS

  --version     : return LHAPDF release version number
Error: Unknown option '--incdir'


Expected Results:

user@fedora:~$ lhapdf-config --incdir
/usr/include

Additional Information:
This is obviously broken upstream. As a quick fix one can add to lhapdf-config:


# Loop over arguments
for opt in "$@"; do
  case "$opt" in
    --help)         print_help && exit 0 ;;
    --h)            print_help && exit 0 ;;
    --version)      echo "6.5.6" && exit 0 ;;
    --prefix)       show_prefix=1 ;;
    --includedir)   show_incdir=1 ;;
    --incdir)       show_incdir=1 ;;  <--------------
    --libdir)       show_libdir=1 ;;
    --datadir)      show_datdir=1 ;;
    --pythonpath)   show_pypath=1 ;;
    --pydir)        show_pypath=1 ;;
    --cxx)          show_cxxexe=1 ;;
    --cxxflags)     show_cflags=1 ;;
    --cflags)       show_iflags=1 ;;
    --cppflags)     show_iflags=1 ;;
    --ldflags)      show_Lflags=1 ;;
    --libs-only-L)  show_Lflags=1 ;;
    --ldlibs)       show_lflags=1 ;;
    --libs-only-l)  show_lflags=1 ;;
    --libs)         show_Lflags=1; show_lflags=1 ;;
    *)              print_help
                    echo "Error: Unknown option '$opt'" >&2
                    exit 1 ;;
  esac
done

Comment 1 Fedora Update System 2026-03-28 21:05:43 UTC
FEDORA-2026-f6c1c89402 (lhapdf-6.5.6-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f6c1c89402

Comment 2 Fedora Update System 2026-03-28 21:05:43 UTC
FEDORA-2026-bf3828833c (lhapdf-6.5.6-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-bf3828833c

Comment 3 Fedora Update System 2026-03-28 21:05:43 UTC
FEDORA-2026-b260595bd0 (lhapdf-6.5.6-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-b260595bd0

Comment 4 Fedora Update System 2026-03-28 21:05:45 UTC
FEDORA-EPEL-2026-ee399de276 (lhapdf-6.5.6-2.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ee399de276

Comment 5 Fedora Update System 2026-03-28 21:05:45 UTC
FEDORA-EPEL-2026-28a3ad0e17 (lhapdf-6.5.6-2.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-28a3ad0e17

Comment 6 Fedora Update System 2026-03-29 01:31:41 UTC
FEDORA-2026-b260595bd0 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b260595bd0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b260595bd0

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

Comment 7 Fedora Update System 2026-03-29 01:37:52 UTC
FEDORA-EPEL-2026-218f8af7a4 has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-218f8af7a4

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

Comment 8 Fedora Update System 2026-03-29 01:43:56 UTC
FEDORA-EPEL-2026-ee77ef69b5 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ee77ef69b5

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

Comment 9 Fedora Update System 2026-03-29 01:48:19 UTC
FEDORA-2026-bf3828833c has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-bf3828833c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-bf3828833c

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

Comment 10 Fedora Update System 2026-03-29 01:56:38 UTC
FEDORA-EPEL-2026-b6e970dc2d has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-b6e970dc2d

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

Comment 11 Fedora Update System 2026-03-29 01:57:11 UTC
FEDORA-EPEL-2026-ee399de276 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ee399de276

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

Comment 12 Fedora Update System 2026-03-29 02:01:35 UTC
FEDORA-EPEL-2026-28a3ad0e17 has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-28a3ad0e17

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

Comment 13 Fedora Update System 2026-03-29 02:07:02 UTC
FEDORA-2026-f6c1c89402 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-2026-f6c1c89402`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-f6c1c89402

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

Comment 14 andrii.verbytskyi 2026-03-31 08:01:17 UTC
Sorry for not reporting it earlier, just discovered another bug in the updated LHAPDF.
Basically, the logic of `lhapdf-config` was updated so


user@fedora:~/LHAPDFTEST$ 6.5.6/lhapdf-config --ldflags
-L/usr/lib64 -L/usr/lib -L/usr/lib64 -lyaml-cpp
user@fedora:~/LHAPDFTEST$ 6.5.5/lhapdf-config --ldflags
-L/usr/lib -L/usr/lib64 -lyaml-cpp -L/usr/lib64 -lLHAPDF


This logic breaks builds for downstream packages.
I have no fix so far.

Best regards,

Andrii

Comment 15 Mattias Ellert 2026-04-03 07:15:40 UTC
The logic has changed and you need to put both --ldflags and --ldlibs to get the complete set of flags:

$ lhapdf-config --cflags
-I/usr/include -I-I/usr/include
$ lhapdf-config --ldflags --ldlibs
-L/usr/lib64 -L/usr/lib -L/usr/lib64 -lyaml-cpp -lLHAPDF

The double -I-I in the cflags is a bug which I have now fixed in the -3 release.
And puting both -L/usr/lib and -L/usr/lib64 in ldflags is not correct either.

With the new version:

$ lhapdf-config --cflags
-I/usr/include
$ lhapdf-config --ldflags --ldlibs
-L/usr/lib64 -lyaml-cpp -lLHAPDF
$ lhapdf-config --incdir
/usr/include
$ lhapdf-config --includedir
/usr/include
$ lhapdf-config --libdir
/usr/lib64

Comment 16 Fedora Update System 2026-04-04 01:36:34 UTC
FEDORA-2026-f6c1c89402 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-2026-f6c1c89402`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-f6c1c89402

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

Comment 17 Fedora Update System 2026-04-04 01:46:11 UTC
FEDORA-EPEL-2026-218f8af7a4 has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-218f8af7a4

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

Comment 18 Fedora Update System 2026-04-04 01:51:45 UTC
FEDORA-EPEL-2026-ee77ef69b5 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ee77ef69b5

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

Comment 19 Fedora Update System 2026-04-04 01:55:45 UTC
FEDORA-2026-bf3828833c has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-bf3828833c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-bf3828833c

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

Comment 20 Fedora Update System 2026-04-04 02:01:09 UTC
FEDORA-EPEL-2026-ee399de276 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ee399de276

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

Comment 21 Fedora Update System 2026-04-04 02:03:32 UTC
FEDORA-EPEL-2026-b6e970dc2d has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-b6e970dc2d

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

Comment 22 Fedora Update System 2026-04-04 02:06:49 UTC
FEDORA-EPEL-2026-28a3ad0e17 has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-28a3ad0e17

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

Comment 23 Fedora Update System 2026-04-04 02:14:00 UTC
FEDORA-2026-b260595bd0 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b260595bd0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b260595bd0

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

Comment 24 Fedora Update System 2026-04-13 00:24:46 UTC
FEDORA-EPEL-2026-218f8af7a4 (lhapdf-6.5.6-3.el10_3) has been pushed to the Fedora EPEL 10.3 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2026-04-13 00:35:12 UTC
FEDORA-EPEL-2026-ee77ef69b5 (lhapdf-6.5.6-3.el10_2) has been pushed to the Fedora EPEL 10.2 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2026-04-13 00:44:19 UTC
FEDORA-EPEL-2026-ee399de276 (lhapdf-6.5.6-3.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 27 Fedora Update System 2026-04-13 00:49:59 UTC
FEDORA-2026-f6c1c89402 (lhapdf-6.5.6-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 28 Fedora Update System 2026-04-13 01:00:20 UTC
FEDORA-EPEL-2026-28a3ad0e17 (lhapdf-6.5.6-3.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 29 Fedora Update System 2026-04-13 01:00:26 UTC
FEDORA-EPEL-2026-b6e970dc2d (lhapdf-6.5.6-3.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 30 Fedora Update System 2026-04-13 01:07:19 UTC
FEDORA-2026-b260595bd0 (lhapdf-6.5.6-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 31 Fedora Update System 2026-04-25 01:27:29 UTC
FEDORA-2026-bf3828833c (lhapdf-6.5.6-3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.