The NetBSD Project

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

[BACK] Up to [] / pkgsrc / pkgtools / pkg_install / files / lib

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 19 21:42:50 2017 UTC (2 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: 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, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, HEAD
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

- 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.35 / (download) - annotate - [select for diffs], Tue Sep 1 12:14:06 2015 UTC (4 years, 7 months ago) by jperkin
Branch: 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, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

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.34 / (download) - annotate - [select for diffs], Thu Sep 12 11:03:10 2013 UTC (6 years, 6 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, 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
Changes since 1.33: +7 -1 lines
Diff to previous 1.33 (colored)


Revision 1.33 / (download) - annotate - [select for diffs], Tue May 15 16:43:54 2012 UTC (7 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: 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
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Check for defined before checking for empty, otherwise old make(1) fails
to build during bootstrap.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 1 21:40:01 2012 UTC (8 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Revert last. Don't hide issues. Pass down MANINSTALL via MAKE_ENV to get
the correct value.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 1 20:13:43 2012 UTC (8 years, 1 month ago) by jklos
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Don't fail if MANINSTALL is not defined.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Feb 28 18:15:26 2012 UTC (8 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.29: +7 -5 lines
Diff to previous 1.29 (colored)


Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 14 18:24:58 2010 UTC (9 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: 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
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

- 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

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 22 13:30:42 2010 UTC (10 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

- 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
- 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.27 / (download) - annotate - [select for diffs], Sat Apr 25 21:31:13 2009 UTC (10 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

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.26 / (download) - annotate - [select for diffs], Sat Feb 28 16:03:56 2009 UTC (11 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

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.25 / (download) - annotate - [select for diffs], Mon Feb 9 16:54:08 2009 UTC (11 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Fix !OpenSSL build/bootstrap.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 2 12:35:01 2009 UTC (11 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.23: +16 -8 lines
Diff to previous 1.23 (colored)

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
  - 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.23 / (download) - annotate - [select for diffs], Sat Apr 26 17:40:01 2008 UTC (11 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkg_install-renovation-base, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Revert last change, it was not intended to go into HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 26 14:56:34 2008 UTC (11 years, 11 months ago) by joerg
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

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

- 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.21 / (download) - annotate - [select for diffs], Sun Apr 6 17:47:27 2008 UTC (12 years ago) by joerg
Branch: MAIN
Branch point for: pkg_install-renovation
Changes since 1.20: +4 -2 lines
Diff to previous 1.20 (colored)

Don't build pkg_io.c during bootstrap.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 4 15:21:32 2008 UTC (12 years ago) by joerg
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Switch pkg_info to use libfetch for remote access.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Mar 10 12:14:32 2008 UTC (12 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Add datarootdir to shut up configure.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 19 15:16:24 2008 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.17: +11 -4 lines
Diff to previous 1.17 (colored)

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.17 / (download) - annotate - [select for diffs], Fri Nov 30 00:30:40 2007 UTC (12 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Do not install a package if some of the installed packages would
conflict with it. This fixes PR 37451.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 8 22:33:39 2007 UTC (12 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored)

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.15 / (download) - annotate - [select for diffs], Fri Jul 20 22:22:53 2007 UTC (12 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

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.14 / (download) - annotate - [select for diffs], Mon Jul 16 09:57:59 2007 UTC (12 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.13: +12 -6 lines
Diff to previous 1.13 (colored)

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.13 / (download) - annotate - [select for diffs], Sat Aug 19 14:38:52 2006 UTC (13 years, 7 months ago) by schwarz
Branch: MAIN
CVS Tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

make sure INSTALL gets passed to the Makefile

Revision 1.12 / (download) - annotate - [select for diffs], Mon Apr 24 13:52:05 2006 UTC (13 years, 11 months ago) by dillo
Branch: MAIN
CVS Tags: pkgsrc-2006Q2-base, pkgsrc-2006Q2
Changes since 1.11: +9 -2 lines
Diff to previous 1.11 (colored)

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.11 / (download) - annotate - [select for diffs], Tue Nov 22 15:44:59 2005 UTC (14 years, 4 months ago) by ben
Branch: MAIN
CVS Tags: pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

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.10 / (download) - annotate - [select for diffs], Mon Nov 14 09:17:40 2005 UTC (14 years, 4 months ago) by dillo
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Remove obsolete file from OBJS also.
Fixes PR 32071 by HEO SeonMeyong.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 5 13:30:31 2005 UTC (14 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Add new files.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 21 06:33:40 2004 UTC (15 years, 7 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4, pkgsrc-2004Q3-base, pkgsrc-2004Q3
Changes since 1.7: +4 -7 lines
Diff to previous 1.7 (colored)

Fix the version number of the package in the configure script, and modify
the Makefiles so that they can be built by really basic make programs.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 11 13:33:57 2004 UTC (16 years ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q2-base, pkgsrc-2004Q2, pkgsrc-2004Q1-base, pkgsrc-2004Q1
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

catch up with bootstrap-pkgsrc changes.

Just a comment doesn't seem to suffice in all cases.  For no-op commands,
use an explicit "true" invocation to avoid problems.  (A future merge of
current bmake may fix this issue.)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 23 07:44:51 2003 UTC (16 years, 6 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2003Q4-base, pkgsrc-2003Q4
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

add --with-{ftp,mtree,pax,tar} to allow overriding the commands that
pkg_install calls, and pass the full path for each from the pkg Makefile.

fixes issue with pkg_add and pkg_create calling non-existent or
less-than-functional tools since it relied on $PATH.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 23 06:36:21 2003 UTC (16 years, 6 months ago) by grant
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

no need to pass $(DEFS) to $(CC) twice.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Sep 19 02:11:22 2003 UTC (16 years, 6 months ago) by grant
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

shut up the 'do nothing' shell comments

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 1 16:27:14 2003 UTC (16 years, 7 months ago) by jlam
Branch: MAIN
Changes since 1.2: +19 -22 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 11 16:48:23 2003 UTC (17 years, 1 month ago) by grant
Branch: MAIN
CVS Tags: netbsd-1-6-1-base, netbsd-1-6-1
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Fix some RCS ids.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 20 18:13:58 2002 UTC (17 years, 3 months ago) by schmonz
Branch: MAIN

Initial revision

This form allows you to request diff's 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.

CVSweb <>