#953215 [libreadline-dev] libreadline-dev in stable lacks a .pc file for pkg-config

Package:
libreadline-dev
Source:
readline
Description:
GNU readline and history libraries, development files
Submitter:
Sergio Costas
Date:
2024-02-04 13:15:03 UTC
Severity:
important
#953215#5
Date:
2020-03-05 23:34:05 UTC
From:
To:
--- Please enter the report below this line. ---

The libreadline-dev file for debian stable lacks a .pc file, so it is
not possible to compile programs using CMake or Meson/Ninja if they
check for it.

Debian SID package has it.


Debian Release: bullseye/sid
500 unstable-debug debug.mirrors.debian.org
500 unstable ftp.debian.org
500 suldr www.bchemnet.com
500 stable repo.skype.com
500 stable linux.teamviewer.com
500 stable dl.google.com
--- Package information. ---
Depends (Version) | Installed
===============================-+-=============
libreadline8 (= 8.0-4) | 8.0-4
libncurses-dev | 6.2-1
dpkg (>= 1.15.4) | 1.19.7
OR install-info | 6.7.0.dfsg.2-5


Package's Recommends field is empty.

Suggests (Version) | Installed
===========================-+-===========
readline-doc |

#953215#18
Date:
2023-07-07 14:01:56 UTC
From:
To:
The file readline.pc is provided since bullseye, so imho this bug can be closed.

Sébastien

#953215#23
Date:
2024-02-04 13:10:27 UTC
From:
To:
But the history.pc file apparently isn't.

$ dpkg-deb -c libreadline-dev_8.2-1.3_amd64.deb
drwxr-xr-x root/root         0 2023-01-03 14:49 ./
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/include/
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/include/readline/
-rw-r--r-- root/root      4461 2023-01-03 14:49 ./usr/include/readline/chardefs.h
-rw-r--r-- root/root     10684 2023-01-03 14:49 ./usr/include/readline/history.h
-rw-r--r-- root/root      3201 2023-01-03 14:49 ./usr/include/readline/keymaps.h
-rw-r--r-- root/root     38171 2023-01-03 14:49 ./usr/include/readline/readline.h
-rw-r--r-- root/root      2829 2023-01-03 14:49 ./usr/include/readline/rlconf.h
-rw-r--r-- root/root      1837 2023-01-03 14:49 ./usr/include/readline/rlstdc.h
-rw-r--r-- root/root      3021 2023-01-03 14:49 ./usr/include/readline/rltypedefs.h
-rw-r--r-- root/root      2652 2023-01-03 14:49 ./usr/include/readline/tilde.h
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/lib/
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/
-rw-r--r-- root/root     65332 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/libhistory.a
-rw-r--r-- root/root    657390 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/libreadline.a
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/pkgconfig/
-rw-r--r-- root/root       318 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/pkgconfig/readline.pc
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/share/
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/share/doc/
drwxr-xr-x root/root         0 2023-01-03 14:49 ./usr/share/info/
lrwxrwxrwx root/root         0 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/libhistory.so -> /lib/x86_64-linux-gnu/libhistory.so.8
lrwxrwxrwx root/root         0 2023-01-03 14:49 ./usr/lib/x86_64-linux-gnu/libreadline.so -> /lib/x86_64-linux-gnu/libreadline.so.8
lrwxrwxrwx root/root         0 2023-01-03 14:49 ./usr/share/doc/libreadline-dev -> libreadline8

For instance, I got the following problem when attempting to build
"csope".[1]

Fortunately it was easy to hand-roll a replacement.

Regards,
Branden

[1] https://github.com/agvxov/csope