NetBSD Problem Report #45491

From www@NetBSD.org  Tue Oct 18 17:04:18 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id EB6D363D4E2
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 18 Oct 2011 17:04:17 +0000 (UTC)
Message-Id: <20111018170416.EDDD663C592@www.NetBSD.org>
Date: Tue, 18 Oct 2011 17:04:16 +0000 (UTC)
From: ano@bestmx.ru
Reply-To: ano@bestmx.ru
To: gnats-bugs@NetBSD.org
Subject: pkgsrc does not bootstrap under OpenIndiana
X-Send-Pr-Version: www-1.0

>Number:         45491
>Category:       pkg
>Synopsis:       pkgsrc does not bootstrap under OpenIndiana
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 18 17:05:00 +0000 2011
>Closed-Date:    Sat Dec 27 03:13:35 +0000 2014
>Last-Modified:  Sat Dec 27 03:13:35 +0000 2014
>Originator:     Andrey N. Oktyabrski
>Release:        OpenIndiana 151a
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a i86pc i386 i86pc Solaris
$ isainfo 
amd64 i386
$ which gcc
/usr/bin/gcc
$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.6/lib/gcc/i386-pc-solaris2.11/4.6.1/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.6.1/configure --prefix=/usr/gcc/4.6 --libdir=/usr/gcc/4.6/lib --libexecdir=/usr/gcc/4.6/lib --mandir=/usr/gcc/4.6/share/man --infodir=/usr/gcc/4.6/info --with-build-time-tools=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/opt/dtbld/bin/ld-wrapper --without-gnu-ld --enable-languages=c,c++,fortran,objc --enable-shared --disable-static --enable-decimal-float --with-gmp=/usr/gnu --with-mpfr=/usr/gnu --with-mpc=/usr/gnu --with-libiconv-prefix=/usr/gnu -enable-nls
Thread model: posix
gcc version 4.6.1 (GCC) 

>Description:
Here is the root of evil:
(/usr/pkgsrc/archivers/libarchive/files/libarchive/archive_write_disk.c)
2264         /* Try setting the flags as given. */
2265         if (ioctl(myfd, EXT2_IOC_GETFLAGS, &oldflags) >= 0) {
2266                 newflags = (oldflags & ~clear) | set;
2267                 if (ioctl(myfd, EXT2_IOC_SETFLAGS, &newflags) >= 0)
2268                         goto cleanup;
2269                 if (errno != EPERM)
2270                         goto fail;
2271         }
2272         /* If we couldn't set all the flags, try again with a subset. */
2273         if (ioctl(myfd, EXT2_IOC_GETFLAGS, &oldflags) >= 0) {
2274                 newflags &= ~sf_mask;
2275                 oldflags &= sf_mask;
2276                 newflags |= oldflags;
2277                 if (ioctl(myfd, EXT2_IOC_SETFLAGS, &newflags) >= 0)
2278                         goto cleanup;
2279         }
2280         /* We couldn't set the flags, so report the failure. */

>How-To-Repeat:
$ pfexec su -
# cd /usr/pkgsrc/bootstrap
# ./bootstrap
...
/usr/pkgsrc/bootstrap/work/bin/pdksh ./libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I.    -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include  -O -I/usr/include -c -o libarchive/archive_write_disk.lo libarchive/archive_write_disk.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=022 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include -O -I/usr/include -c libarchive/archive_write_disk.c -o libarchive/archive_write_disk.o
libarchive/archive_write_disk.c: In function 'set_fflags_platform':
libarchive/archive_write_disk.c:2265:18: error: expected expression before 'long'
libarchive/archive_write_disk.c:2267:19: error: expected expression before 'long'
libarchive/archive_write_disk.c:2273:18: error: expected expression before 'long'
libarchive/archive_write_disk.c:2277:19: error: expected expression before 'long'
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
===> exited with status 1
aborted.

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Wed, 19 Oct 2011 08:32:52 +0000
Responsible-Changed-Why:
Over to libarchive maintainer.


