diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-05-28 02:50:45 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-05-28 02:50:45 +0000 |
commit | 04a3acbd97e8d66bb34d9c5a421afc3994a9a14a (patch) | |
tree | 31cfb2d506db51b9a85c00aa60500a4dd4c65af0 /pkgtools/pkg_install/files | |
parent | 4ee346495ebdcbc65a446d05f2c01b3c3546e396 (diff) | |
download | pkgsrc-04a3acbd97e8d66bb34d9c5a421afc3994a9a14a.tar.gz |
- pull in the changes from usr.sbin which prevent an over flow
of a 32 bit signed number when pkg_add-ing a binary package
file larger than 512 Mb.
- Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050527
Diffstat (limited to 'pkgtools/pkg_install/files')
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 15 | ||||
-rwxr-xr-x | pkgtools/pkg_install/files/configure | 21 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/configure.ac | 4 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/version.h | 4 |
4 files changed, 25 insertions, 19 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index 4cbf16fe60d..3a953faa0b1 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.29 2005/03/07 08:41:58 agc Exp $ */ +/* $NetBSD: perform.c,v 1.30 2005/05/28 02:50:46 dmcmahill Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,7 @@ #if 0 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp"; #else -__RCSID("$NetBSD: perform.c,v 1.29 2005/03/07 08:41:58 agc Exp $"); +__RCSID("$NetBSD: perform.c,v 1.30 2005/05/28 02:50:46 dmcmahill Exp $"); #endif #endif @@ -45,6 +45,9 @@ __RCSID("$NetBSD: perform.c,v 1.29 2005/03/07 08:41:58 agc Exp $"); #include "add.h" #include "verify.h" +#if HAVE_INTTYPES_H +#include <inttypes.h> +#endif #if HAVE_SIGNAL_H #include <signal.h> #endif @@ -200,6 +203,7 @@ pkg_do(const char *pkg, lpkg_head_t *pkgs) struct utsname host_uname; int inPlace; int rc; + uint64_t needed; Boolean is_depoted_pkg = FALSE; errc = 0; @@ -320,11 +324,12 @@ pkg_do(const char *pkg, lpkg_head_t *pkgs) * compress an average of 75%, so multiply by 4 for good measure. */ - if (!inPlace && min_free(playpen) < sb.st_size * 4) { - warnx("projected size of %ld bytes exceeds available free space\n" + needed = 4 * (uint64_t) sb.st_size; + if (!inPlace && min_free(playpen) < needed) { + warnx("projected size of %" PRIu64 " bytes exceeds available free space\n" "in %s. Please set your PKG_TMPDIR variable to point\n" "to a location with more free space and try again.", - (long) (sb.st_size * 4), playpen); + needed, playpen); goto bomb; } diff --git a/pkgtools/pkg_install/files/configure b/pkgtools/pkg_install/files/configure index 31977b1c2ac..3d3e9269a33 100755 --- a/pkgtools/pkg_install/files/configure +++ b/pkgtools/pkg_install/files/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for pkg_install 20040813. +# Generated by GNU Autoconf 2.59 for pkg_install 20050527. # # Report bugs to <grant@NetBSD.org>. # @@ -269,8 +269,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='pkg_install' PACKAGE_TARNAME='pkg_install' -PACKAGE_VERSION='20040813' -PACKAGE_STRING='pkg_install 20040813' +PACKAGE_VERSION='20050527' +PACKAGE_STRING='pkg_install 20050527' PACKAGE_BUGREPORT='grant@NetBSD.org' ac_unique_file="lib/plist.c" @@ -780,7 +780,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures pkg_install 20040813 to adapt to many kinds of systems. +\`configure' configures pkg_install 20050527 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -841,7 +841,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of pkg_install 20040813:";; + short | recursive ) echo "Configuration of pkg_install 20050527:";; esac cat <<\_ACEOF @@ -962,7 +962,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -pkg_install configure 20040813 +pkg_install configure 20050527 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -976,7 +976,7 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by pkg_install $as_me 20040813, which was +It was created by pkg_install $as_me 20050527, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -3841,8 +3841,9 @@ done + for ac_header in assert.h ctype.h dirent.h err.h errno.h fnctl.h fnmatch.h \ - glob.h limits.h md5.h netdb.h pwd.h regex.h signal.h stdarg.h \ + glob.h inttypes.h limits.h md5.h netdb.h pwd.h regex.h signal.h stdarg.h \ stdio.h stdlib.h string.h termcap.h termios.h time.h unistd.h vis.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` @@ -4889,7 +4890,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by pkg_install $as_me 20040813, which was +This file was extended by pkg_install $as_me 20050527, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4949,7 +4950,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -pkg_install config.status 20040813 +pkg_install config.status 20050527 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" diff --git a/pkgtools/pkg_install/files/configure.ac b/pkgtools/pkg_install/files/configure.ac index b9314c5a104..40ca55c040d 100644 --- a/pkgtools/pkg_install/files/configure.ac +++ b/pkgtools/pkg_install/files/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.52) -AC_INIT([pkg_install], [20040813], [grant@NetBSD.org]) +AC_INIT([pkg_install], [20050527], [grant@NetBSD.org]) AC_CONFIG_SRCDIR([lib/plist.c]) AC_CONFIG_HEADER(lib/config.h) @@ -74,7 +74,7 @@ AC_SEARCH_LIBS(tgetent, [termcap termlib curses ncurses]) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([assert.h ctype.h dirent.h err.h errno.h fnctl.h fnmatch.h \ - glob.h limits.h md5.h netdb.h pwd.h regex.h signal.h stdarg.h \ + glob.h inttypes.h limits.h md5.h netdb.h pwd.h regex.h signal.h stdarg.h \ stdio.h stdlib.h string.h termcap.h termios.h time.h unistd.h vis.h]) AC_CHECK_HEADERS([db1/db.h db.h]) AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h \ diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h index c2e747f2fc4..2deb1d1f75d 100644 --- a/pkgtools/pkg_install/files/lib/version.h +++ b/pkgtools/pkg_install/files/lib/version.h @@ -1,4 +1,4 @@ -/* $NetBSD: version.h,v 1.42 2005/03/20 15:55:54 hubertf Exp $ */ +/* $NetBSD: version.h,v 1.43 2005/05/28 02:50:46 dmcmahill Exp $ */ /* * Copyright (c) 2001 Thomas Klausner. All rights reserved. @@ -33,6 +33,6 @@ #ifndef _INST_LIB_VERSION_H_ #define _INST_LIB_VERSION_H_ -#define PKGTOOLS_VERSION "20050318" +#define PKGTOOLS_VERSION "20050527" #endif /* _INST_LIB_VERSION_H_ */ |