Subject: pkg/13018: x11/kdelibs2 needs to depend on devel/pcre
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/23/2001 16:01:22
>Number:         13018
>Category:       pkg
>Synopsis:       x11/kdelibs2 needs to depend on devel/pcre
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 23 13:00:01 PDT 2001
>Originator:     Greg A. Woods
>Release:        pkgsrc-2001/05/21
Planix, Inc.; Toronto, Ontario; Canada

# ident /usr/pkgsrc/x11/kdelibs2/Makefile
     $NetBSD: Makefile,v 1.3 2001/05/01 09:46:37 skrll Exp $
System: NetBSD proven 1.5T NetBSD 1.5T (PROVEN) #6: Mon Apr 23 00:31:12 EDT 2001 woods@proven:/work/woods/NetBSD-src/sys/arch/i386/compile/PROVEN i386
Architecture: i386
Machine: i386


	here's yet another example of the folley of using shared
	libraries within pkgsrc....

	x11/kdelibs2 will search out and find it and try to use it if
	it happens to find it yet the pkgsrc module neither makes sure
	it is there or patches it to prevent the search in the first


	cd devel/pcre && make install
	cd x11/kdelibs2 && make install
	pkg_info kdelibs # and note there's no dependency on pcre
	ldd /usr/pkg/lib/ # and note it used libpcre & libpcreposix
	pkg_remove pcre # and note it succeeds without complaint

	(or alternately find a machine with a really old PCRE
	installed, such as 2.0.8, and then try to install x11/kdelibs2
	on it, which is how I actually discovered the problem)

	I don't know yet what actually uses though....


	this works, but may not be what's desired....

Index: Makefile
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/x11/kdelibs2/Makefile,v
retrieving revision 1.3
diff -c -c -r1.3 Makefile
*** Makefile	2001/05/01 09:46:37	1.3
--- Makefile	2001/05/22 16:06:21
*** 11,16 ****
--- 11,17 ----
  DEPENDS+=		qt2-libs>=2.2.4:../../x11/qt2-libs
  DEPENDS+=		libaudiofile-*:../../audio/libaudiofile
  DEPENDS+=		jade>=1.2.1:../../textproc/jade
+ DEPENDS+=		pcre>=3.4:../../devel/pcre
  .include "../../x11/kde2/Makefile.part2"