pkg-config implementation error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pkg-config implementation error

alfxs
> Synopsis: pkg-config modversion does not implement an edge case
> Category: system
> Environment:
System : OpenBSD 6.7
Details : OpenBSD 6.7-current (GENERIC.MP) #189: Fri May 15 08:02:10 MDT 2020
[hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.mp
Architecture : OpenBSD, amd64
Machine : amd64
> Description:
From the man page, "pkg-config --modversion" (with no argument) should have the same output as "pkg-config --version". However, upon running the command, an empty output is produced.
> How-To-Repeat:
pkg-config --modversion
> Fix:
Check if there is no argument provided and output the version string in the modversion implementation.