Subject: Re: pkg/32001: bmake solaris10 bootstrap
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
List: pkgsrc-bugs
Date: 11/06/2005 09:31:02
The following reply was made to PR pkg/32001; it has been noted by GNATS.

From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
To: gnats-bugs@netbsd.org
Cc: dauphin@enst.fr
Subject: Re: pkg/32001: bmake solaris10 bootstrap
Date: Sun, 06 Nov 2005 18:30:21 +0900

 I agree Gilles's suggestion. Solaris 10 (and 11) does not have any
 lib*.a in /usr/lib.
 
 And this is a solution for build problem I experienced.
 
 pkgtools/pkg_install/files/lib/{automatic,dewey,var}.c need change,
 too.
 
 After this change, setting of an environmental variable
 LIBC=/lib/libc.so is useful to build bootstrap.
 
 Index: automatic.c
 ===================================================================
 RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/lib/automatic.c,v
 retrieving revision 1.1
 diff -u -r1.1 automatic.c
 --- automatic.c	5 Nov 2005 13:20:09 -0000	1.1
 +++ automatic.c	6 Nov 2005 09:09:35 -0000
 @@ -32,12 +32,20 @@
   * POSSIBILITY OF SUCH DAMAGE.
   */
  
 +#if HAVE_CONFIG_H
 +#include "config.h"
 +#endif
 +#include <nbcompat.h>
 +#if HAVE_SYS_CDEFS_H
  #include <sys/cdefs.h>
 +#endif
  #ifndef lint
  __RCSID("$NetBSD: automatic.c,v 1.1 2005/11/05 13:20:09 wiz Exp $");
  #endif
  
 +#if HAVE_ERR_H
  #include <err.h>
 +#endif
  #include <errno.h>
  #include <fcntl.h>
  #include <string.h>
 Index: dewey.c
 ===================================================================
 RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/lib/dewey.c,v
 retrieving revision 1.1
 diff -u -r1.1 dewey.c
 --- dewey.c	5 Nov 2005 13:20:09 -0000	1.1
 +++ dewey.c	6 Nov 2005 09:09:35 -0000
 @@ -20,9 +20,16 @@
   *
   */
  
 +#if HAVE_CONFIG_H
 +#include "config.h"
 +#endif
 +#include <nbcompat.h>
 +
  #include <assert.h>
  #include <ctype.h>
 +#if HAVE_ERR_H
  #include <err.h>
 +#endif
  #include <fnmatch.h>
  #include <inttypes.h>
  #include <string.h>
 Index: var.c
 ===================================================================
 RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/lib/var.c,v
 retrieving revision 1.1
 diff -u -r1.1 var.c
 --- var.c	5 Nov 2005 13:20:09 -0000	1.1
 +++ var.c	6 Nov 2005 09:09:35 -0000
 @@ -32,13 +32,21 @@
   * POSSIBILITY OF SUCH DAMAGE.
   */
  
 +#if HAVE_CONFIG_H
 +#include "config.h"
 +#endif
 +#include <nbcompat.h>
 +#if HAVE_SYS_CDEFS_H
  #include <sys/cdefs.h>
 +#endif
  #ifndef lint
  __RCSID("$NetBSD: var.c,v 1.1 2005/11/05 13:20:09 wiz Exp $");
  #endif
  
  #include <sys/stat.h>
 +#if HAVE_ERR_H
  #include <err.h>
 +#endif
  #include <errno.h>
  #include <stdio.h>
  
 
 -- 
 NAKAJI Hiroyuki