[Bug 232450] Re: Test for installed packages in cfengine is broken

2013-03-17 Thread Thomas Hotz
** Changed in: cfengine2 (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/232450

Title:
  Test for installed packages in cfengine is broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cfengine2/+bug/232450/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-11-13 Thread John Edwards
Just a quick note to say that the automatic package sync has built v2.2.8 for 
jaunty:
https://launchpad.net/ubuntu/jaunty/i386/cfengine2/2.2.8-1

This should fix this and bug #278092:
https://bugs.launchpad.net/ubuntu/+source/cfengine2/+bug/278092

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-09-23 Thread Magnus Hedemark
If the package maintainer would simply pull v2.2.8 from upstream, life
would be much easier in Ubuntuland for all of us cfengine users.

And remember, one cfengine user usually equates to dozens or hundreds of
computers, so this bug is impacting quite a lot of systems.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 232450] Re: Test for installed packages in cfengine is broken

2008-08-15 Thread Millard73

On Aug 15, 2008, at 4:41 AM, Tom Lippincott wrote:

> its a shame too, I know cfengine is used by at least a few major
> financial institutions: it would be a good thing for Ubuntu to  
> support,
> if its serious about the enterprise market.
>

It's definitely used all over the place, financial institutions,  
national labs (e.g. ORNL), lots of universities (e.g. us). I do  
understand though, that this might have to go into backports if it's  
not a security issue. I'll check when I get a chance if this has been  
requested yet.

Markus

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-08-15 Thread Tom Lippincott
its a shame too, I know cfengine is used by at least a few major
financial institutions: it would be a good thing for Ubuntu to support,
if its serious about the enterprise market.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-08-15 Thread rw
This bug hasn't even been triaged..I don't think that anyone in the
"official channels" is even taking note, after all, the package is in
"universe" only :(

Maybe the best thing to do is backporting it, and offering the backport
for the hardy-backports repository.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-08-14 Thread Mike Javorski
Add me to the list of those bitten by this on Hardy. I was about to try
backporting 2.2.7 from Intrepid, but figured I would give the official
channels a couple days to sort it out first.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-08-13 Thread Millard73
Any chance that the version of cfengine2 will be updated for Hardy? We
are being bitten by this bug as well.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-07-30 Thread Tom Lippincott
This is supposed to be fixed in all versions>2.2.3-1, and the latest
stable release for cfengine is 2.2.7: can this package be updated?

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-06-06 Thread rw
The issue is discussed in https://cfengine.org/pipermail/help-
cfengine/2008-February/002960.html

The conclusion apparently was/is, that Debian changed the command to execute. 
Quoting from
the linked post:

START QUOTE

Here's an excerpt from the Debian Etch  
(backports) patch [2] against cfengine:

@@ -753,7 +753,7 @@
 }

  /* check what version is installed on the system (if any) */
-snprintf (VBUFF, CF_BUFSIZE, "/usr/bin/apt-cache policy %s", package);
+snprintf (VBUFF, CF_BUFSIZE, "LANG=C /usr/bin/apt-cache policy %s",  
package);

  if ((pp = cfpopen (VBUFF, "r")) == NULL)
 {

So, what has been done here is to change the command line from  
something simple that popen can handle, to having a environmental var  
defined, but the author of this distro patch has *not* changed the  
following cfpopen line to cfpopen_sh to match his change directly above.

END QUOTE

S, to fix the problem, apparently the cfpopen needs to be changed to
a cfpopen_sh, such that the shell is invoked to handle the LANG=C

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-06-06 Thread rw
No, the code is doing something quite stupid, as I found out running it under 
strace
(strace -f -o cfengine.log cfagent --verbose --no-splay). You can see the 
following in the log:

28715 execve("LANG=C", ["LANG=C", "/usr/bin/apt-cache", "policy", "arpwatch"], 
[/* 17 vars */] 
28639 _llseek(3, 0,  
28715 <... execve resumed> )= -1 ENOENT (No such file or directory)
28639 <... _llseek resumed> 0xbfaabcd0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
28715 write(1, "cfengine:hspc05: Couldn\'t run LA"..., 37 

That means, rather than executing "/usr/bin/apt-cache", it executes "LANG=C" 
with the
argv[] array ["LANG=C", "/usr/bin/apt-cache", "policy", "arpwatch"]. Something 
is 
VERY WRONG with that code.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-06-05 Thread LuisMondesi
Well, not true:

debian::
# if version is less than 4.2.4, then upgrade
ntp pkgmgr=${pkg_mgr} version=4.2.4 cmp=lt elsedefine=needs_ntp

...

cfagent -qv

Package: ntp
Something impossible happened... ('grep' exited abnormally).

And the C code is correct:

while (!feof (pp))
   {
   *VBUFF = '\0';
   ReadLine (VBUFF, CF_BUFSIZE, pp);
   if (*VBUFF != '\0')
  {
  if (sscanf (VBUFF, "  Installed: %s", tmpBUFF) > 0)
 {
 AppendItem (&evrlist, tmpBUFF, "");
 }
  }
   }

if (cfpclose (pp) != 0)
   {
   Verbose ("Something impossible happened... ('grep' exited abnormally).\n");
   DeleteItemList (evrlist);
   return 0;
   }

That's on Hardy... Perhaps I'm not doing something correctly, but it
works fine for other OSes (CentOS).

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-06-05 Thread LuisMondesi
>From those emails it looks like the debian package requires the
"version" portion... Ouch.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 232450] Re: Test for installed packages in cfengine is broken

2008-06-05 Thread LuisMondesi
I was bitten by this same bug. I'm working to see why this happens.

-- 
Test for installed packages in cfengine is broken
https://bugs.launchpad.net/bugs/232450
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs