[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Playing with packages w/patch
From: |
Mark . Burgess |
Subject: |
Re: Playing with packages w/patch |
Date: |
Thu, 18 Sep 2003 14:24:36 +0200 (MEST) |
Is this patch specific to solaris?
M
On 5 Sep, Armin Wolfermann wrote:
> Hi,
>
> I decided to try the new packages feature today and found it very
> promising. To make it work on my Solaris box, I had to apply the
> following patch (%% for snprintf, and quotes for OpenPKG's rpm):
>
> --- package.c.save Fri Sep 5 15:51:11 2003
> +++ package.c Fri Sep 5 15:51:22 2003
> @@ -75,7 +75,7 @@
> enum cmpsense result;
> int match = 0;
>
> -snprintf(VBUFF,bufsize,"/bin/rpm -q --queryformat
> %{EPOCH}:%{VERSION}-%{RELEASE}\\n %s", package);
> +snprintf(VBUFF,bufsize,"/bin/rpm -q --queryformat
> '%%{EPOCH}:%%{VERSION}-%%{RELEASE}\\n' %s", package);
>
> if ((pp = cfpopen(VBUFF, "r")) == NULL)
> {
>
> I would also suggest to make the path to rpm configurable, as it's not
> always under /bin (OpenPKG uses it's own hierarchy). Something like
>
> DefaultPkgMgrPath = ( /pkg/bin/rpm )
>
> maybe?
>
> Regards,
> Armin Wolfermann
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~