opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-cfengine@cfengine.org 14 July 2006 • 6:29PM -0400

RE: Package installation of RPMs - Too many arguments in embedded script
by brett.dellegrazie

REPLY TO AUTHOR
 
REPLY TO GROUP




Dear Steve,

Thanks for that.  It does appear that it's cfengine imposing the limit
way before
it gets anywhere near yum. Looking at the source the issue is in popen.c
where
it imposes the limit of CF_MAXSHELLARGS (which is set to 30).  I can see
why
this is done (to limit memory/stack usage) but it does break the package

mechanism rather thoroughly.

Best Regards,

Brett

-----Original Message-----
From: Steve Kemp [mailto:steve@stev...]
Sent: 14 July 2006 11:18
To: Brett Delle Grazie
Cc: help-cfengine@cfen...
Subject: Re: Package installation of RPMs - Too many arguments in
embedded script

On Fri, Jul 14, 2006 at 10:56:40AM +0100,
brett.dellegrazie@uk.l... wrote:

>    I'm using Yum so my rpm install command is:
>    
>    RPMInstallCommand = ( "/usr/bin/yum -y install %s" )
>    
>    However I'm getting the messages (in verbose mode):

>    ... long list of packages ...
>    package install: cfengine:build-test: Too many arguments in
embedded
>    script

>    Does anyone have a work around for this already (i.e. probably
using
>    shellcommands)?

  Perhaps something like:

    /bin/echo %s | xargs --max-args 20 /usr/bin/yum -y install \{\} \;

  That would split up the package installation to only attempt 20 at  a
time.  Of course then you might have dependency problems if the  first
20 packages depend on something to be installed in the next  20 ..

Steve
--

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfen...
http://cfengine.org/mailman/listinfo/help-cfengine

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.