From: "Andrey N. Oktyabrski" <ano@bestmx.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 19 Oct 2011 12:45:01 +0400

 This is a multi-part message in MIME format.
 --------------020106010806010102040103
 Content-Type: text/plain; charset=KOI8-R; format=flowed
 Content-Transfer-Encoding: 7bit



 --------------020106010806010102040103
 Content-Type: text/plain;
  name="config.h"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="config.h"

 /* config.h.  Generated from config.h.in by configure.  */
 /* config.h.in.  Generated from configure.ac by autoheader.  */

 /* MD5 via ARCHIVE_HASH_MD5_LIBC supported. */
 #define ARCHIVE_HASH_MD5_LIBC 1

 /* MD5 via ARCHIVE_HASH_MD5_LIBSYSTEM supported. */
 /* #undef ARCHIVE_HASH_MD5_LIBSYSTEM */

 /* MD5 via ARCHIVE_HASH_MD5_OPENSSL supported. */
 /* #undef ARCHIVE_HASH_MD5_OPENSSL */

 /* RMD160 via ARCHIVE_HASH_RMD160_LIBC supported. */
 /* #undef ARCHIVE_HASH_RMD160_LIBC */

 /* RMD160 via ARCHIVE_HASH_RMD160_OPENSSL supported. */
 #define ARCHIVE_HASH_RMD160_OPENSSL 1

 /* SHA1 via ARCHIVE_HASH_SHA1_LIBC supported. */
 #define ARCHIVE_HASH_SHA1_LIBC 1

 /* SHA1 via ARCHIVE_HASH_SHA1_LIBSYSTEM supported. */
 /* #undef ARCHIVE_HASH_SHA1_LIBSYSTEM */

 /* SHA1 via ARCHIVE_HASH_SHA1_OPENSSL supported. */
 /* #undef ARCHIVE_HASH_SHA1_OPENSSL */

 /* SHA256 via ARCHIVE_HASH_SHA256_LIBC supported. */
 #define ARCHIVE_HASH_SHA256_LIBC 1

 /* SHA256 via ARCHIVE_HASH_SHA256_LIBC2 supported. */
 /* #undef ARCHIVE_HASH_SHA256_LIBC2 */

 /* SHA256 via ARCHIVE_HASH_SHA256_LIBC3 supported. */
 /* #undef ARCHIVE_HASH_SHA256_LIBC3 */

 /* SHA256 via ARCHIVE_HASH_SHA256_LIBSYSTEM supported. */
 /* #undef ARCHIVE_HASH_SHA256_LIBSYSTEM */

 /* SHA256 via ARCHIVE_HASH_SHA256_OPENSSL supported. */
 /* #undef ARCHIVE_HASH_SHA256_OPENSSL */

 /* SHA384 via ARCHIVE_HASH_SHA384_LIBC supported. */
 #define ARCHIVE_HASH_SHA384_LIBC 1

 /* SHA384 via ARCHIVE_HASH_SHA384_LIBC2 supported. */
 /* #undef ARCHIVE_HASH_SHA384_LIBC2 */

 /* SHA384 via ARCHIVE_HASH_SHA384_LIBC3 supported. */
 /* #undef ARCHIVE_HASH_SHA384_LIBC3 */

 /* SHA384 via ARCHIVE_HASH_SHA384_LIBSYSTEM supported. */
 /* #undef ARCHIVE_HASH_SHA384_LIBSYSTEM */

 /* SHA384 via ARCHIVE_HASH_SHA384_OPENSSL supported. */
 /* #undef ARCHIVE_HASH_SHA384_OPENSSL */

 /* SHA512 via ARCHIVE_HASH_SHA512_LIBC supported. */
 #define ARCHIVE_HASH_SHA512_LIBC 1

 /* SHA512 via ARCHIVE_HASH_SHA512_LIBC2 supported. */
 /* #undef ARCHIVE_HASH_SHA512_LIBC2 */

 /* SHA512 via ARCHIVE_HASH_SHA512_LIBC3 supported. */
 /* #undef ARCHIVE_HASH_SHA512_LIBC3 */

 /* SHA512 via ARCHIVE_HASH_SHA512_LIBSYSTEM supported. */
 /* #undef ARCHIVE_HASH_SHA512_LIBSYSTEM */

 /* SHA512 via ARCHIVE_HASH_SHA512_OPENSSL supported. */
 /* #undef ARCHIVE_HASH_SHA512_OPENSSL */

 /* Version number of bsdcpio */
 #define BSDCPIO_VERSION_STRING "2.8.4"

 /* Version number of bsdtar */
 #define BSDTAR_VERSION_STRING "2.8.4"

 /* Define to 1 if you have the `acl_create_entry' function. */
 /* #undef HAVE_ACL_CREATE_ENTRY */

 /* Define to 1 if you have the `acl_get_link' function. */
 /* #undef HAVE_ACL_GET_LINK */

 /* Define to 1 if you have the `acl_get_link_np' function. */
 /* #undef HAVE_ACL_GET_LINK_NP */

 /* Define to 1 if you have the `acl_get_perm' function. */
 /* #undef HAVE_ACL_GET_PERM */

 /* Define to 1 if you have the `acl_get_perm_np' function. */
 /* #undef HAVE_ACL_GET_PERM_NP */

 /* Define to 1 if you have the `acl_init' function. */
 /* #undef HAVE_ACL_INIT */

 /* Define to 1 if you have the <acl/libacl.h> header file. */
 /* #undef HAVE_ACL_LIBACL_H */

 /* Define to 1 if the system has the type `acl_permset_t'. */
 /* #undef HAVE_ACL_PERMSET_T */

 /* Define to 1 if you have the `acl_set_fd' function. */
 /* #undef HAVE_ACL_SET_FD */

 /* Define to 1 if you have the `acl_set_fd_np' function. */
 /* #undef HAVE_ACL_SET_FD_NP */

 /* Define to 1 if you have the `acl_set_file' function. */
 /* #undef HAVE_ACL_SET_FILE */

 /* True for systems with POSIX ACL support */
 /* #undef HAVE_ACL_USER */

 /* Define to 1 if you have the <attr/xattr.h> header file. */
 /* #undef HAVE_ATTR_XATTR_H */

 /* Define to 1 if you have the <bzlib.h> header file. */
 #define HAVE_BZLIB_H 1

 /* Define to 1 if you have the `chflags' function. */
 /* #undef HAVE_CHFLAGS */

 /* Define to 1 if you have the `chown' function. */
 #define HAVE_CHOWN 1

 /* Define to 1 if you have the `chroot' function. */
 #define HAVE_CHROOT 1

 /* Define to 1 if you have the <ctype.h> header file. */
 #define HAVE_CTYPE_H 1

 /* Define to 1 if you have the `cygwin_conv_path' function. */
 /* #undef HAVE_CYGWIN_CONV_PATH */

 /* Define to 1 if you have the declaration of `EXTATTR_NAMESPACE_USER', and to
    0 if you don't. */
 #define HAVE_DECL_EXTATTR_NAMESPACE_USER 0

 /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
    don't. */
 #define HAVE_DECL_INT64_MAX 1

 /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
    don't. */
 #define HAVE_DECL_INT64_MIN 1

 /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
    don't. */
 #define HAVE_DECL_SIZE_MAX 1

 /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
    don't. */
 #define HAVE_DECL_SSIZE_MAX 0

 /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
    don't. */
 #define HAVE_DECL_STRERROR_R 1

 /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
    don't. */
 #define HAVE_DECL_UINT32_MAX 1

 /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
    don't. */
 #define HAVE_DECL_UINT64_MAX 1

 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
    */
 #define HAVE_DIRENT_H 1

 /* Define to 1 if you have the <dlfcn.h> header file. */
 #define HAVE_DLFCN_H 1

 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
 #define HAVE_DOPRNT 1

 /* Define to 1 if nl_langinfo supports D_MD_ORDER */
 /* #undef HAVE_D_MD_ORDER */

 /* A possible errno value for invalid file format errors */
 /* #undef HAVE_EFTYPE */

 /* A possible errno value for invalid file format errors */
 #define HAVE_EILSEQ 1

 /* Define to 1 if you have the <errno.h> header file. */
 #define HAVE_ERRNO_H 1

 /* Define to 1 if you have the <expat.h> header file. */
 /* #undef HAVE_EXPAT_H */

 /* Define to 1 if you have the <ext2fs/ext2_fs.h> header file. */
 #define HAVE_EXT2FS_EXT2_FS_H 1

 /* Define to 1 if you have the `extattr_get_file' function. */
 /* #undef HAVE_EXTATTR_GET_FILE */

 /* Define to 1 if you have the `extattr_list_file' function. */
 /* #undef HAVE_EXTATTR_LIST_FILE */

 /* Define to 1 if you have the `extattr_set_fd' function. */
 /* #undef HAVE_EXTATTR_SET_FD */

 /* Define to 1 if you have the `extattr_set_file' function. */
 /* #undef HAVE_EXTATTR_SET_FILE */

 /* Define to 1 if you have the `fchdir' function. */
 #define HAVE_FCHDIR 1

 /* Define to 1 if you have the `fchflags' function. */
 /* #undef HAVE_FCHFLAGS */

 /* Define to 1 if you have the `fchmod' function. */
 #define HAVE_FCHMOD 1

 /* Define to 1 if you have the `fchown' function. */
 #define HAVE_FCHOWN 1

 /* Define to 1 if you have the `fcntl' function. */
 #define HAVE_FCNTL 1

 /* Define to 1 if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1

 /* Define to 1 if you have the `fork' function. */
 #define HAVE_FORK 1

 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #define HAVE_FSEEKO 1

 /* Define to 1 if you have the `fsetxattr' function. */
 /* #undef HAVE_FSETXATTR */

 /* Define to 1 if you have the `fstat' function. */
 #define HAVE_FSTAT 1

 /* Define to 1 if you have the `ftruncate' function. */
 #define HAVE_FTRUNCATE 1

 /* Define to 1 if you have the `futimens' function. */
 #define HAVE_FUTIMENS 1

 /* Define to 1 if you have the `futimes' function. */
 /* #undef HAVE_FUTIMES */

 /* Define to 1 if you have the `geteuid' function. */
 #define HAVE_GETEUID 1

 /* Define to 1 if you have the `getgrgid_r' function. */
 #define HAVE_GETGRGID_R 1

 /* Define to 1 if you have the `getgrnam_r' function. */
 #define HAVE_GETGRNAM_R 1

 /* Define to 1 if you have the `getpid' function. */
 #define HAVE_GETPID 1

 /* Define to 1 if you have the `getpwnam_r' function. */
 #define HAVE_GETPWNAM_R 1

 /* Define to 1 if you have the `getpwuid_r' function. */
 #define HAVE_GETPWUID_R 1

 /* Define to 1 if you have the `getxattr' function. */
 /* #undef HAVE_GETXATTR */

 /* Define to 1 if you have the <grp.h> header file. */
 #define HAVE_GRP_H 1

 /* Define to 1 if the system has the type `intmax_t'. */
 #define HAVE_INTMAX_T 1

 /* Define to 1 if you have the <inttypes.h> header file. */
 #define HAVE_INTTYPES_H 1

 /* Define to 1 if you have the <io.h> header file. */
 /* #undef HAVE_IO_H */

 /* Define to 1 if you have the <langinfo.h> header file. */
 #define HAVE_LANGINFO_H 1

 /* Define to 1 if you have the `lchflags' function. */
 /* #undef HAVE_LCHFLAGS */

 /* Define to 1 if you have the `lchmod' function. */
 #define HAVE_LCHMOD 1

 /* Define to 1 if you have the `lchown' function. */
 #define HAVE_LCHOWN 1

 /* Define to 1 if you have the `lgetxattr' function. */
 /* #undef HAVE_LGETXATTR */

 /* Define to 1 if you have the `acl' library (-lacl). */
 /* #undef HAVE_LIBACL */

 /* Define to 1 if you have the `attr' library (-lattr). */
 /* #undef HAVE_LIBATTR */

 /* Define to 1 if you have the `bz2' library (-lbz2). */
 #define HAVE_LIBBZ2 1

 /* Define to 1 if you have the `expat' library (-lexpat). */
 /* #undef HAVE_LIBEXPAT */

 /* Define to 1 if you have the `lzma' library (-llzma). */
 #define HAVE_LIBLZMA 1

 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
 /* #undef HAVE_LIBLZMADEC */

 /* Define to 1 if you have the `xml2' library (-lxml2). */
 /* #undef HAVE_LIBXML2 */

 /* Define to 1 if you have the <libxml/xmlreader.h> header file. */
 /* #undef HAVE_LIBXML_XMLREADER_H */

 /* Define to 1 if you have the `z' library (-lz). */
 #define HAVE_LIBZ 1

 /* Define to 1 if you have the <limits.h> header file. */
 #define HAVE_LIMITS_H 1

 /* Define to 1 if you have the `link' function. */
 #define HAVE_LINK 1

 /* Define to 1 if you have the <linux/fs.h> header file. */
 /* #undef HAVE_LINUX_FS_H */

 /* Define to 1 if you have the `listxattr' function. */
 /* #undef HAVE_LISTXATTR */

 /* Define to 1 if you have the `llistxattr' function. */
 /* #undef HAVE_LLISTXATTR */

 /* Define to 1 if you have the <locale.h> header file. */
 #define HAVE_LOCALE_H 1

 /* Define to 1 if the system has the type `long long int'. */
 #define HAVE_LONG_LONG_INT 1

 /* Define to 1 if you have the `lsetxattr' function. */
 /* #undef HAVE_LSETXATTR */

 /* Define to 1 if you have the `lstat' function. */
 #define HAVE_LSTAT 1

 /* Define to 1 if `lstat' has the bug that it succeeds when given the
    zero-length file name argument. */
 /* #undef HAVE_LSTAT_EMPTY_STRING_BUG */

 /* Define to 1 if you have the `lutimes' function. */
 #define HAVE_LUTIMES 1

 /* Define to 1 if you have the <lzmadec.h> header file. */
 /* #undef HAVE_LZMADEC_H */

 /* Define to 1 if you have the <lzma.h> header file. */
 #define HAVE_LZMA_H 1

 /* Define to 1 if you have the `memmove' function. */
 #define HAVE_MEMMOVE 1

 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1

 /* Define to 1 if you have the `memset' function. */
 #define HAVE_MEMSET 1

 /* Define to 1 if you have the `mkdir' function. */
 #define HAVE_MKDIR 1

 /* Define to 1 if you have the `mkfifo' function. */
 #define HAVE_MKFIFO 1

 /* Define to 1 if you have the `mknod' function. */
 #define HAVE_MKNOD 1

 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
 /* #undef HAVE_NDIR_H */

 /* Define to 1 if you have the `nl_langinfo' function. */
 #define HAVE_NL_LANGINFO 1

 /* Define to 1 if you have the <paths.h> header file. */
 #define HAVE_PATHS_H 1

 /* Define to 1 if you have the `pipe' function. */
 #define HAVE_PIPE 1

 /* Define to 1 if you have the `poll' function. */
 #define HAVE_POLL 1

 /* Define to 1 if you have the <poll.h> header file. */
 #define HAVE_POLL_H 1

 /* Define to 1 if you have the <pwd.h> header file. */
 #define HAVE_PWD_H 1

 /* Define to 1 if you have the `readlink' function. */
 #define HAVE_READLINK 1

 /* Define to 1 if you have the <regex.h> header file. */
 #define HAVE_REGEX_H 1

 /* Define to 1 if you have the `select' function. */
 #define HAVE_SELECT 1

 /* Define to 1 if you have the `setenv' function. */
 #define HAVE_SETENV 1

 /* Define to 1 if you have the `setlocale' function. */
 #define HAVE_SETLOCALE 1

 /* Define to 1 if you have the `sigaction' function. */
 #define HAVE_SIGACTION 1

 /* Define to 1 if you have the <signal.h> header file. */
 #define HAVE_SIGNAL_H 1

 /* Define to 1 if `stat' has the bug that it succeeds when given the
    zero-length file name argument. */
 /* #undef HAVE_STAT_EMPTY_STRING_BUG */

 /* Define to 1 if you have the <stdarg.h> header file. */
 #define HAVE_STDARG_H 1

 /* Define to 1 if you have the <stdint.h> header file. */
 #define HAVE_STDINT_H 1

 /* Define to 1 if you have the <stdlib.h> header file. */
 #define HAVE_STDLIB_H 1

 /* Define to 1 if you have the `strchr' function. */
 #define HAVE_STRCHR 1

 /* Define to 1 if you have the `strdup' function. */
 #define HAVE_STRDUP 1

 /* Define to 1 if you have the `strerror' function. */
 #define HAVE_STRERROR 1

 /* Define to 1 if you have the `strerror_r' function. */
 #define HAVE_STRERROR_R 1

 /* Define to 1 if you have the `strftime' function. */
 #define HAVE_STRFTIME 1

 /* Define to 1 if you have the <strings.h> header file. */
 #define HAVE_STRINGS_H 1

 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1

 /* Define to 1 if you have the `strncpy_s' function. */
 /* #undef HAVE_STRNCPY_S */

 /* Define to 1 if you have the `strrchr' function. */
 #define HAVE_STRRCHR 1

 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIME */

 /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC */

 /* Define to 1 if `st_blksize' is a member of `struct stat'. */
 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1

 /* Define to 1 if `st_flags' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_FLAGS */

 /* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC */

 /* Define to 1 if `st_mtime_n' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_MTIME_N */

 /* Define to 1 if `st_mtime_usec' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_MTIME_USEC */

 /* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1

 /* Define to 1 if `st_umtime' is a member of `struct stat'. */
 /* #undef HAVE_STRUCT_STAT_ST_UMTIME */

 /* Define to 1 if you have the `symlink' function. */
 #define HAVE_SYMLINK 1

 /* Define to 1 if you have the <sys/acl.h> header file. */
 #define HAVE_SYS_ACL_H 1

 /* Define to 1 if you have the <sys/cdefs.h> header file. */
 /* #undef HAVE_SYS_CDEFS_H */

 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
    */
 /* #undef HAVE_SYS_DIR_H */

 /* Define to 1 if you have the <sys/extattr.h> header file. */
 /* #undef HAVE_SYS_EXTATTR_H */

 /* Define to 1 if you have the <sys/ioctl.h> header file. */
 #define HAVE_SYS_IOCTL_H 1

 /* Define to 1 if you have the <sys/mkdev.h> header file. */
 #define HAVE_SYS_MKDEV_H 1

 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
    */
 /* #undef HAVE_SYS_NDIR_H */

 /* Define to 1 if you have the <sys/param.h> header file. */
 #define HAVE_SYS_PARAM_H 1

 /* Define to 1 if you have the <sys/poll.h> header file. */
 #define HAVE_SYS_POLL_H 1

 /* Define to 1 if you have the <sys/select.h> header file. */
 #define HAVE_SYS_SELECT_H 1

 /* Define to 1 if you have the <sys/stat.h> header file. */
 #define HAVE_SYS_STAT_H 1

 /* Define to 1 if you have the <sys/time.h> header file. */
 #define HAVE_SYS_TIME_H 1

 /* Define to 1 if you have the <sys/types.h> header file. */
 #define HAVE_SYS_TYPES_H 1

 /* Define to 1 if you have the <sys/utime.h> header file. */
 #define HAVE_SYS_UTIME_H 1

 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
 #define HAVE_SYS_WAIT_H 1

 /* Define to 1 if you have the <sys/xattr.h> header file. */
 /* #undef HAVE_SYS_XATTR_H */

 /* Define to 1 if you have the `timegm' function. */
 #define HAVE_TIMEGM 1

 /* Define to 1 if you have the <time.h> header file. */
 #define HAVE_TIME_H 1

 /* Define to 1 if you have the `tzset' function. */
 #define HAVE_TZSET 1

 /* Define to 1 if the system has the type `uintmax_t'. */
 #define HAVE_UINTMAX_T 1

 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1

 /* Define to 1 if you have the `unsetenv' function. */
 #define HAVE_UNSETENV 1

 /* Define to 1 if the system has the type `unsigned long long'. */
 #define HAVE_UNSIGNED_LONG_LONG 1

 /* Define to 1 if the system has the type `unsigned long long int'. */
 #define HAVE_UNSIGNED_LONG_LONG_INT 1

 /* Define to 1 if you have the `utime' function. */
 #define HAVE_UTIME 1

 /* Define to 1 if you have the `utimensat' function. */
 #define HAVE_UTIMENSAT 1

 /* Define to 1 if you have the `utimes' function. */
 #define HAVE_UTIMES 1

 /* Define to 1 if you have the <utime.h> header file. */
 #define HAVE_UTIME_H 1

 /* Define to 1 if you have the `vfork' function. */
 #define HAVE_VFORK 1

 /* Define to 1 if you have the `vprintf' function. */
 #define HAVE_VPRINTF 1

 /* Define to 1 if you have the <wchar.h> header file. */
 #define HAVE_WCHAR_H 1

 /* Define to 1 if the system has the type `wchar_t'. */
 #define HAVE_WCHAR_T 1

 /* Define to 1 if you have the `wcrtomb' function. */
 #define HAVE_WCRTOMB 1

 /* Define to 1 if you have the `wcscmp' function. */
 #define HAVE_WCSCMP 1

 /* Define to 1 if you have the `wcscpy' function. */
 #define HAVE_WCSCPY 1

 /* Define to 1 if you have the `wcslen' function. */
 #define HAVE_WCSLEN 1

 /* Define to 1 if you have the `wctomb' function. */
 #define HAVE_WCTOMB 1

 /* Define to 1 if you have the <wctype.h> header file. */
 #define HAVE_WCTYPE_H 1

 /* Define to 1 if you have the <windows.h> header file. */
 /* #undef HAVE_WINDOWS_H */

 /* Define to 1 if you have the `wmemcmp' function. */
 #define HAVE_WMEMCMP 1

 /* Define to 1 if you have the `wmemcpy' function. */
 #define HAVE_WMEMCPY 1

 /* Define to 1 if you have the <zlib.h> header file. */
 #define HAVE_ZLIB_H 1

 /* Version number of libarchive as a single integer */
 #define LIBARCHIVE_VERSION_NUMBER "2008004"

 /* Version number of libarchive */
 #define LIBARCHIVE_VERSION_STRING "2.8.4"

 /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
    slash. */
 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1

 /* Define to the sub-directory in which libtool stores uninstalled libraries.
    */
 #define LT_OBJDIR ".libs/"

 /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
    */
 #define MAJOR_IN_MKDEV 1

 /* Define to 1 if `major', `minor', and `makedev' are declared in
    <sysmacros.h>. */
 /* #undef MAJOR_IN_SYSMACROS */

 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
 /* #undef NO_MINUS_C_MINUS_O */

 /* Name of package */
 #define PACKAGE "libarchive"

 /* Define to the address where bug reports for this package should be sent. */
 #define PACKAGE_BUGREPORT "kientzle@freebsd.org"

 /* Define to the full name of this package. */
 #define PACKAGE_NAME "libarchive"

 /* Define to the full name and version of this package. */
 #define PACKAGE_STRING "libarchive 2.8.4"

 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libarchive"

 /* Define to the home page for this package. */
 #define PACKAGE_URL ""

 /* Define to the version of this package. */
 #define PACKAGE_VERSION "2.8.4"

 /* The size of `wchar_t', as computed by sizeof. */
 #define SIZEOF_WCHAR_T 4

 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1

 /* Define to 1 if strerror_r returns char *. */
 /* #undef STRERROR_R_CHAR_P */

 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #define TIME_WITH_SYS_TIME 1

 /* Enable extensions on AIX 3, Interix.  */
 #ifndef _ALL_SOURCE
 # define _ALL_SOURCE 1
 #endif
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # define _GNU_SOURCE 1
 #endif
 /* Enable threading extensions on Solaris.  */
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # define _POSIX_PTHREAD_SEMANTICS 1
 #endif
 /* Enable extensions on HP NonStop.  */
 #ifndef _TANDEM_SOURCE
 # define _TANDEM_SOURCE 1
 #endif
 /* Enable general extensions on Solaris.  */
 #ifndef __EXTENSIONS__
 # define __EXTENSIONS__ 1
 #endif


 /* Version number of package */
 #define VERSION "2.8.4"

 /* Define to '0x0500' for Windows 2000 APIs. */
 /* #undef WINVER */

 /* Number of bits in a file offset, on hosts where this is settable. */
 /* #undef _FILE_OFFSET_BITS */

 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
 /* #undef _LARGEFILE_SOURCE */

 /* Define for large files, on AIX-style hosts. */
 /* #undef _LARGE_FILES */

 /* Define to 1 if on MINIX. */
 /* #undef _MINIX */

 /* Define to 2 if the system does not provide POSIX.1 features except with
    this defined. */
 /* #undef _POSIX_1_SOURCE */

 /* Define to 1 if you need to in order for `stat' and other things to work. */
 /* #undef _POSIX_SOURCE */

 /* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
    <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
    #define below would cause a syntax error. */
 /* #undef _UINT64_T */

 /* Define to '0x0500' for Windows 2000 APIs. */
 /* #undef _WIN32_WINNT */

 /* Define to empty if `const' does not conform to ANSI C. */
 /* #undef const */

 /* Define to match typeof st_gid field of struct stat if <sys/types.h> doesn't
    define. */
 /* #undef gid_t */

 /* Define to `unsigned long' if <sys/types.h> does not define. */
 /* #undef id_t */

 /* Define to the type of a signed integer type of width exactly 64 bits if
    such a type exists and the standard includes do not define it. */
 /* #undef int64_t */

 /* Define to the widest signed integer type if <stdint.h> and <inttypes.h> do
    not define. */
 /* #undef intmax_t */

 /* Define to `int' if <sys/types.h> does not define. */
 /* #undef mode_t */

 /* Define to `long long' if <sys/types.h> does not define. */
 /* #undef off_t */

 /* Define to `unsigned int' if <sys/types.h> does not define. */
 /* #undef size_t */

 /* Define to match typeof st_uid field of struct stat if <sys/types.h> doesn't
    define. */
 /* #undef uid_t */

 /* Define to the type of an unsigned integer type of width exactly 64 bits if
    such a type exists and the standard includes do not define it. */
 /* #undef uint64_t */

 /* Define to the widest unsigned integer type if <stdint.h> and <inttypes.h>
    do not define. */
 /* #undef uintmax_t */

 /* Define to `unsigned int' if <sys/types.h> does not define. */
 /* #undef uintptr_t */

 --------------020106010806010102040103--

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491 (pkgsrc does not bootstrap under OpenIndiana)
Date: Wed, 19 Oct 2011 11:23:59 +0200

 On Wed, Oct 19, 2011 at 08:32:55AM +0000, cheusov@NetBSD.org wrote:
 > Synopsis: pkgsrc does not bootstrap under OpenIndiana
 > 
 > Responsible-Changed-From-To: pkg-manager->joerg
 > Responsible-Changed-By: cheusov@NetBSD.org
 > Responsible-Changed-When: Wed, 19 Oct 2011 08:32:52 +0000
 > Responsible-Changed-Why:
 > Over to libarchive maintainer.

 Frankly, I have no idea what OpenIndiana broke...

 Joerg

