Subject: Re: security/pam-ldap is broken??
To: None <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 12/02/2005 11:32:19
On Fri, 2 Dec 2005 wrote:

> "../../mk/wrapper/../../mk/buildlink3/../../mk/wrapper/../../mk/buildlink3/"
> line 325: warning: Couldn't read shell's output for "/opt/pkg/sbin/pkg_info
> -K . -qp  | /opt/pkg/bin/nbsed  -e "s,^[^/]*,,;q""

Notice that the -qp is not followed by the needed argument. The pkgsrc 
framework should not run the command if the variable is empty.

(I copied that verbatim from an earlier email I wrote.)

I believe this is caused because pkgsrc detected that you have a package 
provided file but then no package was actually providing it.

This is somewhere in mk/ or 
databases/openldap/ I believe.

This has happened to me several times, because I use Linux systems where 
everyone component is provided my my pkgsrc ... but I didn't provide a file for my pkgsrc's glibc for example.

I added this patch just to give me some diagnostics:

Index: mk/buildlink3/
RCS file: /cvsroot/pkgsrc/mk/buildlink3/,v
retrieving revision 1.171
diff -b -u -r1.171
--- mk/buildlink3/	1 Jun 2005 18:03:06 -0000	1.171
+++ mk/buildlink3/	2 Dec 2005 19:29:28 -0000
@@ -322,7 +322,7 @@
  .    else
  .      if empty(BUILDLINK_PKGNAME.${_pkg_}:M*not_found)
  BUILDLINK_PREFIX.${_pkg_}!=	\
-	${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED}  -e "s,^[^/]*,,;q"
+	${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} | ${SED}  -e "s,^[^/]*,,;q" -e "s,xxx"${_pkg_}",jcr,"
  .      else
  BUILDLINK_PREFIX.${_pkg_}=	BUILDLINK_PREFIX.${_pkg_}_not_found
  .      endif

Then you will get same error message but now it will show the "xxx" and 
the package name with the problem and my initials. (This patch is no fix. 
It just helps to find missing file. It has been a while 
since I have looked at this.)

Let us know what you find.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links