Package: libreadline-dev
Version: 7.0-5
Severity: wishlist

It would be nice to have readline.pc included in libreadline-dev, it
gives a standard way to check for the libs needed to link with
-lreadline.  Right now there are many reverse dependencies of
libreadline which needlessly link with -ltinfo or -lncurses, and having
the pkgconfig file in libreadline-dev should reduce their number in the
long run.

Attached is a patch for readline 8.0~alpha1-1 where the file is already
installed into debian/tmp, just not moved to the libreadline-dev package
directory yet.  In readline 7.0, the file would have to be copied from
the build directory instead since the upstream Makefile does not install
it.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.17.1-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libreadline-dev depends on:
ii  dpkg            1.19.1
ii  install-info    6.5.0.dfsg.1-3
ii  libncurses-dev  6.1+20180602-1
ii  libreadline7    7.0-5

libreadline-dev recommends no packages.

Versions of packages libreadline-dev suggests:
pn  readline-doc  <none>

-- no debconf information

diff -Nru readline-8.0~alpha1/debian/rules readline-8.0~alpha1/debian/rules
--- readline-8.0~alpha1/debian/rules	2018-06-04 19:14:24.000000000 +0200
+++ readline-8.0~alpha1/debian/rules	2018-06-16 09:07:47.000000000 +0200
@@ -245,7 +245,7 @@
 
 	: # move $(p_rld)
 	dh_installdirs -p$(p_rld) \
-		usr/lib/$(DEB_HOST_MULTIARCH)/ \
+		usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
 		usr/share/doc \
 		usr/share/info
 	ln -s /lib/$(DEB_HOST_MULTIARCH)/libhistory.so.$(soversion) \
@@ -254,6 +254,8 @@
 		$(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/libreadline.so
 	mv $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/lib{history,readline}.a \
 		$(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/.
+	mv $(d)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/readline.pc \
+		$(d_rld)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/.
 	mv $(d)/usr/include $(d_rld)/usr/.
 
 	: # remove HAVE_CONFIG_H from installed headers

Reply via email to