Responsible-Changed-From-To: joerg->solaris-people
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Wed, 19 Oct 2011 10:00:57 +0000
Responsible-Changed-Why:
Joerg resigned. Soes anyone in solaris-people@ have access to OI-151?


Responsible-Changed-From-To: solaris-people->solaris-pkg-people
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Wed, 19 Oct 2011 20:39:39 +0000
Responsible-Changed-Why:
s/solaris-people/solaris-pkg-people/


From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 26 Oct 2011 00:25:40 +0300

 > libarchive/archive_write_disk.c: In function 'set_fflags_platform':
 > libarchive/archive_write_disk.c:2265:18: error: expected expression before 'long'
 > libarchive/archive_write_disk.c:2267:19: error: expected expression before 'long'
 > libarchive/archive_write_disk.c:2273:18: error: expected expression before 'long'
 > libarchive/archive_write_disk.c:2277:19: error: expected expression before 'long'
 > *** Error code 1

 On my system libarchive fails this way if
 pkg://sfe/system/file-system/e2fsprogs@1.41.14 package is installed.
 This package contains /usr/include/ext2fs/ext2fs.h file.
 libarcive finds it and tries to use EXT2_IOC_GETFLAGS ioctls.

 The problem is that on OI-151 EXT2_IOC_GETFLAGS is defined as

    _IOR('f', 1, long)

 where _IOR is defined in drm/drm.h which is not included.
 To me this looks like a bug in OpenIndiana.

 I propose to commit the following workaround. Objections?

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/archivers/libarchive/Makefile,v
 retrieving revision 1.33
 diff -u -r1.33 Makefile
 --- Makefile	9 Jul 2010 12:03:55 -0000	1.33
 +++ Makefile	25 Oct 2011 21:22:30 -0000
 @@ -21,6 +21,13 @@
  do-extract:
  	${CP} -r ${FILESDIR} ${WRKSRC}

 +.include "../../mk/bsd.prefs.mk"
 +
 +.if ${OPSYS} == SunOS
 +# workaround for pkg/45491
 +CONFIGURE_ENV+=	ac_cv_header_ext2fs_ext2_fs_h=no
 +.endif
 +
  .include "../../archivers/bzip2/buildlink3.mk"
  .include "../../devel/zlib/buildlink3.mk"
  .include "../../mk/bsd.pkg.mk"

 -- 
 Best regards, Aleksey Cheusov.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Tue, 25 Oct 2011 19:41:10 -0700

 On Tue, Oct 25, 2011 at 09:30:07PM +0000, Aleksey Cheusov wrote:
 > The following reply was made to PR pkg/45491; it has been noted by GNATS.
 > 
 > From: Aleksey Cheusov <cheusov@tut.by>
 > To: gnats-bugs@NetBSD.org
 > Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
 > Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
 > Date: Wed, 26 Oct 2011 00:25:40 +0300
 > 
 >  > libarchive/archive_write_disk.c: In function 'set_fflags_platform':
 >  > libarchive/archive_write_disk.c:2265:18: error: expected expression before 'long'
 >  > libarchive/archive_write_disk.c:2267:19: error: expected expression before 'long'
 >  > libarchive/archive_write_disk.c:2273:18: error: expected expression before 'long'
 >  > libarchive/archive_write_disk.c:2277:19: error: expected expression before 'long'
 >  > *** Error code 1
 >  
 >  On my system libarchive fails this way if
 >  pkg://sfe/system/file-system/e2fsprogs@1.41.14 package is installed.
 >  This package contains /usr/include/ext2fs/ext2fs.h file.
 >  libarcive finds it and tries to use EXT2_IOC_GETFLAGS ioctls.
 >  
 >  The problem is that on OI-151 EXT2_IOC_GETFLAGS is defined as
 >  
 >     _IOR('f', 1, long)
 >  
 >  where _IOR is defined in drm/drm.h which is not included.
 >  To me this looks like a bug in OpenIndiana.
 >  
 >  I propose to commit the following workaround. Objections?

 I strongly dislike hackarounds for broken local things. I would prefer
 to bring this up with OpenIndiana first and see if they don't fix up the
 mess they created...

 Joerg

