Commit graph

296 commits

Author SHA1 Message Date
ben
256e66a2e3 Conditionally include header files, and include nbcompat.h
Addresses PR#32149
2005-11-23 14:59:44 +00:00
ben
8926549f00 Sync with src. Remove unused variable argc from apply_perms(). 2005-11-23 14:33:50 +00:00
ben
f1c7672081 Remove unused variables, fix variable names to avoid shadowing globals,
and add PAX_CMD fallback macro.
2005-11-23 04:49:51 +00:00
ben
df7be8ce2f Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.

Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.

If it is necessary to copy files into place from staging area, then use
pax to copy them.

Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.

Three system() references remain: @exec, @unexec, and vsystem().
2005-11-22 15:44:59 +00:00
erh
31448b1b1c Fix for part of PR#32092: add SKIP_AUDIT_PACKAGES=yes so pkg_install can
be updated even if audit-packages is out of date.  The audit-packages package
already has this.
2005-11-17 17:05:30 +00:00
dillo
0401832751 Sync with src/usr.sbin/pkg_install:
Fix first part of PR 32068: pkg_info -Q broken for local binary packages
        Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
Bump version.
2005-11-14 09:42:38 +00:00
dillo
71bd927ebf Remove obsolete file from OBJS also.
Fixes PR 32071 by HEO SeonMeyong.
2005-11-14 09:17:40 +00:00
wiz
c6865dc161 Sync with basesrc: do not use errx in dewey.c; handle -1 return value
from dewey_match in pmatch.
2005-11-13 19:51:14 +00:00
wiz
e61b7d0cf9 Remove obsolete file. 2005-11-13 19:50:31 +00:00
wiz
30ce384efb Sync with basesrc 1.3:
Remove some unnecessary header includes.
2005-11-08 20:17:56 +00:00
dillo
aefacfcc2f Update to 20051107: Fix pkg_info -B against binary packages. 2005-11-07 23:51:14 +00:00
wiz
68f185e993 Sync with basesrc:
Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@
on tech-pkg.
2005-11-07 22:57:48 +00:00
tv
97e479d1b2 Aren't we forgetting something here?
(Insert config.h, nbcompat.h, and bracket the other includes with
#if HAVE_<file>.)
2005-11-07 18:53:53 +00:00
jlam
604a8bc477 Use the hard-coded ${PKG_TOOLS_BIN} variable as the correct location of
the pkg_admin binary.
2005-11-07 06:52:24 +00:00
jlam
f2c3651333 INSTALL_SCRIPT_ENV wasn't being defined to include a definition for
PKG_PREFIX, which was causing the INSTALL script to fail when run from
the post-install-script target.
2005-11-07 06:32:58 +00:00
jlam
f24a3e971c In the "update" target, use "${UPDATE_TARGET}" to install the new
pkg_install tools.  This allows customizing UPDATE_TARGET=package to
produce a binary package instead of just installing the package.
2005-11-06 22:17:53 +00:00
jlam
c0fc027891 Remove @exec from PLIST and put the action into an INSTALL script instead.
Also, simplify the package by making use of the PKGMANDIR-handling in
pkgsrc to remove the custom MANDIR code from the package Makefile and
the PLIST.

Technically, this type of a change would require a PKGREVISION bump,
but as this is the pkg_* tools package and there were no changes to the
binaries, we refrain from doing so.
2005-11-06 22:15:44 +00:00
wiz
13950de799 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:37:43 +00:00
wiz
d768d9008a Add new files. 2005-11-05 13:30:31 +00:00
wiz
251eae9011 Not needed. 2005-11-05 13:20:31 +00:00
wiz
d69676ddee Sync with base system as of Sat Nov 5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.
2005-11-05 13:20:08 +00:00
joerg
cb701234ba Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:27:47 +00:00
reed
bb35b0ea3d Remove CONFIGURE_ARGS setting --mandir as this is now done for
GNU_CONFIGURE.

Also add a note: This breaks for those who set their own LOCALBASE
to /usr and also define PKGMANDIR to different than share/man.
2005-10-07 18:05:07 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
hubertf
fd107baf6b Pull over change from src/usr.sbin/pkg_install:
| Modified Files:
|         src/usr.sbin/pkg_install/add: perform.c
|
| Log Message:
| cleanup: preserve errno. Needed so err() functions ran after running
|          cleanup(0) print the correct error message.
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.109 -r1.110 src/usr.sbin/pkg_install/add/perform.c
2005-07-25 13:13:00 +00:00
hubertf
c762ea0231 Pull over this change from src/usr.sbin/pkg_install (-current):
| Modified Files:
|         src/usr.sbin/pkg_install/add: extract.c
|
| Log Message:
| Fix 'pkg_add -R' handling - not registering really means not touching
| the pkgdb too - useful for pkg_add as non-root!
|
|
| To generate a diff of this commit:
| cvs rdiff -r1.34 -r1.35 src/usr.sbin/pkg_install/add/extract.c
2005-07-25 13:03:59 +00:00
hubertf
3d4abdba19 Sync over files from src/usr.sbin/pkg_install to fix PR pkg/30658:
Warn, but don't error out on pkgs that were built with IGNORE_RECOMMENDED.

Bump version to 20050718.
2005-07-18 09:14:04 +00:00
jlam
6725d83ed5 Use += to not override previous USE_TOOLS setting. 2005-06-13 17:19:12 +00:00
dmcmahill
b16a2ef3e0 add autoconf test for missing (like in openbsd-3.6) or broken (like
in AIX-4.3.2) PRIu64.  If it is missing or broken, provide one.  Should
address PR30375.  Welcome to pkg_install-20050607
2005-06-10 01:37:21 +00:00
jlam
f7bc8ecc4c List shell tools that are needed by the pkg_view and linkfarm scripts. 2005-06-07 16:34:50 +00:00
wiz
540ce344e5 Include netdb.h for Solaris. From Neil Hoggarth in PR 30399. 2005-06-02 10:31:11 +00:00
wiz
5baac3d7e2 Sync with base 1.53: Comment out too noisy warning. 2005-05-30 19:45:02 +00:00
wiz
810ffe10ac Update to 20050530:
Sync with base system: Ranges support and some other stuff that wasn't
pulled over.
2005-05-30 13:23:31 +00:00
minskim
36e75fce9c Sync with 20050529 in src/.
If a pattern does not have any suffix, assume that it matches both
".tbz" and ".tgz".  This allows to install binary package dependencies
that are not exact matches, but satisfy requirements.
2005-05-29 19:20:53 +00:00
dmcmahill
04a3acbd97 - 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
2005-05-28 02:50:45 +00:00
jlam
bc453eae61 Note that this package wants mtree, pax, and tar. 2005-05-16 00:09:33 +00:00
rillig
a73ab09866 Output the error string when renaming a dependency file fails. This has
happened to me when I had a misnamed directory in the pkgdb directory.
2005-05-10 00:04:09 +00:00
wiz
695ecfab67 Sync with usr.sbin/pkg_install/add/pkg_add.1 v1.59. 2005-05-06 23:03:41 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
hubertf
da4b4c92b9 Address PR pkg/24744 by Jarmo Jaakkola <jarmo.jaakkola@iki.fi>:
* ftp.fi.netbsd.org returns "257" in return to a "cd" command, accept that
   (in addition to 250 and 550). Seems to be allowed per RFC 959.
 * Make buffer for reply bigger (not too big, as it may hit performance).
 * Bump PKGTOOLS_VERSION (NOT!!! PKGTOOLS_REQD) to 20050318
2005-03-20 15:55:54 +00:00
rillig
dfd5cc37b0 Never access argv[i+1] before you know that argv[i] != NULL. Approved
by wiz.
2005-03-11 21:20:15 +00:00
agc
7de1e6abd3 Bring over the clearer mismatch warning message from src.
+ state that the message is just a warning
+ make it clearer what an OS mismatch is
2005-03-07 08:41:58 +00:00
grant
485637d8af sync with src:
initialise a variable before using it. pkg_info binpkg.tgz would pass
garbage on the command line to tar(1).
2005-02-21 01:21:39 +00:00
grant
daa5a43372 sync with src:
cast return value of min_free() to uint64_t.

fixes pkg_add <binarypkg> on Solaris 8.
2005-02-20 09:17:25 +00:00
uebayasi
b24eb99218 Redo previous; follow the new idiom of quoting variables ("\"${XYZ}"\")
which may be passed to command line, and may contain white spaces.
2005-02-14 02:30:39 +00:00
uebayasi
0552777918 Quote command strings to be passed to configure script. 2005-02-12 04:45:48 +00:00
grant
17e5afb82c regen from man page update. pointed out by jlam@ - thanks! 2005-02-11 23:35:02 +00:00
grant
fbcc961f58 pull in binary pkg handling changes from src:
rework pkg_info(8) operating on binary packages, deprecating the `-.'
argument as it is no longer required (but is retained as a no-op for
backward compatibility).

the behaviour is now what is expected and intended:

        - when the pkg argument is path (absolute or relative) to a
          binary pkg, pkg_info operates on it.
        - when no pkg argument is given, or the argument is not a
          binary pkg path, pkg_info operates on the installed packages.

`pkg_info foo-1.0.tgz', `pkg_info /path/to/foo-1.0.tgz', etc. now work
correctly when foo-1.0.tgz is in the cwd.

bump PKGTOOLS_VERSION to 20050210.
2005-02-10 23:51:18 +00:00
jlam
94d6c64d03 Pull in documentation improvements and a minor change to allow building
with WARNS=2 from src/usr.sbin/pkg_install.  No functional change and
no version bump.
2005-02-05 00:28:58 +00:00
jlam
cb184155ea Update pkgtools/pkg_install to 20050204 (latest release from the HEAD
branch of src).  Changes from version 20050106:

  Teach pkg_add(1) and pkg_delete(1) to pass PKG_METADATA_DIR and
  PKG_REFCOUNT_DBDIR in the environment when running the +* scripts.
  PKG_METADATA_DIR is the location of the +* files after the package is
  registered.  PKG_REFCOUNT_DBDIR is the location of the reference counts
  database directory.  If PKG_REFCOUNT_DBDIR is left unset, then it
  defaults the the location of the package database directory with
  ".refcount" appended to the path, e.g. /var/db/pkg.refcount.

  pkgviews users should explicitly set PKG_REFCOUNT_DBDIR in the shell
  environment to ensure that all packages will use the same refcount
  database.

  These changes allow the +INSTALL and +DEINSTALL script to keep state
  in +* files within ${PKG_METADATA_DIR}, and to store reference counts
  in ${PKG_REFCOUNT_DBDIR} to handle usage of resources outside of
  ${LOCALBASE}.
2005-02-04 09:10:13 +00:00