Commit Graph

87 Commits

Author SHA1 Message Date
wiz b81e8d4174 Fix merge bug. 2021-04-10 22:59:46 +00:00
nia 71dac91a9d fix build, sign comparison is an issue here 2021-04-10 20:07:57 +00:00
nia f46918ca21 merge pkg_install-20210410
- simplified version checking for netbsd, treat 9.0 and 9.1 as compatible
- minor man page updates
2021-04-10 19:49:59 +00:00
maya 3b87c75504 Merge pkg_install-20201218 2020-12-18 20:07:39 +00:00
maya be7e67f290 Merge pkg-install-20201218 2020-12-18 17:32:41 +00:00
maya b78f5c4f5d import pkg_install version 20201218 from pkgsrc
- Support continuing to install to /var/db/pkg if it exists and the
new pkgdb doesn't.
In the future, we can warn about this once we have tested advice that
we can give to users who want to move the location of pkgdb.

- Don't do anything about /var/db/pkg on non-NetBSD-base.
This creates conflicts with other package managers that also install to
/var/db/pkg.
2020-12-18 17:19:16 +00:00
christos e84e9f5696 Don't try to memcpy (size_t)-1 bytes! 2020-12-12 18:19:34 +00:00
wiz de1f604daa merge pkg_install-20201212 2020-12-12 11:00:57 +00:00
wiz f5c2953af3 Merge pkg_install-20201205 2020-12-05 16:21:26 +00:00
wiz c42605055f merge pkg_install after import of 20201202 version 2020-12-02 13:53:50 +00:00
christos 1124ae8b50 Avoid strict aliasing issue by using a separate buffer.. 2020-09-07 00:36:53 +00:00
christos 75d16b030d Handle HAVE_NBTOOL_CONFIG_H 2020-01-12 21:31:03 +00:00
joerg 9eb3d41e85 Merge pkg_install-20191008 2019-10-13 21:56:14 +00:00
kre 1fb928b64f Use __UNCONST() rather than a simple cast to free a const char *
while avoiding gcc noise.
2019-04-06 08:29:01 +00:00
sevan c7785e7255 Fix merge conflicts from pkgsrc-20190405 import 2019-04-06 00:05:47 +00:00
sevan 3393b8dcf9 pkg_install-20190405 2019-04-05 23:41:58 +00:00
joerg 9fdc611c5c Mark all files dead that should never have been imported. 2018-03-27 23:11:25 +00:00
sevan 456aa9858b Import regenerated catalog file 2018-03-27 22:51:43 +00:00
sevan 22cc783087 Import regenerated catalog files 2018-03-27 22:47:00 +00:00
sevan b20b630e2b Import pkg_install-20180325. 2018-03-25 04:04:36 +00:00
maya 7c604edb4c Merge pkg_install-20171030
Bump version to 20171030 for netpgpverify fixes.
Add zsh to default_acceptable_licenses.
Undef bootstrap hack.

Fix OpenSSL 1.1.0 build
OpenSSL 1.1.0 makes xkusage and ex_flags opaque.
Use X509_check_ca rather than a custom and nearly identical implementation.
This is available since OpenSSL 0.9.8 (even in RHEL5).
This is also done because we cannot implement it identically under
OpenSSL 1.1.0 due to missing getters.
Test EXFLAG_XKUSAGE rather than zero xkusage test no usage to avoid openssl
1.1.0 getter returning a different code on this case.
Use getter for xkusage in the non-zero test case.
Provide fallback definitions for getters.

PR pkg/52298, PR pkg/52648
2018-02-04 09:00:51 +00:00
maya 34c9ee37a0 Import pkg_install-20171030 2018-02-04 08:20:39 +00:00
joerg b1d15cef7f Merge pkg_install-20170419. 2017-04-20 13:18:23 +00:00
joerg e64dcdc0b6 Import pkg_install-20170419. 2017-04-20 13:12:46 +00:00
christos 32d170f209 need <sys/param.h> before defining MIN/MAX 2017-01-12 22:57:26 +00:00
maya 2732ba09ec Delete bpm(1)
It hasn't worked in a long time.

PR bin/51268
2016-06-25 18:05:57 +00:00
mbalmer e06559ad98 use a verb in the authors section for all entries 2015-10-10 10:08:12 +00:00
prlw1 9521ae7bfd Fix typos 2015-04-28 09:48:30 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
joerg 405b1c40db xasprintf uses format strings. 2014-01-07 02:15:27 +00:00
khorben 725c35c2a7 Fixed installation of signed packages. Some variables part of struct
signature_archive were not initialized properly, therefore randomly failing
in the verify_signature_read_cb() callback.

Partly closes PR pkg/48194; pkgsrc needs to be updated as well.

"please commit" agc@

XXX pull-up to netbsd-6
2013-09-11 12:59:19 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
martin cd0bb111d3 var_get_memory():
if no eol is found in the string we set "next" to NULL, assign it
to "buf" and then check the loop condition by dereferencing it - which
does not work well.
Change the loop condition to first check for buf == NULL.
2013-05-16 19:19:44 +00:00
wiz 9dc14f8abd Merge pkg_install-20130420. 2013-04-20 15:29:22 +00:00
wiz ac52c41608 Import pkg_install from current pkgsrc.
Licence changes and less warnings when opsys doesn't match build
host opsys version, and documentation updates.
2013-04-20 15:26:52 +00:00
wiz 8416dd0a6e melt more snowflakes until they all look like pkgsrc 2012-02-21 18:36:16 +00:00
wiz 18feb27734 melt snowflakes 2012-02-21 18:27:05 +00:00
wiz 75402d0165 Import pkg_install-20120221 for joerg.
Bug fix already there, this just bumps version.
2012-02-21 18:25:15 +00:00
wiz 34653e01b1 Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdirectories are missing
in the path to package directory in /var/db/pkg.
2012-02-21 13:32:45 +00:00
tron f5158aee04 Resolve conflicts from last import. 2012-02-19 17:49:09 +00:00
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
christos a04731e090 avoid non-literal strings. 2011-08-16 08:29:15 +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
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 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