No pkg-config file in libdocopt-dev

Bug #1887479 reported by Alexander Sashnov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docopt.cpp (Ubuntu)
New
Undecided
Unassigned

Bug Description

No pkg-config file in libdocopt-dev. It causes build process failed because it relies on finding a library via pkg-config:

Steps to reproduce:

$ git clone <email address hidden>:openzim/zim-tools.git
$ cd zim-tools/
$ mkdir build
$ cd build/
$ meson ..

Actual result:

 The Meson build system
 Version: 0.45.1
 Source dir: /home/alex/tmp/zim-tools
 Build dir: /home/alex/tmp/zim-tools/build
 Build type: native build
 Project name: zim-tools
 Native C compiler: ccache cc (gcc 7.5.0 "cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
 Native C++ compiler: ccache c++ (gcc 7.5.0 "c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0")
 Build machine cpu family: x86_64
 Build machine cpu: x86_64
 Found pkg-config: /usr/bin/pkg-config (0.29.1)
 Native dependency libzim found: YES 6.1.4
 Dependency rt found: NO

meson.build:20:0: ERROR: Native dependency 'docopt' not found

(please, don't mind this 'rt' library absence, it's OK).

In /home/alex/tmp/zim-tools/build/meson-logs/meson-log.txt:

 Determining dependency 'docopt' with pkg-config executable '/usr/bin/pkg-config'
 meson.build:20:0: ERROR: Native dependency 'docopt' not found

Expected result:

Meson should find libdocopt via pkg-config

Additional info

 $ dpkg -L libdocopt-dev | grep pc
 <empty output>

Other packages have it, for example:

 $ dpkg -L libzstd-dev | grep pc
 /usr/lib/x86_64-linux-gnu/pkgconfig/libzstd.pc

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libdocopt-dev 0.6.2-2
Uname: Linux 4.19.91-041991-lowlatency x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 14 12:41:18 2020
Dependencies:
 gcc-8-base 8.4.0-1ubuntu1~18.04
 libc6 2.27-3ubuntu1
 libdocopt0 0.6.2-2
 libgcc1 1:8.4.0-1ubuntu1~18.04
 libstdc++6 8.4.0-1ubuntu1~18.04
InstallationDate: Installed on 2019-10-27 (260 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: docopt.cpp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alexander Sashnov (sashnov) wrote :
Revision history for this message
Alexander Sashnov (sashnov) wrote :

After creation of this stub compilation was sucessful:

 $ cat /usr/lib/x86_64-linux-gnu/pkgconfig/docopt.pc
 prefix=/usr
 libdir=/usr/lib
 includedir=/usr/include

 Name: docopt
 Description: C++11 port of docopt
 URL: http://docopt.org/
 Version: 0.6.2
 Libs: -L${libdir} -ldocopt
 Cflags: -I${includedir}

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.