pkg-config returns bad paths

Bug #1831387 reported by Stanislaw Pitucha
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rtl-sdr (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The pkg-config values for this package seem invalid:

root@6eedf8391cfd:/kalibrate-rtl# pkg-config --libs librtlsdr
-L -lrtlsdr
root@6eedf8391cfd:/kalibrate-rtl# pkg-config --cflags librtlsdr
-I/

This seems to effectively break compilation which relies on pkg-config.

Tested on 19.04

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rtl-sdr (Ubuntu):
status: New → Confirmed
Revision history for this message
Lorenz Brun (lorenz-x) wrote :

A workaround (and a fix if this is packaged) is to replace /usr/lib/x86_64-linux-gnu/pkgconfig/librtlsdr.pc with this:

prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: RTL-SDR Library
Description: C Utility Library
Version: 0.6.0
Cflags: -I${includedir}/
Libs: -L${libdir} -lrtlsdr
Libs.private: -lusb-1.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.