Subject: Re: pkg/36662: pkgtools/pkg_install's audit_packages appears to be platform-specific
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Stuart Shelton <srcshelton@gmail.com>
List: pkgsrc-bugs
Date: 07/23/2007 13:05:03
The following reply was made to PR pkg/36662; it has been noted by GNATS.
From: "Stuart Shelton" <srcshelton@gmail.com>
To: "Adrian Portelli" <adrianp@stindustries.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/36662: pkgtools/pkg_install's audit_packages appears to be platform-specific
Date: Mon, 23 Jul 2007 12:55:49 +0100
Hmm - somehow I missed that one ;)
Thanks for the patch - I'll check that now, but I'm sure it'll fix the
problem by the looks of it.
Cheers,
Stuart
On 23/07/07, Adrian Portelli <adrianp@stindustries.net> wrote:
> Joerg Sonnenberger wrote:
> > The following reply was made to PR pkg/36662; it has been noted by GNATS.
> >
> > From: Joerg Sonnenberger <joerg@britannica.bec.de>
> > To: Stuart Shelton <srcshelton@gmail.com>
> > Cc: gnats-bugs@netbsd.org, joerg@netbsd.org, gnats-admin@netbsd.org,
> > pkgsrc-bugs@netbsd.org
> > Subject: Re: pkg/36662: pkgtools/pkg_install's audit_packages appears to be platform-specific
> > Date: Mon, 23 Jul 2007 13:04:36 +0200
> >
> > On Mon, Jul 23, 2007 at 12:00:14PM +0100, Stuart Shelton wrote:
> > > 11:16:00.420162080 +0100
> > > +++ audit-packages/audit-packages.c 2007-07-23 11:49:27.043021280 +0100
> >
> > ... add a line to include <nbcompat.h> first please and report if that
> > works.
> >
> > Joerg
> >
>
> That's exactly what the updated patch does. Stuart, have you tested the
> updated patch I posted a few days ago on audit-packages.c v1.4 ?
>
> For the record the here's the patch
> [http://www.stindustries.net/NetBSD/stuff/pkg_install.diff]:
>
> Index: pkgtools/pkg_install/files/audit-packages/audit-packages.c
> ===================================================================
> RCS file:
> /cvsroot/pkgsrc/pkgtools/pkg_install/files/audit-packages/audit-packages.c,v
> retrieving revision 1.3
> diff -u -r1.3 audit-packages.c
> --- pkgtools/pkg_install/files/audit-packages/audit-packages.c 21 Jul
> 2007 10:21:04 -0000 1.3
> +++ pkgtools/pkg_install/files/audit-packages/audit-packages.c 21 Jul
> 2007 14:44:02 -0000
> @@ -35,6 +35,7 @@
> #include "config.h"
> #endif
>
> +#include <nbcompat.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <limits.h>
> @@ -44,7 +45,9 @@
> #ifdef HAVE_INTTYPES_H
> #include <stdint.h>
> #endif
> -#include <err.h>
> +#ifdef HAVE_SYS_CDEFS_H
> +#include <sys/cdefs.h>
> +#endif
> #include <string.h>
> #include <sys/types.h>
> #include <sys/stat.h>
>
> thanks,
>
> adrian.
>