Bug 104543

Summary: pkg.m4: add $PKG_VERSION to available variables.
Product: pkg-config Reporter: hanetzer
Component: srcAssignee: pkg-config
Status: RESOLVED MOVED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: pkg.m4.in-modversion.patch

Description hanetzer 2018-01-09 02:28:11 UTC
Created attachment 136623 [details]
pkg.m4.in-modversion.patch

Occasionally one would like to be able to query the version
of a given package at build time, possibly to include into
debug messages or maybe the 'help->about' menu on their app
in order to list what version of a library a given program
is compiled against.

Its a trivial change as far as I can see, just a two-liner
patch unless there are some intricacies I'm missing. Find
attached a patch showing the needed changes made as far as
my admittedly limited knowledge of m4/autotools/etc shows.
Comment 1 GitLab Migration User 2018-08-25 12:54:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/20.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.