The NetBSD Project

CVS log for pkgsrc/pkgtools/pkg_install/files/lib/lib.h

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / lib

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Feb 18 12:55:11 2025 UTC (20 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, HEAD
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -1 lines
pkg_install: Hide stdout if upgrading/refreshing.

Helps avoid problems where users see pkg_delete messages about removing
configuration files even though they are still in use and required, as
well as annoyingly repeating MESSAGE files on every upgrade or refresh.

Packages that do not have an existing version (i.e. new installs)
continue to show install script output as well as MESSAGE files, and
explicit pkg_delete operations will obviously show deinstall script
output too.

From Jonathan Perkin <jperkin@smartos.org>
via drecklypkg commit $64df139d33d2af103f51a832c2f253ff068dd743

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Dec 11 10:06:53 2020 UTC (5 years, 11 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -1 lines
pkg_install: Introduce support for CHECK_OS_VERSION.

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.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Dec 2 12:10:38 2020 UTC (5 years, 11 months ago) by wiz
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +2 -2 lines
pkg_install: mark show_version as noreturn since it exits

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Jul 1 10:03:20 2020 UTC (6 years, 4 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +21 -2 lines
pkg_install: Fix and speed up "pkg_admin rebuild-tree".

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.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Feb 26 23:45:02 2018 UTC (8 years, 8 months ago) by ginsbach
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -2 lines
pkg_install-20180226:
- add option to include IGNORE_URL pkg_install.conf entries in audit
  but flagged as "ignored".
- bump version to 20180226

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Apr 19 21:42:50 2017 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -2 lines
pkg_install-20170419:
- Convert to libarchive 3.x interfaces, avoiding the legacy glue.
- Rename local copy of netpgpverify to match installed headers.
- Shuffle bootstrap code to reduce special cases in pkg_add.
- Always read/write file names in tar archives as binary. While they are
  supposed to be UTF-8, locale conversion creates more problems than it
  solves here.
- Fix const correctness in gpg_verify.
- Add format string annotation for xasprintf for GCC-like compilers.
- Restrict supported archive formats for binary packages to ar (signed
  packages) and tar (actual content) with uncompressed/gzip/bzip2/xz as
  compression choices. This reduces the exposed libarchive surface.
- The pkg-vulnerability file correspondingly supports only the same
  compression choices.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Thu Oct 15 13:31:27 2015 UTC (11 years, 1 month ago) by sevan
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +1 -4 lines

Do not check for or include sys/param.h
This resolves issues on platforms which MACHINE & MACHINE_ARCH is explicitly
defined, such as OpenBSD/amd64 & Bitrig/amd64 where we would like to build with
MACHINE_ARCH=x86_64 but can't as a platform check fails when installing
packages after bootstrap
pkg_add: Warning: package `digest-20121220' was built for a platform:
pkg_add: OpenBSD/x86_64 5.8 (pkg) vs. OpenBSD/amd64 5.8 (this host)

Tested on
Mac OS X Tiger/PowerPC
OpenBSD
Bitrig
Solaris 10/SPARC
FreeBSD 10.2-RELEASE & 11-CURRENT
DragonFlyBSD
Debian 8
OmniOS

Reviewed by joerg@

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Sep 1 12:14:06 2015 UTC (11 years, 2 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -4 lines
Implement inline package signature verification.

This replaces calling out to an external gpg command for verification
with inline verification using the security/netpgpverify library.

Bump version to 20150901.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Dec 30 15:13:21 2014 UTC (11 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +1 -5 lines
Remove pkg_views support, second part: infrastructure.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Jun 16 23:02:49 2010 UTC (16 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -2 lines
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.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Apr 14 18:24:58 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -7 lines
pkg_install-20100405:
- 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.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Feb 20 04:40:03 2010 UTC (16 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5 lines
pkg_install-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Feb 3 19:28:30 2010 UTC (16 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
pkg_install-20100204:
Fix an enum to prevent crashes later (PR 42734)

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Feb 3 14:20:14 2010 UTC (16 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2 lines
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

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Jan 22 13:30:42 2010 UTC (16 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +15 -5 lines
pkg_install-20100122:
- Refactor man pages:
  - Move description of environmental variables into pkg_install.conf(5)
  - Remove a bunch of dead references
  - Avoid using hard-coded path names that can easily be overridden by
    the user.
- Refactor pkgdb related logic, so that -K behaves consistently.
- Add some helper functions to isolate more places from the pkgdb
  layout.
- Sync license list.
- Handle PKG_REFCOUNT_DBDIR consistently as option too.
- Utilize connection cache from libfetch.
- Add helper target for cat pages updates.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Aug 16 21:10:15 2009 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -1 lines
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.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Aug 6 16:53:34 2009 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -2 lines
pkg_install-20090806:
- pkg_add: add support to check license conditions before installation
- pkg_delete: add -k option to skip over preserve packages.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Aug 2 17:56:45 2009 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +6 -3 lines
pkg_install-20090727:
Make pkg_install WARNS=4 clean and fix a number of lint warnings.
Based on reports from veego about warnings with older GCC releases in
pkg_delete, where a variable is potentially used uninitialized.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Apr 25 21:31:13 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +11 -1 lines
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.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Apr 24 14:00:26 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +8 -4 lines
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.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Apr 24 01:03:41 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
Constify.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Apr 23 19:35:52 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -6 lines
Remove remaining parts of @mtree support.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Apr 23 19:34:04 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -5 lines
Remove support and documentation for @ignore_inst.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Mar 8 14:50:37 2009 UTC (17 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -7 lines
pkg_install-20090307:
Simplify archive handling by depending on archive_read_finish and the
close callback where needed. Fixes a file descriptor leak as side
effect as reported by wiz.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Feb 28 16:03:56 2009 UTC (17 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -4 lines
pkg_install-20090228:
Integrate the PKG_PATH logic for tightly with the find_archive logic:
- remember initial current working directory from the time PKG_PATH is
  processed, it will be used as reference for all relative entries
- remove now redundant fchdir dance in pkg_add
- pass down to find_archive if this is a top-level package (e.g.
  requested on the command line) or not; the location of top-level
  packages is searched for packages first and for URLs or path names the
  PKG_PATH itself is not processed (e.g. pkg_add foo/bar not look into
  PKG_PATH for bar). This addresses PR 33884 in a different way.
- document the rules for finding packages more explicitly
- allow specifying PKG_PATH in pkg_install.conf as well; environment
  takes precendence.
- remove PKG_PATH related logic in pkg_info(1), it doesn't deal with
  PKG_PATH anyway
- remove PKG_PATH, PKG_TMPDIR and TMPDIR description in pkg_info(1),
  they are no longer used

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Feb 13 11:21:07 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
Close the archive on fatal errors during signature validation. This can
happen e.g. if pkg_add finds a directory with that name.
Remove a bunch of HAVE_SSL conditionals that no longer apply as GPG
support is back in.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Feb 13 01:31:42 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
pkg_install-20090213:
Fix pkg_delete -d:
- ignore @dirrm commands, directories are removed already on demand
- use local copy of dir before changing it, the caller expects it
unmodified for the call to pkgdb_remove

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Feb 2 12:35:01 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +81 -96 lines
Merge pkg_install-20090201 from pkg_install-renovation branch.

- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
  around pkg_admin. They try to mimic the classic options if used sanely.
  "pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
  - progress bar is currently missing for downloads
  - "pkg_add -" is no longer supported
  - no adhoc check for conficts between dependencies and already
    installed packages
  - "pkg_add -s" has been replaced with an option in pkg_install.conf,
    verification of plain detached GPG signatures is no longer supported
  - optional check for vulnerabilities before adding a package
  - if /var and /usr/pkg are on different fileystems it is twice as fast
    now
  - conflicts due to overlapping plists are checked before installation
  - pkg_add no longer plays with the process limits
- pkg_add and pkg_delete have a new destdir option; scripts have to
  either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
  entry from pkgdb

Revision 1.42.2.19: download - view: text, markup, annotated - select for diffs
Mon Feb 2 11:55:16 2009 UTC (17 years, 9 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.18: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.18: +3 -1 lines
pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array

Revision 1.42.2.18: download - view: text, markup, annotated - select for diffs
Tue Jan 27 22:24:05 2009 UTC (17 years, 9 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.17: preferred, colored
Changes since revision 1.42.2.17: +6 -2 lines
pkg_install-20090127:
Add options to specify user-id and keyrings for GPG operations.

Revision 1.42.2.17: download - view: text, markup, annotated - select for diffs
Thu Jan 8 00:01:31 2009 UTC (17 years, 10 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.16: preferred, colored
Changes since revision 1.42.2.16: +2 -1 lines
pkg_install-20090108:
pkg_add optionally checks for vulnerable packages and bails out.

Revision 1.42.2.16: download - view: text, markup, annotated - select for diffs
Tue Dec 30 15:55:57 2008 UTC (17 years, 10 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.15: preferred, colored
Changes since revision 1.42.2.15: +10 -2 lines
pkg_install-20081230:
Add initial support for secure GPG signatures.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Sep 17 15:21:30 2008 UTC (18 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -1 lines
pkg_install-20080916:
Merge from changes for read_plist from pkg_install-renovation to always
initialize the plist and add append_plist for the one case where this is
not desired. Fixes PR 39276.

Revision 1.42.2.15: download - view: text, markup, annotated - select for diffs
Thu Aug 21 16:04:39 2008 UTC (18 years, 2 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.14: preferred, colored
Changes since revision 1.42.2.14: +2 -1 lines
pkg_install-20080821:
- Recognize file:// urls to prevent double quoting.
- Fix some err/errx botchups.
- Add configuration options for verbose logging of net IO, enabling of
active FTP (switching to passive FTP as default) and for ignoring proxy
settings.
- When iterating over PACKAGES to find a match, warn if an entry can't
processed (e.g. bad URL).

Revision 1.42.2.14: download - view: text, markup, annotated - select for diffs
Mon Aug 11 15:58:15 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.13: preferred, colored
Changes since revision 1.42.2.13: +2 -1 lines
pkg_create actually does want to mess with the plist before reading it,
so introduce append_plist to give the old behavior and unbreak
pkg_create.

Revision 1.42.2.13: download - view: text, markup, annotated - select for diffs
Tue Aug 5 22:56:24 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.12: preferred, colored
Changes since revision 1.42.2.12: +10 -15 lines
pkg_install-20080806:
Provide and use internal implementation of rm -rf.

Revision 1.42.2.12: download - view: text, markup, annotated - select for diffs
Tue Aug 5 19:09:35 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.11: preferred, colored
Changes since revision 1.42.2.11: +2 -1 lines
Use a predictable name for the +VIEWS temporary file.

Revision 1.42.2.11: download - view: text, markup, annotated - select for diffs
Tue Aug 5 19:01:27 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.10: preferred, colored
Changes since revision 1.42.2.10: +2 -1 lines
Add another constant for temporary +REQUIRED_BY files. Don't use mkstemp
in pkg_delete for that purpose. If more than one produce tries to change
this file, breakage will happen anyway and this means the system is
somewhat self-healing.

Revision 1.42.2.10: download - view: text, markup, annotated - select for diffs
Sat Aug 2 20:33:50 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.9: preferred, colored
Changes since revision 1.42.2.9: +8 -2 lines
Most memory allocation failures were fatal already and the majority of
the rest lacked an explicit check. Add the usual x* wrappers around
malloc and friends that explicitly terminate on error and use them in
all but Dewey.

Revision 1.42.2.9: download - view: text, markup, annotated - select for diffs
Wed Jul 30 15:38:37 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.8: preferred, colored
Changes since revision 1.42.2.8: +5 -2 lines
pkg_install-20080730:
Add destdir installation support for pkg_add and pkg_delete.
This does not chroot install/deinstall scripts, they have to
support it directly (using PKG_DESTDIR) or they have to be disabled.

Revision 1.42.2.8: download - view: text, markup, annotated - select for diffs
Wed Jul 30 15:02:18 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.7: preferred, colored
Changes since revision 1.42.2.7: +1 -3 lines
Internal implementation of mkdir_p.

Revision 1.42.2.7: download - view: text, markup, annotated - select for diffs
Sat Jul 5 17:26:39 2008 UTC (18 years, 4 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.6: preferred, colored
Changes since revision 1.42.2.6: +2 -2 lines
pkg_install-20080705:
Based on a discussion with tls@, make the key validation stricter.
Don't allow CA keys for packages or pkg-vulnerabilities.
Require CODE SIGN as key usage attribute for packages.
Require that no key usage attribute is set for pkg-vulnerabilities.
The latter is not finalised and might change again.

Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Tue May 20 15:00:44 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.5: preferred, colored
Changes since revision 1.42.2.5: +2 -2 lines
Restore older (and somewhat bogus) behaviour of modifying the +CONTENTS
file when -p is given to pkg_add.

Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Mon May 19 10:42:41 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.4: preferred, colored
Changes since revision 1.42.2.4: +2 -1 lines
Add variable to control how packages are installed.
VERIFIED_INSTALLATION supports:
never (default): print signature, but don't care about it.
always: check for valid signature, abort otherwise
trusted: ask for packages without valid signature
interactive: always ask before installation

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Mon May 12 12:12:07 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.3: preferred, colored
Changes since revision 1.42.2.3: +2 -1 lines
Add quick_pkg_match to decide whether a pattern can match a package at
all. Use it to speed up pkg_match and the audit-history backend.
This improves ``pkg_admin audit'' from 1.333s to 0.098s and
``pkg_admin audit php libpng'' from 0.034s to 0.029s on my laptop.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Sun May 11 20:20:38 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.2: preferred, colored
Changes since revision 1.42.2.2: +22 -2 lines
Add support PKCS7 signatures in packages and pkg-vulnerabilities.
The support for non-native OpenSSL still needs to be done, e.g.
ensure static linkage for that. Documentation is essentially missing.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Thu May 8 23:34:27 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.1: preferred, colored
Changes since revision 1.42.2.1: +14 -1 lines
Move configuration parser into libinstall.
Add a new VERIFY_CMD to be used by pkg_add soon.

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 26 17:44:23 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -80 lines
Add a clean pkg_add implementation on top of libarchive and libfetch.
Known regressions:
- "pkg_add -" (aka reading from stdin) is currently not supported
- "pkg_add -s" is not supported either
- no progress reports for the downloads
- binary packages with hardlinks created by pkg_create before
  pkg_install-20080422 will not extract correctly (libarchive issue)
- no adhoc check for potential conflicts between dependencies and
  already installed packages

Features:
- Twice as fast for the typical case of /var/tmp and /usr/pkg on
  different filesystems
- Standalone
- implicit conflict detection before actual installation.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Apr 26 17:40:01 2008 UTC (18 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkg_install-renovation-base, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +79 -9 lines
Revert last change, it was not intended to go into HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Apr 26 14:56:34 2008 UTC (18 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -80 lines
Add a clean pkg_add implementation on top of libarchive and libfetch.
Known regressions:
- "pkg_add -" (aka reading from stdin) is currently not supported
- "pkg_add -s" is not supported either
- no progress reports for the downloads
- binary packages with hardlinks created by pkg_create before
  pkg_install-20080422 will not extract correctly (libarchive issue)
- no adhoc check for potential conflicts between dependencies and
  already installed packages

Features:
- Twice as fast for the typical case of /var/tmp and /usr/pkg on
  different filesystems
- Standalone
- implicit conflict detection before actual installation.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Apr 18 17:16:44 2008 UTC (18 years, 7 months ago) by joerg
Branches: MAIN
Branch point for: pkg_install-renovation
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -3 lines
Move get_dash_string to pkg_create as only user.
Remove str_lowercase.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:21:32 2008 UTC (18 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +9 -1 lines
pkg_install-20080404:
Switch pkg_info to use libfetch for remote access.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Feb 19 15:16:24 2008 UTC (18 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +18 -1 lines
pkg_install-20080219:
Add new parser for pkg_vulnerabilities, that handles decompress
transparently and internally. Preliminary tests with a modified
audit-packages show a speed increase by 2 for common operations
like listening all vulnerable installed packages.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Feb 2 16:21:45 2008 UTC (18 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -2 lines
pkg_install-20080202:
Convert pkg_info to use libarchive instead of tar for binary package
handling. As a side effect pkg_info on remote packages will use
one FTP instance per argument, but will try to fetch only the meta data.
This reduces time for pkg_info -X on a full binary repository from 36.9s
to 18.1s for the cache hot case (PKG_TMPDIR on tmpfs for the old
pkg_info). Thanks to tnn@ for testing.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Nov 30 00:30:40 2007 UTC (18 years, 11 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -1 lines
Do not install a package if some of the installed packages would
conflict with it. This fixes PR 37451.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Aug 29 15:42:39 2007 UTC (19 years, 2 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1 lines
* When adding or checking a package using pkg_admin(1), give a more
  meaningful warning if the file is a symlink whose target doesn't exist.
  The message has now been changed from:

    pkg_admin: netbsd32_compat30-extras: File `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' is in +CONTENTS but not on filesystem!

  to:

    pkg_admin: Symlink `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' exists and is in +CONTENTS but target does not exist!

* Pass values for --sysconfdir (and --prefix) to the configure script
  instead of passing them through CPPFLAGS.  Both SYSCONFDIR and PREFIX
  are only used by audit-packages, and the audit-packages Makefile
  already handles passing these values inherited from the configure
  script.  This avoids compiler warnings that, e.g. SYSCONFDIR has been
  redefined on the command line.

* Fix quoting for arguments to the configure script -- :Q instead of
  \"\".

Bump version to 20070828.  Reviewed by <joerg>.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Aug 15 02:08:40 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -1 lines
Start abstracting pkgdb access by introducing pkgdb_pkg_file.
The function returns the path name of the given file for the package.
The memory needs to be freed by the caller.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 15 01:49:02 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
Make _pkgdb_getPKGDB_DIR return const char * and fix fallout.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Aug 12 18:54:09 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
Restore ignorance of entry types for lsbest and lsall for now.
The check for already installed packages depends on being able
to run them in PKGDB_DIR. This is clearly obnoxius, but leave it
for later.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Aug 12 16:47:18 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -11 lines
- Introduce find_best_matching_file and match_local_files. This replace
  the functionality offered by findmatchingname and findbestmatching
  name. They optionally strip the suffix from the filename before
  matching it, instead of modifying the pattern directly.
  Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.

Bump version to 20070812.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Aug 9 23:18:31 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2 lines
Change interface of is_automatic_installed and
mark_as_automatic_installed to take a package name and not a full path.
Add assertions to test for this.

Drop a few islinktodir checks.

Change pkg_info to use iterate_pkg_db instead of scanning the directory
by hand. As a side effect don't try to check for the pkgdb dir first,
let pkgdb_dump and iterate_pkg_db handle that.

Make pkgdb_dump return failure if it can't open the package db.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Aug 8 22:33:39 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +12 -3 lines
Replace note_whats_installed, add_to_list_fn and generally most
users of findbestmatchingname and findmatching name with more
descriptive and easier to use iterator functions. This functions
are a first step to abstract away pkgdb layout from most parts of
the code. It also helps to reduce side effects and point out potential
bugs in this code.

Fix a potential, but practically irrelevant buffer overflow.

No longer allow symbolic links directly in pkgdb to store the meta
data of individual packages outside. E.g. /var/db/pkg/atk-1.18.0
must be a directory and not point to it. This is not yet enforced in
all parts of the code, more changes will follow.

Bump version to 20070808.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Aug 3 13:16:00 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -1 lines
- only build pkg_admin, pkg_create and pkg_info for --enable-bootstrap
- for pkg_create, split-off the package creation from the plist
  processing. package creation is disabled for --enable-bootstrap
- change package creation to use libarchive
- add two options (-u and -g) to override file system ownership
- pkg_create now creates files in the tarball with correct owner/group
  based on -u/-g or @owner/@group
- add a function to compute the +CONTENTS file in memory

Bump version to 20070802.
Review of a slightly older version by jlam@

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jul 30 07:16:21 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -4 lines
Push pkg_perform prototype into the individual packages.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Jul 26 11:30:56 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -2 lines
After the obsoletion on March, remove the support for require scripts.
Also remove the documentation of the mtree parts as it is not supported.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jul 25 15:01:47 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -9 lines
Mostly deorbit mtree support:
- pkg_create bails out with -m
- pkg_add ignores mtree specs in packages and prints a warning.
  It does not remove the file like before.
- remove now obsolete documentation.

pkg_info still prints the information and pkg_admin ignores the files.
Make the dependency on the tools a runtime dependency.
Take maintainership of pkg_install and bump version to 20070725.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Jul 20 22:22:53 2007 UTC (19 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -6 lines
Split pattern related functions from lib/str.c off into lib/opattern.c.
Rename pmatch to pkg_match and add new function pkg_order that
implements the order logic used by pkg_add internally.

Change the interface of findmatchingname's callback to take the pattern
used for the matching as first argument. The new pkg_order function
takes it and it doesn't hurt in other cases. Adjust callers and
corresponding callbacks accordingly.

Remove an unused matchfn typedef in dewey.c.

Bump to 20070720. OK jlam@

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jul 16 09:57:59 2007 UTC (19 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Merge remaining small changes from NetBSD, most of all the pkgsrc.7 man
page. Fix build on !NetBSD. Rebuild man pages with nroff -mandoc on
NetBSD current for consistency. Make it DESTDIR safe. Remove the note
that src/usr.sbin/pkg_install is the authoritive version, it won't be
any longer.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Apr 24 13:52:05 2006 UTC (20 years, 6 months ago) by dillo
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
Sync with src, version 20060424:
	Add support for creating summary file containing all information
	about a package repository needed by package managing software.
	This allows better use of remote binary package repositories.

	Discussed on tech-pkg.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Apr 6 06:49:30 2006 UTC (20 years, 7 months ago) by reed
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -2 lines
Welcome to version 20060405.

pkg_add also check for USE_ABI_DEPENDS.

Check if USE_ABI_DEPENDS or IGNORE_RECOMMENDED was set
when this package was built. IGNORE_RECOMMENDED is now historical.

For the cat man page, I manually made it say "pkgsrc" instead of
"NetBSD".

I committed to NetBSD's src/usr.sbin/pkg_install/ first :)

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Apr 4 06:32:59 2006 UTC (20 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
Sync with src/usr.sbin: whitespace diffs only.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Dec 6 01:08:09 2005 UTC (20 years, 11 months ago) by ben
Branches: MAIN
CVS tags: pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Specify the full path to tar when unpacking a package.
Modify pfcexec so the new process file name can be different from argv[0].
This fix is from Peter Postma, and it addresses PR#32228

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Nov 28 01:50:21 2005 UTC (20 years, 11 months ago) by ben
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
Correct PAX_CMD to be pax.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 23 04:49:51 2005 UTC (20 years, 11 months ago) by ben
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1 lines
Remove unused variables, fix variable names to avoid shadowing globals,
and add PAX_CMD fallback macro.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Nov 22 15:44:59 2005 UTC (20 years, 11 months ago) by ben
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +26 -2 lines
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().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Nov 5 13:20:09 2005 UTC (21 years ago) by wiz
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +17 -3 lines
Sync with base system as of Sat Nov  5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Feb 4 09:10:13 2005 UTC (21 years, 9 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +15 -1 lines
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}.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Dec 29 12:16:56 2004 UTC (21 years, 10 months ago) by agc
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -2 lines
Pull in portability changes from src, and bump version to 20041226:

	Introduce a new abstraction in the C code, called MaxPathSize.  All
	previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed
	to use MaxPathSize instead.

	If MAXPATHLEN is not defined, then assume a default value of 1024
	(this is primarily for use on the Hurd).

	The reason for this is that some older platforms define FILENAME_MAX
	to be 14, although MAXPATHLEN is 1024. On BSD-derived systems,
	FILENAME_MAX And MAXPATHLEN are both 1024.

	Bump pkg_install version to 20041226.

	These modifications have been tested so far on a NetBSD-current bulk
	build.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Dec 9 20:10:34 2004 UTC (21 years, 11 months ago) by erh
Branches: MAIN
CVS tags: pkgsrc-2004Q4-base, pkgsrc-2004Q4
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -2 lines
Make binary updates work better when there are dependant packages to
update also.  Specifying -u twice will now update the named package
and its dependencies.
Also make sure Fake really means Fake, even if update is specified.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Nov 20 06:42:12 2004 UTC (22 years ago) by grant
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
sync with src:

no trailing comma at end of enum.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Nov 2 00:10:15 2004 UTC (22 years ago) by erh
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Add a -N option to pkg_delete to delete registration information for a package
but not its files.
Override PKG_DELETE when building this package so -N can be used to
upgrade an existing install.
Bump version to 20041101.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Apr 11 06:56:11 2004 UTC (22 years, 7 months ago) by rh
Branches: MAIN
CVS tags: pkgsrc-2004Q3-base, pkgsrc-2004Q3, pkgsrc-2004Q2-base, pkgsrc-2004Q2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
Update pkg_install to 20040411, pulling up the changes in the NetBSD source
tree:

Make pkg_add recognise binary packages built with ignored recommendations
(IGNORE_RECOMMENDED set in the presence of RECOMMENDED pre-requisites).
This change is fully backward-compatible: binary packages have set the
corresponding BUILD_INFO since RECOMMENDED was implemented.  Packages
built before that time will install as before.
Bump PKGTOOLS_VERSION to 20040411.
This closes PR pkg/24712 by Thomas Klausner.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Apr 9 18:38:12 2004 UTC (22 years, 7 months ago) by tv
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -1 lines
Merge 20040409: Parameterize the umask calls so that defs.*.mk can change
it on a per-opsys basis (and so that mk.conf can override it to match what
the pkgsrc builder is using).

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Feb 7 10:37:53 2004 UTC (22 years, 9 months ago) by grant
Branches: MAIN
CVS tags: pkgsrc-2004Q1-base, pkgsrc-2004Q1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
sync with NetBSD-current's pkg_install from 20040207.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 14 23:55:29 2004 UTC (22 years, 10 months ago) by jlam
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -1 lines
Update pkgtools/pkg_install to 20040114.  Changes from version 20040106
include:

* use ${MACHINE_ARCH} instead of what uname() puts into utsname.machine.
  the former represents the CPU architecture, which is what is recorded
  in binary packages; also allow the OS name to be overridden, as pkgsrc
  doesn't always use the value of utsname.sysname.

* allow adding depoted packages if another package with the same
  ${PKGBASE} is already installed as this is explicitly allowed for in
  pkgviews.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Dec 20 04:23:05 2003 UTC (22 years, 11 months ago) by grant
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +16 -2 lines
Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031220.
New features include OS/arch/version checking and a large speed
improvement to pkg_info.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Oct 29 23:00:28 2003 UTC (23 years ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2003Q4-base, pkgsrc-2003Q4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -5 lines
Sync pkgtools/pkg_install with src/usr.sbin/pkg_install from 20031003.
New features include fetching binary packages using HTTP (thanks wiz!)
and some minor speed optimizations for pkg_delete.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Sep 23 13:22:42 2003 UTC (23 years, 1 month ago) by grant
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2 lines
sync with NetBSD-current after updates from wiz.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Sep 23 07:13:53 2003 UTC (23 years, 1 month ago) by grant
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +19 -11 lines
sync with NetBSD-current's pkg_install-20030923.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Sep 3 14:06:00 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -7 lines
Update to pkg_install-20030824.  Changes from the previous version include:

    * Check for errors in reading from the file descriptor for the ftp
      process, and correct the error messages.

    * Nuke some code for older NetBSDs that's better handled in
      pkgtools/libnbcompat.

    * Don't prevent user from using views other than the default view.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Sep 2 08:28:33 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Sync to latest pkg_install sources from the HEAD for pkg_delete
optimizations and man page fixes.  Also use recent src2nbcompat to reverse
the order that "config.h" and <nbcompat.h> are included in *.[ch] files.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Sep 1 16:27:15 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Update pkg_install to 20030823, which has the changes to support
package views.  Pkgsrc changes include:

* Convert to use pkgtools/libnbcompat so that it's easier to keep
  this in sync with src/usr.sbin/pkg_install.

* Add a src2nbcompat script that converts src/usr.sbin/pkg_install
  into an appropriate start for pkgtools/pkg_install.  The script
  removes the Makefiles, adds CPP inclusion guards around each
  #include <...> line, and includes <nbcompat.h> at the top of each
  *.c file.  This should make it even easier to keep sources in
  sync with the HEAD.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>