Bug 7962 - Fix_pkgconfig from spec_helper package does not find an installed .pc file
: Fix_pkgconfig from spec_helper package does not find an installed .pc file
Status: CONFIRMED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-22 20:56 MSD by Giovanni Mariani
Modified: 2017-05-22 20:56 MSD (History)
0 users

See Also:
RPM Package: spec-helper-0.31.44-4.src.rpm
ISO-related:
Bad POT generating:
Upstream: unknown


Attachments
Sample of pkgconfig file for rygel library (librygel-core-2.6.so) (428 bytes, text/plain)
2017-05-22 20:56 MSD, Giovanni Mariani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni Mariani 2017-05-22 20:56:31 MSD
Created attachment 4647 [details]
Sample of pkgconfig file for rygel library (librygel-core-2.6.so)

Description of problem:
Noticed while building an updated package for Rygel 0.34.0.
This one provides a bunch of devel libraries (librygel-core-2.6.so, librygel-renderer-2.6.so, librygel-renderer-gst-2.6.so and librygel-server-2.6.so) with the corresponding pkgconfig files (ie: rygel-core-2.6.pc, rygel-renderer-2.6.gc, rygel-renderer-gst-2.6.gc and rygel-server-2.6.gc).

After a successful build+install of the rygel sources, the script fix_pkgconfig
complains because it does not find the .pc files for the above devel libraries:
******************************
+ /usr/share/spec-helper/fix_pkgconfig
Package rygel-renderer-gst-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `rygel-renderer-gst-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rygel-renderer-gst-2' found
Package rygel-server-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `rygel-server-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rygel-server-2' found
Package rygel-renderer-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `rygel-renderer-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rygel-renderer-2' found
Package rygel-core-2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `rygel-core-2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rygel-core-2' found
******************************

Given the above warnings, I guess this happens because all the .pc filenames from Rygel include explicitly the API number in the form "x.y": fix_pkgconfig evidently stops at the first "." it finds, so it thinks that the .pc filename is "rygel-zzzz-2.pc", instead of the right "rygel-zzzz-2.6.pc"

All the .pc files generated by the build are OK AFAICT (see the attached example), so the warning is wrong. We should teach fix_pkgconfig how to deal with such .pc files.


Version-Release number of selected component (if applicable):
0.31.44-4


How reproducible:
Always

Steps to Reproduce:
1. Install Rygel 0.34.0 sources and prepare them for the build
2. Do an "rpmbuild -ba" or an "abf rpmbuild" in a konsole
3. Look at the build output