libpcap-dev and derivatives missing libpcap.pc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libpcap |
Unknown
|
Unknown
|
|||
libpcap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Sergio Durigan Junior | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Users of libpcap cannot make use of its pkg-config file in order to automate the building process of applications that use the library, because the file is not being installed on Ubuntu bionic.
[Test Case]
$ lxc launch ubuntu-daily:bionic libpcap-bug1865501
$ lxc shell libpcap-bug1865501
# apt update
# apt install libpcap-dev pkg-config -y
# pkg-config libpcap --libs
You will see an error like this:
Package libpcap was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcap.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpcap' found
[Regression Potential]
- The libpcap package will be rebuilt using newer dependencies on bionic, which might cause some unforeseen problem. The chances for this to happen are very small, though.
- Users who created their own pkg-config file as a workaround should not see any problems with the new file, as long as they are correctly providingthe right parameters in their own files.
[Original Description]
libpcap-dev (and its derivative packages libpcap0.8-dev) is missing the libpcap.pc file. The implication here is that any autoconf based project that uses the PKG_CHECK_MODULES macro to determine the install state of libpcap fails, as pkg-config can't find the install information
Related branches
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 388 lines (+345/-0)6 files modifieddebian/changelog (+17/-0)
debian/libpcap0.8-dev.install (+1/-0)
debian/patches/install-pkg-config-file.patch (+137/-0)
debian/patches/series (+3/-0)
debian/patches/set-package-name-with-ac-init.patch (+160/-0)
debian/patches/use-m4-macro-to-get-version.patch (+27/-0)
tags: | added: patch |
Changed in libpcap (Ubuntu Bionic): | |
status: | New → Triaged |
tags: | added: server-next |
Changed in libpcap (Ubuntu Trusty): | |
status: | New → Won't Fix |
Changed in libpcap (Ubuntu Bionic): | |
assignee: | nobody → Sergio Durigan Junior (sergiodj) |
Changed in libpcap (Ubuntu Bionic): | |
status: | Triaged → In Progress |
description: | updated |
Changed in libpcap (Ubuntu): | |
status: | New → Fix Released |
This was fixed in 1.9.0-2:
libpcap (1.9.0-2) unstable; urgency=medium
[ Luca Boccassi ]
* Install upstream pkg-config file (closes: #922219).
Ubuntu Eoan (19.10) and later have this fix. I assume you are running disco or earlier. But those versions do not have the pc file in the upstream source code, as that was added just in version 1.9.0.
So which ubuntu release are you running, and which version exactly of the libpcap packages do you have installed?