Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601366 - sci-libs/htslib-1.3.1 - pkg-config --cflags htslib does not work
Summary: sci-libs/htslib-1.3.1 - pkg-config --cflags htslib does not work
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-01 16:29 UTC by Martin Mokrejš
Modified: 2017-08-28 07:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2016-12-01 16:29:47 UTC
Hi,
  I wonder why this des not work:

$ pkg-config --cflags htslib

$

  In contrary, this works:
$ pkg-config --cflags cairo
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16
$

I do not see anything wrong in the file:

$ cat /usr/lib64/pkgconfig/htslib.pc 
includedir=/usr/include
libdir=/usr/lib64

Name: htslib
Description: C library for high-throughput sequencing data formats
Version: 1.3.1
Cflags: -I${includedir}
Libs: -L${libdir} -lhts
Libs.private: -L${libdir} -lhts -lm -lpthread
Requires.private: zlib
$


Thank you
Comment 1 Martin Mokrejš 2016-12-07 16:15:56 UTC
# pkg-config htslib --print-variables
includedir
libdir
pcfiledir
# pkg-config htslib --variable=libdir
/usr/lib64
# pkg-config htslib --variable=includedir
/usr/include
#

So why do not those two above propagate to 'pkg-config --cflags' and 'pkg-config --libs'?
Comment 2 Benda Xu gentoo-dev 2017-06-06 13:00:33 UTC
Because /usr/include is the standard header location that should be ignored.

  http://dev.gentoo.org/~mgorny/pkg-config-spec.html#flag-mangling-rules
Comment 3 Benda Xu gentoo-dev 2017-08-28 07:33:43 UTC
Hi Martin, responding to your comments in https://github.com/gentoo/sci/issues/709, when the include dir is the standard /usr/include, pkg-config chooses to ignore it.  The same applies to library dir, which defaults to /usr/lib64.