Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76738 - [hdf5] Invalid Requires version notation in pkgconfig files

Attached to Project: Community Packages
Opened by Tom Smeding (tomsmeding) - Sunday, 04 December 2022, 11:20 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 06 December 2022, 21:17 GMT
Task Type Bug Report
Category Upstream Bugs
Status Assigned
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

(apologies for format, my first report here)

Description:
hdf5 installs 6 pkgconfig files (currently), many of which have a Requires: field to list pkgconfig dependencies. They are given in this format, e.g. from /usr/lib/pkgconfig/hdf5_cpp.pc :

Requires: hdf5-1.12.2

which is wrong because there is no package called 'hdf5-1.12.2' installed; rather, there is a package called 'hdf5' installed with version '1.12.2'. The correct notation is using '>=', as found in e.g. /usr/lib/fontconfig/fontconfig.pc (from fontconfig-2:2.14.1-2):

Requires: freetype2 >= 21.0.15

Because of the wrong notation, queries on most of the hdf5 pkgconfig packages fail, e.g.

$ pkg-config --cflags hdf5_cpp
Package hdf5-1.12.2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `hdf5-1.12.2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'hdf5-1.12.2', required by 'hdf5_cpp', not found

I'm reporting this here because it seems Arch already does a wild dance to get some pkgconfig files in the first place: https://github.com/archlinux/svntogit-community/blob/0e8e99e35d87469c10928d63bd009bcb2c60418b/trunk/PKGBUILD


Additional info:
* hdf5 1.12.2-1

Steps to reproduce:
Perform any pkgconfig query, such as --modversion, on hdf5_cpp, hdf5_fortran, hdf5_hl, hdf5_hl_cpp or hdf5_hl_fortran.
This task depends upon

Comment by Toolybird (Toolybird) - Sunday, 04 December 2022, 20:26 GMT
Despite the "wild dance", it's still essentially an upstream issue. They provide the CMake files that generate the .pc files. Could you please report it upstream?
Comment by Tom Smeding (tomsmeding) - Monday, 05 December 2022, 10:16 GMT
I have reported this upstream (ticket SUPPORT-1874 -- tickets don't seem to be publicly accessible). I'll post back if I hear something.
Comment by Tom Smeding (tomsmeding) - Tuesday, 06 December 2022, 18:14 GMT
Quoting the response I got from upstream:

> Hello! Thank you for reporting the issue! It is fixed and will be included in future releases.

So it seems this task can be closed.
Comment by Toolybird (Toolybird) - Tuesday, 06 December 2022, 21:17 GMT
Thanks for doing that. Although, I somehow missed their github where it's already fixed [1]. Let's not close it just yet, but instead give the maintainer an opportunity to backport the patch.

[1] https://github.com/HDFGroup/hdf5/commit/02de350b396bfc378bfb4b4382e176b21bf379d5

Loading...