Bug 1311307

Summary: libgflags-devel doesn't ship pkg-config *.pc files
Product: [Fedora] Fedora Reporter: Evan Klitzke <evan>
Component: gflagsAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: evan, ivaxer, lemenkov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-27 17:43:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch gflags.spec to include .pc files none

Description Evan Klitzke 2016-02-23 21:41:30 UTC
The gflags-devel package (on x86-64) should include at least the following file:

    /usr/lib64/pkgconfig/libgflags.pc

What's interesting is that glog-devel correctly installs libglog.pc so I'm sure it's a simple matter of looking at the SRPMS to see what's different between glog and gflags.

What's also interesting is that both of these packages (glog and gflags) can be built without threading support. On a Debian Jessie system, if you install libgflags-dev you get all of the following files:

    /usr/lib/x86_64-linux-gnu/libgflags.a
    /usr/lib/x86_64-linux-gnu/pkgconfig
    /usr/lib/x86_64-linux-gnu/pkgconfig/libgflags_nothreads.pc
    /usr/lib/x86_64-linux-gnu/pkgconfig/libgflags.pc
    /usr/lib/x86_64-linux-gnu/libgflags.so
    /usr/lib/x86_64-linux-gnu/libgflags_nothreads.so

On a Fedora 23 system if you install libgflags-devel you do get the .so built both ways, but you don't get a .a file nor do you get the .pc file, i.e. you'll see the following installed by gflags-devel:

    /usr/lib64/libgflags.so
    /usr/lib64/libgflags_nothreads.so

Comment 1 Evan Klitzke 2016-02-23 23:13:50 UTC
Created attachment 1129954 [details]
patch gflags.spec to include .pc files

should work like:

  test -f gflags.spec && patch -p0<gflags.patch

Comment 2 Evan Klitzke 2016-02-27 17:43:32 UTC
This doesn't work because upstream seems to have broken support for creating pkgconfig files.

I do, however, have a new SPEC and patches for gflags-2.1.2 that I will post in a new bug.