Commit Graph

61 Commits

Author SHA1 Message Date
tron
9cc7e269b3 Update "pkg_install" to version 20120128:
- pkg_install 20120128:
  - Explicitly stat(2) if mkdir failed. errno detection doesn't work e.g.
    on Solaris.
  - Provide a stable order for package names that only differe in the base
    name, not the version number.
- pkg_install 20110805:
  - Fix for pkg_delete on NFS from Anthony Mallet.
2012-02-19 17:46:46 +00:00
joerg
ba0add90b0 Disable noreturn checks for remaining external code 2011-09-16 16:41:20 +00:00
christos
a04731e090 avoid non-literal strings. 2011-08-16 08:29:15 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
adam
6eea015c15 Added postgresql-license 2011-04-22 08:19:25 +00:00
aymeric
be644fb029 merge pkg_install 20110215 2011-02-18 22:36:00 +00:00
aymeric
997253ffc3 Import pkg_install 20110215.
--- 20110215:
Fix audit-history subcommand to include patterns making use of [x-y] notation.

--- 20101212:
Don't warn about _ALPHA, _BETA, _PATCH, _RC, _STABLE mismatches when
pkg_add'ing on NetBSD.

--- 20101122:
Fix crash in pkg_info -X on hand-written packages.

--- 20100915:
Allow https URLs.

--- 20100914:
Add -D flag to pkg_install, to override the "pkg_add -U" check that
all depending packages have their dependencies satisfied by the new
package.  Essentially, split off this particular behavior as a special
case of -f, so that -f works as before, unforced works as before, and
one can give -D to override exactly this check, leaving all other
checks intact.

The -D flag is in support of make replace, as the workflow for make
replace is that inter-package dependencies are sometimes violated (but
then one must replace the depending packages, which is what
pkg_rolling-replace does via the unsafe_depends flags).

Add missing break statement in option parsing of "pkg_add -C", riding
the version bump.
2011-02-18 22:32:27 +00:00
he
f5736be797 New pkg_install requires -llzma, so to support static linking, be
explicit about what libraries are required, and not only depend on
shared library inter-dependencies to pull that in.
Fixes the build for sun2.
2010-11-05 09:09:01 +00:00
joerg
d6492db27f Merge for pkg_install-20100616 2010-06-26 00:17:13 +00:00
joerg
d0eb5eccdb pkg_install-20100616:
- Recognize -C for pkg_add like the rest of the tools do
- Do the existing check for pkg_add -f, it makes the combination of
  -f and -U a bit less surprising
- Fix option handling for CHECK_VULNERABILITIES (from spz@)
- Make end-of-life check the default. pkg_install.conf(5) can be used
  to override the default. The existing admin -e & co continue to work as
  before.
2010-06-26 00:14:26 +00:00
joerg
323fc69705 Update build glue for pkg_install-20100421 2010-04-23 20:56:01 +00:00
joerg
8164e2ede7 Merge pkg_install-20100421 2010-04-23 20:55:31 +00:00
joerg
0e7c882236 pkg_install-20100421:
Fix an off-by-one in the check for properly sized pkgdb entries.
It rejected perfectly valid entries.

Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.

At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.

Recognize xz as compression type for pkg_create.

The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.

Try to detect common forms of pkgdb corruption and issue a warning in
that case.

Refactor the pkg_vulnerabilities logic to use the compression support
from libarchive. This reduces the amount zlib/bzip2 interaction to
the linkage.

Add man pages for audit-packages and download-vulnerability-list which
point to pkg_admin and notes that the scripts are obsolete.
2010-04-23 20:54:06 +00:00
joerg
a47bf818c5 Merge 2010-02-20 04:44:59 +00:00
joerg
2dbe35ad26 nstall-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.
2010-02-20 04:41:52 +00:00
joerg
3185176d24 Merge 2010-02-03 19:31:49 +00:00
joerg
6ab7422234 Fix enum to prevent crash (PR 42734) 2010-02-03 19:27:01 +00:00
joerg
e8182c96d5 pkg_install-20100203:
- Restore PKG_PREFIX in pkg_delete (PR 42731)
- Ensure that the current pkg_install version is at least as new as
  the version used to build the package
2010-02-03 14:23:39 +00:00
joerg
5ac0fc9ca9 pkg_install-20100130:
- pkg_add -U to rplace an installed version
- refactored man pages
- PKG_DBDIR / PKG_REFCOUNT_DBDIR as pkg_install.conf options
- synced license list
- use connection cache from libfetch
2010-01-30 21:33:08 +00:00
joerg
375a51926a pkg_install-20091115:
Completely ignore @src in pkg_create. Silently ignore the -L option.
The combination of -I and -p are used by pkgsrc for the same result.

Do not overwrite a string with itself using snprintf. This breaks
setting the pkgdb directory internally on Linux. Explicitly check
if the string is the same and otherwise just use xstrdup.

Add support to query arbitrary variables with pkg_admin config-var.
2009-11-05 18:39:00 +00:00
agc
1bc3fbf8da Move to a 2-clause BSD license 2009-10-18 03:53:32 +00:00
joerg
7c4d7328b0 pkg_install-20091015:
Use directory index caching by default.
2009-10-15 13:01:24 +00:00
joerg
3ae0a1fe80 pkg_install-20091008:
- Fix German accent
- Don't dereference a null pointer for pkg_admin add
2009-10-08 16:19:59 +00:00
joerg
a8429a111e pkg_install-20091006:
- restore pkg_add -f functionality for missing dependencies (PR 42001)
- pkg_admin rebuild should count packages correctly (he@), also count @pkgdir
- fix gpg-sign-package syntax in pkg_admin(1)
- change default URL for pkg-vulnerabilities to use HTTP
2009-10-07 13:19:36 +00:00
joerg
12490ea439 Import pkg_install-20090817:
Add a new command for pkg_admin: findbest. It takes one or more patterns
and searches for the best match in PKG_PATH, just like pkg_add would.
It prints the URLs of the best match for each pattern to stdout.