From: Alistair Crooks <agc@pkgsrc.org>
To: Aleksey Cheusov <cheusov@tut.by>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
        pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 26 Oct 2011 04:57:01 +0200

 On Wed, Oct 26, 2011 at 12:25:40AM +0300, Aleksey Cheusov wrote:
 > > libarchive/archive_write_disk.c: In function 'set_fflags_platform':
 > > libarchive/archive_write_disk.c:2265:18: error: expected expression before 'long'
 > > libarchive/archive_write_disk.c:2267:19: error: expected expression before 'long'
 > > libarchive/archive_write_disk.c:2273:18: error: expected expression before 'long'
 > > libarchive/archive_write_disk.c:2277:19: error: expected expression before 'long'
 > > *** Error code 1
 > 
 > On my system libarchive fails this way if
 > pkg://sfe/system/file-system/e2fsprogs@1.41.14 package is installed.
 > This package contains /usr/include/ext2fs/ext2fs.h file.
 > libarcive finds it and tries to use EXT2_IOC_GETFLAGS ioctls.
 > 
 > The problem is that on OI-151 EXT2_IOC_GETFLAGS is defined as
 > 
 >    _IOR('f', 1, long)
 > 
 > where _IOR is defined in drm/drm.h which is not included.
 > To me this looks like a bug in OpenIndiana.
 > 
 > I propose to commit the following workaround. Objections?
 > 
 > Index: Makefile
 > ===================================================================
 > RCS file: /cvsroot/pkgsrc/archivers/libarchive/Makefile,v
 > retrieving revision 1.33
 > diff -u -r1.33 Makefile
 > --- Makefile	9 Jul 2010 12:03:55 -0000	1.33
 > +++ Makefile	25 Oct 2011 21:22:30 -0000
 > @@ -21,6 +21,13 @@
 >  do-extract:
 >  	${CP} -r ${FILESDIR} ${WRKSRC}
 >  
 > +.include "../../mk/bsd.prefs.mk"
 > +
 > +.if ${OPSYS} == SunOS
 > +# workaround for pkg/45491
 > +CONFIGURE_ENV+=	ac_cv_header_ext2fs_ext2_fs_h=no
 > +.endif
 > +
 >  .include "../../archivers/bzip2/buildlink3.mk"
 >  .include "../../devel/zlib/buildlink3.mk"
 >  .include "../../mk/bsd.pkg.mk"

 Yes, I think that's good as a stop-gap workaround, but let's keep the
 bug open, and ask OpenIndiana to fix their sources upstream; we can
 close the bug and delete the workaround as and when it's fixed
 upstream.

 Thanks,
 Alistair

