Subject: Mixing pkg_comp and pkgsrc (Was: Re: pkg/30603 (USE_IMAKE packages
To: None <joerg@netbsd.org>
From: Lars Nordlund <lars.nordlund@hem.utfors.se>
List: pkgsrc-users
Date: 01/05/2007 10:12:46
On Wed, 27 Dec 2006 20:12:35 +0000 (UTC)
joerg@netbsd.org wrote:
> Synopsis: USE_IMAKE packages fail on xorg-only installs
>
> Responsible-Changed-From-To: jlam->joerg
> Responsible-Changed-By: joerg@netbsd.org
> Responsible-Changed-When: Wed, 27 Dec 2006 20:12:32 +0000
> Responsible-Changed-Why:
> xorg maintainer
>
>
> State-Changed-From-To: open->feedback
> State-Changed-By: joerg@netbsd.org
> State-Changed-When: Wed, 27 Dec 2006 20:12:32 +0000
> State-Changed-Why:
> works for me, still broken for you?
I am still working on checking this, but I am having strange problems
with my pkgsrc tree that I do not understand yet..
I have about 470 packages compiled with SMP-pkg_comp, and when trying to
compile from source after that, some of the packages' toolchain step
fails, because for some packages pkgsrc can not find the pkg database..
I think pkgsrc prefixes the path to the pkgdb dir with /usr for some
reason.
The only lead I have right now is this:
pkg_comp sets up the pkgsrc tree in /usr/pkgsrc inside the chroots. I am
however having my pkgsrc tree in ~/netbsd/pkgsrc-current. Because of
this I assume that some packages are just broken on my system if they
are built by pkg_comp. (I am not convinced fixing them is worth the
work, but at least identifying them is important for me)
Fun almost every day :-) ,
Lars Nordlund
And finally, the printout from my system:
===> lars@laphroaig:~/netbsd/pkgsrc-current/net/gtk-gnutella %make
=> Required installed package digest>=20010302: digest-20060826 found
===> check-vulnerable [gtk-gnutella-0.96.1nb1] ===> Checking for vulnerabilities in gtk-gnutella-0.96.1nb1
=> Checksum SHA1 OK for gtk-gnutella-0.96.1.tar.bz2
=> Checksum RMD160 OK for gtk-gnutella-0.96.1.tar.bz2
===> depends-message [gtk-gnutella-0.96.1nb1] ===> Installing dependencies for gtk-gnutella-0.96.1nb1
==========================================================================
The supported build options for gtk-gnutella are:
gtk1 gtk2
The currently selected options are:
gtk2
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:
PKG_OPTIONS.gtk-gnutella (not defined)
==========================================================================
=> 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""
*** Error code 1
Stop.
make: stopped in /home/lars/netbsd/pkgsrc-current/net/gtk-gnutella
zsh: exit 1 make