summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
AgeCommit message (Collapse)AuthorFilesLines
2021-06-05pkg_install: remove MESSAGE_SUBSTnia1-3/+1
2021-06-05pkg_install: remove MESSAGE filenia1-35/+0
this completely fills the screen when it gets printed in the NetBSD installer, and contains documentation that belongs (and is) elsewhere.
2021-05-17Adapt outdated defaults to recent openssl versionsmartin1-3/+2
2021-04-10pkg_install: add a cast to satisfy GCC, NFCInia1-3/+3
2021-04-10pkg_install-20210410: simplify checking for netbsd versionsnia2-47/+39
only care about the first number, unless it's -current
2021-03-08pkg_install-20210308nia3-20/+21
- update pkg_add's examples in its man page for 2021 compliance.
2021-03-06pkg_install: Bump PKGREVISON to include odbl-v1 as acceptable licenseryoon1-1/+2
2021-03-06pkg_install: Add odbl-v1 to default acceptable license listryoon1-1/+2
2020-12-18pkg_install-20201218maya2-13/+25
- 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-12pkg_install: carry over bugfix from srcwiz1-11/+12
christos: Don't try to memcpy (size_t)-1 bytes!
2020-12-12pkg_install: remove stray extra tab in perform.cgutteridge1-3/+3
2020-12-12pkg_install: spaces->tabs for consistency in perform.cgutteridge1-6/+6
2020-12-11pkg_install-20201212: handle error case betterwiz2-9/+16
When pkg_delete fails, report it and error out.
2020-12-11pkg_install: Introduce support for CHECK_OS_VERSION.jperkin6-8/+29
When set to "no", pkg_add will not issue a warning if the host OS version does not exactly match the OS version the package was built on. This can be useful on many OS where the kernel release version has nothing to do with userland compatibility, or where it may differ without being ABI incompatible. Ultimately it would be ideal if the version checks were smart enough across all our supported OS to not need this, but until then this is useful for users who know what they're doing. Bump version to 20201211.
2020-12-06pkg_install: update to 20201206wiz2-4/+8
Convert a core dump I've been seeing into an error abort.
2020-12-05pkg_install: update to 20201205wiz2-6/+7
Improve warning about old database to mention moving the refcount db too.
2020-12-02pkg_install: remove two unused variableswiz1-3/+1
2020-12-02pkg_install: mark show_version as noreturn since it exitswiz1-2/+2
2020-12-02pkg_install: Merge some changes from NetBSD src/wiz3-6/+18
No effective change intended, just ifdefs for bootstrapping.
2020-12-02*: move default database directory from /var/db/pkg to ${PREFIX}/pkgdbwiz8-25/+36
As discussed in August 2020 and previously on pkgsrcCon 2019. Ok pkgsrc-pmc@
2020-10-28Bootstrap: Fix bootstrap on FreeBSD 12.1, likely broken by an issue in lld.maya2-4/+4
It looks like lld doesn't want to statically link a libarchive without resolving all of the symbols, even if only a few symbols are used. In order to resolve all of the symbols, we need to also link with -lmd. One generic way to do so is inspect Libs.private in the pkgconfig file. While pkgsrc is likely not at fault here, having a dysfunctional bootstrap is bad. We should check again in the future to see if this can be removed. Actually fixes PR pkg/55400.
2020-10-09pkg_install: fix stage in verbose log messagemcf1-3/+4
This function is also used to run with POST-INSTALL, so adjust the log message to match the argument passed to the install script.
2020-09-07pkg_install: carry over a commit from the src treewiz1-4/+7
Module Name: src Committed By: christos Date: Mon Sep 7 00:36:53 UTC 2020 Modified Files: src/external/bsd/pkg_install/dist/lib: plist.c Log Message: Avoid strict aliasing issue by using a separate buffer.. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/pkg_install/dist/lib/plist.c
2020-08-09pkgtools/pkg_install: fix pkglint warning about CHECK_PERMSrillig1-2/+2
2020-07-21pkg_install: BOOTSTRAP guard on libarchive-using functionsjmulder1-2/+4
Initial bootstrap builds of pkg_install don't use libarchive. Guarding this function (as other places are) with #ifndef BOOTSTRAP prevents 'implicit declaration of archive_...()' warnings on FreeBSD 12 and Xcode beta, which due to -Werror broke the bootstrap.
2020-07-01pkg_install: Update version to 20200701.jperkin4-15/+14
Includes fixes to +REQUIRED_BY generation, performance improvements, build fixes against newer libnetpgpverify, and better error messages. When combined with newer pkgin releases, this should now eliminate the various "pkg_add: Can't open +CONTENTS of depending package ..." errors that users had frequently observed during upgrades (joyent/pkgsrc#158, joyent/pkgsrc#190, joyent/pkgsrc#256, and many IRC logs).
2020-07-01pkg_install: Fix and speed up "pkg_admin rebuild-tree".jperkin6-45/+299
In the pkg_admin front end, instead of adding +REQUIRED_BY entries as they are found, which previously led to duplicate entries, cache the results and write out the files at the end. Underneath, add a caching version of iterate_pkg_db() that avoids the same pkgdb directory lookup for every installed package, but is only suitable for reads. Also add a cache for best_match lookups to avoid expensive matches each time. For all caches, use a simple hashing function to improve lookup performance. In summary, as well as fixing +REQUIRED_BY files, these patches reduce the wall/user/system time of "pkg_admin rebuild-tree" on a system with 12,762 packages installed down from 13m52s/11m20s/2m32s to just 1m4s/1m3s/0m1s.
2020-07-01pkg_install: Handle recursive upgrades correctly.jperkin1-38/+61
The list of dependencies held by packages during recursive upgrades was not refreshed after dependencies were themselves upgraded, leading to failures attempting to read +REQUIRED_BY files in package directories that no longer exist ("registration is incomplete!"). We now only perform the package match after the upgrades have completed. While here, hide the warning about dependencies not being fulfilled behind ForceDepending, as the whole point of using that mode is to ignore such issues with the assumption that the final state after updating will be correct.
2020-05-05pkg_install: Revert part of last commit.jperkin1-2/+2
We need to use the library Makefile so that libnetpgpverify is built. Fixes bootstrap.
2020-05-04libnetpgpverify now uses its own protected symbols, update build process toagc1-4/+2
account for this.
2020-04-30add afl-3.0 as acceptable default licenseplunky1-1/+2
2020-03-01pkgtools/pkg_install: add errno details when remove failsrillig1-3/+3
Before, it wasn't clear why removing the file failed. It could be ENOENT or EPERM or EBUSY, and these lead to different causes. https://mail-index.netbsd.org/pkgsrc-users/2020/02/28/msg030552.html
2020-01-26all: migrate homepages from http to httpsrillig1-4/+4
pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
2020-01-18*: Recursive revision bump for openssl 1.1.1.jperkin1-1/+2
2019-10-13Use tab for indendation as the rest of the block.joerg1-2/+2
2019-10-13Use __UNCONST to remove const attributes before free.joerg1-2/+2
2019-10-11pkg_install-20191008: Add pkg_admin digest commandjoerg4-10/+42
2019-10-08pkg_admin(1): sort commandsjoerg2-10/+10
2019-07-02Added CeCiLL-B license.jaapb1-1/+2
This is a free software license according to the FSF: https://www.gnu.org/licenses/license-list.en.html#CeCILL-B
2019-04-10libarchive: updated to 3.3.3adam1-2/+2
libarchive 3.3.3: Avoid super-linear slowdown on malformed mtree files Many fixes for building with Visual Studio NO_OVERWRITE doesn't change existing directory attributes New support for Zstandard read and write filters
2019-04-05Bump date for switch to cdn.NetBSD.orgsevan1-2/+2
2019-04-05Switch to using the CDN for fetching the pkg-vulnerabilities files.sevan1-3/+3
No negative responses on tech-pkg. ok gdt bsiegert
2019-02-10Revert previous for now.wiz1-2/+1
2019-02-06mk: allow Affero GPL by defaultwiz1-1/+2
This follows a recent TNF board decision.
2018-08-22Remove clauses 3,4 from TNF-only copyright blocks.maya1-8/+1
This is based on the decision The NetBSD Foundation made in 2008 to do so, which was already applied to src. This change has been applied to code which is likely not in other repositories. ok board@, reviewed by riastradh@
2018-08-14pkg_install: Sync with DEFAULT_ACCEPTABLE_LICENSES in mk/license.mkleot1-1/+4
Add `cc-by-sa-v4.0', `cc-by-v4.0' and `osl' to *default_acceptable_licenses to sync it with DEFAULT_ACCEPTABLE_LICENSES of mk/license.mk.
2018-04-25pkg_install-20180425: correctly detect package names in PKG_DBDIRjoerg2-8/+12
If PKG_DBDIR is /foo and a path like /foobar is given, it is not below PKG_DBDIR, so don't translate it into a package name look up. The old logic for giving a path to PKG_DBDIR remains for legacy compat.
2018-04-17pkg_install: Update to 20180417.jperkin2-9/+10
Fix an issue in pkg_create where we may have been using corrupted owner and group information. Noticed on macOS where libarchive would complain about the owner entry being too long. Reviewed by joerg. Also includes some manual page improvements committed recently.
2018-04-05X509_get_extended_key_usage and X509_get_extension_flags definitions are alsosevan1-3/+4
needed for LibreSSL. Tested on OpenBSD/amd64 6.3
2018-03-27regen catalog files using mandoc.sevan8-58/+55