Rewrite the config file parser to read the file only once.

Fix a bug in pkg_add's -P handling. For dependencies the pkgdb path was
computed incorrectly and included destdir more than once.

Fix the ACTIVE_FTP option to actually set the "a" flag and not the old
"p" flag.
2009-08-21 15:18:57 +00:00
joerg
b9b5f22385 Use WARNS=4. 2009-08-06 16:57:20 +00:00
joerg
0590ec0a66 Import pkg_install-20090806:
- pkg_add: add support to check license conditions before installation
- pkg_delete: add -k option to skip over preserve packages.
- WARNS=4 clean, fix some potential uses of uninitialized variables
2009-08-06 16:55:16 +00:00
joerg
fdc1dac9e9 Import pkg_install-20070724:
- license handling: accept upper case letters. Keep license checks
  case-sensitive as done in the older pkgsrc logic. Document this.
  OK dillo@, schmonz@, wiz@
- pkg_info:
  - fix handling of non-packages, that are valid archives
  - invert order of pkg_info -r to better match the expectations of
    make update.
2009-07-26 22:59:33 +00:00
joerg
e4b9854077 Update to pkg_install-20090610:
Improve diagnostic of the license code.
2009-06-14 23:30:57 +00:00
joerg
93b14ea890 Import pkg_install-20090528:
Reenable extraction of ownership from tarballs.
2009-05-28 09:00:54 +00:00
joerg
cef902d2d0 Import pkg_install-200927:
- pkg_info -r provides topological sorting
- sync license list with pkgsrc/mk/licenses.mk
2009-05-27 22:41:35 +00:00
joerg
0334ae0007 Merge for pkg_install-20090513. 2009-05-17 21:31:59 +00:00
joerg
52b3fbfec5 Import pkg_install-20090513:
- Make compression type selection in pkg_create optionally explicit.
- PREV_PKGPATH / SUPERSEDES
2009-05-17 21:21:07 +00:00
joerg
bfdba539cb Update build system for pkg_install-20090425. 2009-04-26 14:18:44 +00:00
joerg
51e2fd09ed Import pkg_install-20090425:
Add logic to evaluate license conditions. As frontend for pkgsrc,
pkg_admin gets two new commands (check-license and
check-single-license), which can be used to evaluate a given condition.
pkg_add will be changed to honour licenses at a later point.
2009-04-25 21:38:18 +00:00
joerg
0ec643dcd9 Import pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.
2009-04-24 14:16:52 +00:00
joerg
94109f5e3c Import pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.
2009-04-24 14:16:43 +00:00
joerg
d595a1c226 Import pkg_install-20090406:
Remove premature return that broke dependency tracking for pkg_add -u.
Fixes PR 41143.
2009-04-06 18:49:08 +00:00
joerg
0c588b7da9 Import pkg_install-20090309:
Fix double free in pkg_info.
2009-03-10 00:48:40 +00:00
joerg
1b46f9c5df Merge pkg_install-20090307. 2009-03-08 14:53:16 +00:00
joerg
908e85af04 Import pkg_install-20090307: Fix a file descriptor leak in pkg_add. 2009-03-08 14:51:34 +00:00
joerg
08d9a1067c Avoid sign comparision issues. 2009-03-06 15:17:56 +00:00
joerg
bae4fdf17e Import pkg_install-20090302:
- plug some file descriptor leaks
- add pkg_info -r
2009-03-02 22:31:13 +00:00
joerg
60d9c2168a Update build glue for pkg_install-20090228. 2009-02-28 19:36:32 +00:00
joerg
847d5ab660 Merge changes for pkg_install-20090228. 2009-02-28 19:36:23 +00:00
joerg
e50ad3d100 Import pkg_install-20090228:
- pkg_add:
  - more consistent PKG_PATH processing
  - support setting PKG_PATH in pkg_install.conf(5)
  - don't crash when installing package with conflicts
  - fix updating packages with explicit +PRESERVE
  - document the rules for finding packages more clearly
- pkg_info:
  - don't complain about PKG_PATH, it is not used
  - sync documentation with reality
2009-02-28 19:33:34 +00:00
joerg
8ef7bd4c41 Merge. 2009-02-26 19:40:24 +00:00
joerg
4d694e83af Remove pkg_install.conf.5 on make clean. 2009-02-26 18:35:13 +00:00
joerg
e0c851f773 Update build glue for pkg_install-20090225. 2009-02-25 21:23:17 +00:00
joerg
3018e10272 Import pkg_install-20090225:
- improve diagnostic for audit-packages wrapper
- new pkg_delete code:
  - topologocial ordering of packages
  - bails out before removing anything if it knows that it will run into
    problems later
  - new option -A: remove automatic installed packages that are no
    longer used (e.g. pkg_add foo; pkg_delete -A foo should not alter
    the list of installed packages)
- less chatty pkg_info for -Q
2009-02-25 21:21:40 +00:00