Subject: Re: pkg/36662: pkgtools/pkg_install's audit_packages appears to be
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: Adrian Portelli <adrianp@stindustries.net>
List: pkgsrc-bugs
Date: 07/23/2007 11:30:04
The following reply was made to PR pkg/36662; it has been noted by GNATS.
From: Adrian Portelli <adrianp@stindustries.net>
To: gnats-bugs@NetBSD.org
Cc: srcshelton@gmail.com
Subject: Re: pkg/36662: pkgtools/pkg_install's audit_packages appears to be
platform-specific
Date: Mon, 23 Jul 2007 12:26:18 +0100
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.