From: "Andrey N. Oktyabrski" <ano@bestmx.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 26 Oct 2011 08:56:08 +0400

 On 10/26/11 01:30 AM, Aleksey Cheusov wrote:
 >   +.if ${OPSYS} == SunOS
 >   +# workaround for pkg/45491
 >   +CONFIGURE_ENV+=	ac_cv_header_ext2fs_ext2_fs_h=no
 >   +.endif
 I think it must be
 .if ${OPSYS} != Linux

 And this is a bugfix, not a workaround. Because ext{2,3,4,5} FS is in 
 the BASE system in Linux only. In other OSes e2fsprogs is an additional 
 package, and pkgsrc bootstrap MUST NOT depend from it.

From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Wed, 26 Oct 2011 08:32:51 +0000

 Module Name:	pkgsrc
 Committed By:	cheusov
 Date:		Wed Oct 26 08:32:50 UTC 2011

 Modified Files:
 	pkgsrc/archivers/libarchive: Makefile

 Log Message:
 Workaround for PR 45491. It fixes bootstrap if
 pkg://sfe/system/file-system/e2fsprogs@1.41.14 package is installed.
 Approved by agc@.


 To generate a diff of this commit:
 cvs rdiff -u -r1.33 -r1.34 pkgsrc/archivers/libarchive/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Wed, 26 Oct 2011 11:08:37 +0000

 Module Name:	pkgsrc
 Committed By:	cheusov
 Date:		Wed Oct 26 11:08:37 UTC 2011

 Modified Files:
 	pkgsrc/archivers/libarchive: builtin.mk

 Log Message:
 Addon for previous commit (PR 45491) that actually fixes
   archivers/libarchive but not bootstrap.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/archivers/libarchive/builtin.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Wed, 26 Oct 2011 09:46:48 -0700

 On Wed, Oct 26, 2011 at 11:10:07AM +0000, Aleksey Cheusov wrote:
 > The following reply was made to PR pkg/45491; it has been noted by GNATS.
 > 
 > From: "Aleksey Cheusov" <cheusov@netbsd.org>
 > To: gnats-bugs@gnats.NetBSD.org
 > Cc: 
 > Subject: PR/45491 CVS commit: pkgsrc/archivers/libarchive
 > Date: Wed, 26 Oct 2011 11:08:37 +0000
 > 
 >  Module Name:	pkgsrc
 >  Committed By:	cheusov
 >  Date:		Wed Oct 26 11:08:37 UTC 2011
 >  
 >  Modified Files:
 >  	pkgsrc/archivers/libarchive: builtin.mk
 >  
 >  Log Message:
 >  Addon for previous commit (PR 45491) that actually fixes
 >    archivers/libarchive but not bootstrap.
 >  
 >  
 >  To generate a diff of this commit:
 >  cvs rdiff -u -r1.2 -r1.3 pkgsrc/archivers/libarchive/builtin.mk

 This is just wrong. Please revert.

 Joerg

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 26 Oct 2011 09:47:56 -0700

 On Wed, Oct 26, 2011 at 05:00:07AM +0000, Andrey N. Oktyabrski wrote:
 >  On 10/26/11 01:30 AM, Aleksey Cheusov wrote:
 >  >   +.if ${OPSYS} == SunOS
 >  >   +# workaround for pkg/45491
 >  >   +CONFIGURE_ENV+=	ac_cv_header_ext2fs_ext2_fs_h=no
 >  >   +.endif
 >  I think it must be
 >  .if ${OPSYS} != Linux
 >  
 >  And this is a bugfix, not a workaround. Because ext{2,3,4,5} FS is in 
 >  the BASE system in Linux only. In other OSes e2fsprogs is an additional 
 >  package, and pkgsrc bootstrap MUST NOT depend from it.

 It is not a bug fix. Other OSes either don't install the ext2/fs.h or
 have a working version. The bug on OpenIndiana is to install a
 non-working version.

 Joerg

