Subject: Re: /usr/bin/sudo /usr/bin/xargs: environment is too large for exec
To: Johnny C. Lam <jlam@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/22/2004 13:15:57
On Sun, 21 Mar 2004, Johnny C. Lam wrote:

> > ===> Installing for xfce4-extras-4.0.4nb2
> > ===> Becoming root@puget.reedmedia.net to install xfce4-extras.
> > /usr/bin/sudo /usr/bin/xargs: environment is too large for exec
> > /usr/bin/xargs: environment is too large for exec
> > /usr/bin/xargs: environment is too large for exec
> > ===> Registering installation for xfce4-extras-4.0.4nb2
> > /usr/bin/xargs: environment is too large for exec
> > reed@puget:/usr/pkgsrc/meta-pkgs/xfce4-extras$
>
> Please let me know if the attached patch helps.  Instead of saving all
> of the buildlink3 variables into the command-line environment, it
> creates a Makefile fragment that is included within bsd.buildlink3.mk
> that contains all of the buildlink3 variable definitions that we want
> to pass to make(1) invocations on the same package Makefile.

I just tried it. So instead of taking 15+ minutes for xfce4-extras to
install it now takes 3 minutes.

And I don't get those xargs errors.

Now I see:

===> Installing for xfce4-extras-4.0.4nb2
===> Becoming root@puget.reedmedia.net to install xfce4-extras.
/usr/bin/sudo => phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
=> phase: install
===> Registering installation for xfce4-extras-4.0.4nb2
=> phase: install
=> phase: install
xfce4-extras-4.0.4nb2 requires installed package MesaLib-6.0
...

Thank you!

   Jeremy C. Reed
   http://www.reedmedia.net/