Subject: Re: Mixing pkg_comp and pkgsrc (Was: Re: pkg/30603 (USE_IMAKE
To: None <pkgsrc-users@netbsd.org>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: pkgsrc-users
Date: 01/07/2007 01:58:31
On Fri, 5 Jan 2007 10:12:46 +0100
Lars Nordlund <lars.nordlund@hem.utfors.se> wrote:
> => Required installed package gmake>=3.78: gmake-3.81 found
> => Required installed package pkg-config>=0.19: pkg-config-0.21 found
> => Required installed package gnutls>=1.3.4nb1: gnutls-1.4.5 found
> => Required installed package dbus>=0.91: dbus-1.0.2nb1 found
> => Required installed package libxml2>=2.6.23nb1: libxml2-2.6.27 found
> => Required installed package gtk2+>=2.8.17nb1: gtk2+-2.10.6 found
> make: "../../mk/wrapper/../../mk/buildlink3/../../mk/wrapper/../../mk/buildlink3/bsd.buildlink3.mk" line 305: warning: Couldn't read shell's output for "true Computing BUILDLINK_PREFIX.Xft2;                      /usr/sbin/pkg_info -K /usr/var/db/pkg -qp Xft2-2.1.7nb2 |  /usr/bin/sed  -e "s,^[^/]*,,;q""
> make: "../../mk/wrapper/../../mk/buildlink3/../../mk/wrapper/../../mk/buildlink3/bsd.buildlink3.mk" line 305: warning: Couldn't read shell's output for "true Computing BUILDLINK_PREFIX.Xft2;                      /usr/sbin/pkg_info -K /usr/var/db/pkg -qp Xft2-2.1.7nb2 |  /usr/bin/sed  -e "s,^[^/]*,,;q""
> ===> tools-message [gtk-gnutella-0.96.1nb1] ===> Overriding tools for gtk-gnutella-0.96.1nb1
> ===> extract-message [gtk-gnutella-0.96.1nb1] ===> Extracting for gtk-gnutella-0.96.1nb1
> ===> patch-message [gtk-gnutella-0.96.1nb1] ===> Patching for gtk-gnutella-0.96.1nb1
> => Applying pkgsrc patches for gtk-gnutella-0.96.1nb1
> ===> wrapper-message [gtk-gnutella-0.96.1nb1] ===> Creating toolchain wrappers for gtk-gnutella-0.96.1nb1
> sh: Syntax error: expecting "in"
> *** Error code 2
> 
> Stop.
> make: stopped in /home/lars/netbsd/pkgsrc-current/net/gtk-gnutella
> make: "../../mk/wrapper/../../mk/buildlink3/../../mk/wrapper/../../mk/buildlink3/bsd.buildlink3.mk" line 305: warning: Couldn't read shell's output for "true Computing BUILDLINK_PREFIX.Xft2;                      /usr/sbin/pkg_info -K /usr/var/db/pkg -qp Xft2-2.1.7nb2 |  /usr/bin/sed  -e "s,^[^/]*,,;q""


(Just for the archives)

Ok, this turned out to be because I had /var/db/pkg* symlinked over
to /usr/var/db/pkg*. This worked fine for a long time. But for some
reason, it failed in this situation. I do not know why. Now I have
stopped using symlinks and instead patched various pkg_XXX tools to
use /usr/var/db/pkg* directly.


Best regards,
	Lars Nordlund