From: "Andrey N. Oktyabrski" <ano@bestmx.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45491: pkgsrc does not bootstrap under OpenIndiana
Date: Wed, 26 Oct 2011 22:16:01 +0400

 On 10/26/11 08:50 PM, Joerg Sonnenberger wrote:
 >   It is not a bug fix. Other OSes either don't install the ext2/fs.h or
 >   have a working version. The bug on OpenIndiana is to install a
 >   non-working version.
 The bug is in the pkgsrc too, because its bootstrap uses non-necessary 
 things. Why you want to add this dependency when can compile without it?

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Fri, 28 Oct 2011 16:27:08 +0300

  >>  Log Message:
  >>  Addon for previous commit (PR 45491) that actually fixes
  >>    archivers/libarchive but not bootstrap.
  >>  
  >>  
  >>  To generate a diff of this commit:
  >>  cvs rdiff -u -r1.2 -r1.3 pkgsrc/archivers/libarchive/builtin.mk
 >  
 >  This is just wrong. Please revert.
 >  
 >  Joerg

 This commit fixes bootstrap failure on OpenIndiana with broken package
 installed.  If you think it is "just wrong" please argue.  I asked
 submitter offlist to notify upstream about this problem. So, we are
 waiting for upstream's response/fix as it was proposed by agc@.

 -- 
 Best regards, Aleksey Cheusov.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Fri, 28 Oct 2011 22:57:24 +0900

 On Fri, 28 Oct 2011 22:30:05 +0900, Aleksey Cheusov <cheusov@tut.by> wrote:

 >  This commit fixes bootstrap failure on OpenIndiana with broken package
 >  installed.  If you think it is "just wrong" please argue.  I asked
 >  submitter offlist to notify upstream about this problem. So, we are
 >  waiting for upstream's response/fix as it was proposed by agc@.

 I feel that it should be in pkgtools/pkg_install/Makefile instead,
 like a trick for Darwin.

 -- 
 OBATA Akio / obache@NetBSD.org

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org, gnats-admin@netbsd.org, 
	pkgsrc-bugs@netbsd.org, ano@bestmx.ru
