Um... it doesn't happen to me. cfengine-3.0.3 phnakarin$ sudo /tmp/cfengine-3.0.3/src/cf-promises -f /usr/local/share/doc/cfengine/unit_update.cf cfengine-3.0.3 phnakarin$ sudo /tmp/cfengine-3.0.3/src/cf-promises -V This comprises cf-promises core community version 3.0.3 - (C) Cfengine AS 2008- cfengine phnakarin$ uname -a Darwin macbook 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
Is a build error? having no libpcre included. cfengine-3.0.3 phnakarin$ otool -L tmp/cfengine-3.0.3/src/cf-agent | grep pcre /var/cfengine.nova/lib/libpcre.0.dylib (compatibility version 1.0.0, current version 1.1.0) Cheers, --Nakarin On Jan 13, 2010, at 4:24 AM, Jim Lawson wrote: > Hi help-cfengine, > > I am just getting started with Cf3. I was fiddling with some of the > examples using community 3.0.2. > > Since updating to 3.0.3 I have started seeing lots of messages like the > following: > > Validation: Scalar item in restart_class => { startcfexecd } in rvalue > is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) > > This seems an odd message, since the rvalue appears to match that > pattern just fine. > > In fact, the validation message appears on examples that ship with > 3.0.3, e.g. if I run cf-promises on unit_update.cf, I get the errors: > >> cf3:./unit_update.cf:60,44: Scalar item in restart_class => { >> start_exec } in rvalue is out of bounds (value should match pattern >> [a-zA-Z0-9_$()\[\].]+), near token 'start_exec"' >> cf3:./unit_update.cf:64,48: Scalar item in restart_class => { >> start_server } in rvalue is out of bounds (value should match pattern >> [a-zA-Z0-9_$()\[\].]+), near token 'start_server"' >> cf3:./unit_update.cf:89,45: Constraint lvalue logstring is not allowed >> in 'action' constraint body, near token ' -> Started the $(x) (success)"' >> Validation: Scalar item in handle => { update_policy } in rvalue is >> out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) >> Validation: Scalar item in restart_class => { start_exec } in rvalue >> is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) >> Validation: Scalar item in restart_class => { start_server } in rvalue >> is out of bounds (value should match pattern [a-zA-Z0-9_$()\[\].]+) > If I use restart_class => canonify("startcfexecd"), I can get past the > errors, but I still get the validation warnings, which will be a > nuisance if I run it on several machines. > > I am building under RHEL 5.4. Is anyone else seeing this? > > Jim > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine