Subject: README - pkgsrc and LIB_DEPENDS
To: None <current-users@NetBSD.ORG>
From: Alistair Crooks <>
List: current-users
Date: 01/30/1998 06:25:22
This is for all those brave users of packages out there.

I've just modified our version of so that it will
automatically escape any dots in a regular expression it finds in
the LIB_DEPENDS variable, if any escaping has not already been
made. Now, shared object dependencies can be specified without the
preceding backslashes. However, if they are already there, no new
ones will be added, so that backwards compatibility is assured,
should your copy of the pkgsrc tree be out of sync with your copy of

With these patches in place, I get the following output:

root@pumpy:/u/cvs/pkgsrc/audio/timidity(1618)# make
>> Checksum OK for
>> Checksum OK for timidity-0.2i.tar.gz.
===>  Extracting for timidity-0.2i
===>  timidity-0.2i depends on executable: unzip - /usr/pkg/bin/unzip found
===>  timidity-0.2i depends on shared library: ncurses.3.4 - /usr/pkg/lib/ found
===>  timidity-0.2i depends on shared library: nosuchlib.4.5 - not found
===>  Verifying install for nosuchlib.4.5 in /u/cvs/pkgsrc/devel/ncurses
^Croot@pumpy:/u/cvs/pkgsrc/audio/timidity(1619)# grep LIB_DEPENDS Makefile
LIB_DEPENDS=    ncurses.3.4:${PORTSDIR}/devel/ncurses
LIB_DEPENDS+=   nosuchlib.4.5:${PORTSDIR}/devel/ncurses


root@pumpy:/u/cvs/pkgsrc/audio/rplay(1623)# grep LIB_DEP Makefile
LIB_DEPENDS=    gsm\\.1\\.0:${PORTSDIR}/audio/gsm
root@pumpy:/u/cvs/pkgsrc/audio/rplay(1624)# make
>> Checksum OK for rplay-3.2.0b6.tar.gz.
===>  Extracting for rplay-3.2.0b6
===>  rplay-3.2.0b6 depends on file: /usr/pkg/bin/install-info - found
===>  rplay-3.2.0b6 depends on shared library: gsm.1.0 - /usr/pkg/lib/ found

The name of any shared object which matches is also printed out. In
general, I believe that the output is a lot neater and clearer.