Subject: Re: PR/45491 CVS commit: pkgsrc/archivers/libarchive
Date: Fri, 28 Oct 2011 17:28:04 +0300

 > =A0> =A0This commit fixes bootstrap failure on OpenIndiana with broken pa=
 ckage
 > =A0> =A0installed. =A0If you think it is "just wrong" please argue. =A0I =
 asked
 > =A0> =A0submitter offlist to notify upstream about this problem. So, we a=
 re
 > =A0> =A0waiting for upstream's response/fix as it was proposed by agc@.
 >
 > =A0I feel that it should be in pkgtools/pkg_install/Makefile instead,
 > =A0like a trick for Darwin.
 >
 > =A0--
 > =A0OBATA Akio / obache@NetBSD.org

 My intention was to fix not only bootstrap but all packages
 using archivers/libarchive/builtin.mk as well. As far as I can see
 pkg_install is the only such package. If you think
 pkgtools/pkg_install/Makefile is a better place, I'll move this
 workaround soon. Thanks for clarification!

From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45491 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Fri, 28 Oct 2011 21:19:42 +0000

 Module Name:	pkgsrc
 Committed By:	cheusov
 Date:		Fri Oct 28 21:19:42 UTC 2011

 Modified Files:
 	pkgsrc/pkgtools/pkg_install: Makefile

 Log Message:
 Workaround for PR 45491 again.


 To generate a diff of this commit:
 cvs rdiff -u -r1.183 -r1.184 pkgsrc/pkgtools/pkg_install/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Sat, 29 Oct 2011 16:41:22 +0300

 2Joerg: Do we need ioctl(EXT2_IOC_SETFLAGS) and
 ioctl(EXT2_IOC_GETFLAGS) in pkg_install?

 -- 
 Best regards, Aleksey Cheusov.

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Sat, 5 Nov 2011 15:04:23 +0000

 On Sat, Oct 29, 2011 at 01:45:02PM +0000, Aleksey Cheusov wrote:
  >  2Joerg: Do we need ioctl(EXT2_IOC_SETFLAGS) and
  >  ioctl(EXT2_IOC_GETFLAGS) in pkg_install?

 Is there a non-ioctl way to get those flags in Linux? (I assume
 they're Linux-only)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/45491 CVS commit: pkgsrc/pkgtools/pkg_install
Date: Fri, 25 Nov 2011 02:28:47 +0300

 Unfortunately OpenIndiana developers don't want to fix their bug.

 https://www.illumos.org/issues/1709

 Can we close our PR?

 -- 
 Best regards, Aleksey Cheusov.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 27 Dec 2014 03:13:35 +0000
State-Changed-Why:
After reviewing this I think the best thing to do is leave the workaround
in place and close the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.