History log of /freebsd-9.3-release/usr.sbin/pkg_install/version/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


250787 18-May-2013 bdrewery

Direct commit to update ports INDEX location.

PR: bin/164561
Approved by: bapt


241135 02-Oct-2012 bapt

MFC r240682

if a file in plist starts with / then do not prefix it with "prefix" [1]
pkg info -g returns 1 if a file mismatch [2]
flush stdout in pkg info -g [3]
clean up quiet mode (-q | --quiet) output of pkg_version(1) [4]
fix missing error call in uname check added to pkg_version(1) [5]
fix pkg_add(1) fails to install with -C from bad path [6]
only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7]

PR: bin/13128 [1]
bin/139015 [2]
bin/113702 [3]
bin/142570 [4]
bin/146857 [5]
bin/157543 [6]
Submitted by: cy [1]
Anton Yuzhaninov <citrin@citrin.ru> [2]
Ighighi <ighighi@gmail.com> [3]
"N.J. Mann" <njm@njm.me.uk> [4]
gcooper [5]
David Naylor <naylor.b.david@gmail.com> [6]
netchild [7]


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


222035 17-May-2011 flz

Backout libinstall.a -> libpkg commit.

Discussed with: erwin, brooks, bapt


207113 23-Apr-2010 flz

- Take libinstall.a out of pkg_install and make it a proper shared library.
- Rework the wrapper support to check libpkg version as well as pkg_install
version.
- Add libfetch to _prebuild_libs.
- There are no new features introduced.

Notes: the API is not stable, so basically, do not use libpkg in your
projects for now. Also there's no manpage for libpkg yet, because the API
will change drastically. I repeat, do not use libpkg for now.


206043 01-Apr-2010 flz

Various fixes.

- Replace hardcoded INDEX version. [1]
- Fix a buffer overlap. [2]
- Remove empty package when fetching fails and -K is used. [3]
- Remove useless chmod2() after mkdtemp(3). [4]
- Replace mkdir(1) call with mkdir(2). [5]
- Get rid of some vsystem() calls.
- Switch from lstat(2) to open(2) in fexists().
- Try rename(2) in move_file() first.
- Bump PKG_INSTALL_VERSION to 20100401.

PR: bin/145101 [1], bin/139492 [2], bin/144919 [3]
bin/144920 [4], bin/144921 [5]
Submitted by: gcooper [1,2,3,4,5]


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


201226 29-Dec-2009 ed

Add missing `void' keywords.


179433 30-May-2008 flz

- Add long options to pkg_install.
- Remove check for '-?' as it's not listed in authorized options.
- Bump PKG_INSTALL_VERSION to 20080530.


174816 20-Dec-2007 gabor

- Adjust INDEX file name to INDEX-8 so that it matches the major FreeBSD
version number, as it is named after that

PR: docs/118053
Submitted by: Michael Plass <mfp49_freebsd@plass-family.net>


174475 09-Dec-2007 krion

Backout previous commit, since it's done without maintainers
approval. These changes were approved by adding it as port to
ports/ tree, but not for src/. I talked to PR submitter and miwi@
some days ago and explained the reasons for it, the both were agree
to add it to ports/ only.


174472 09-Dec-2007 obrien

Add the 'pkg_search' script.
This makes it easier to figure what packages you want to install.

Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de>


173514 10-Nov-2007 krion

Some code cleanups, including removing of stale getopt argument and
hardcoded +CONTENTS defines.

PR: bin/117855
Submitted by: Beat Gaetzi <beat@chruetertee.ch>
MFC after: 14 days


173412 07-Nov-2007 kevlo

Cleanup of userland __P use


173014 26-Oct-2007 simon

If the INDEX file cannot be opened, print the actual filename / path
pkg_version tried to open instead of just "INDEX" to make the actual
problem more clear (e.g. missing INDEX-8).

MFC after: 3 days
Reviewed by: portmgr (pav)


161251 12-Aug-2006 krion

Fix "pkg_version -Io" coredump, if some packages have no origin at
all.

PR: bin/101932
Submitted by: novel, sat
MFC after: 5 days


159554 12-Jun-2006 obrien

Allow variable amounts of verbosity.


155577 12-Feb-2006 krion

Fix pkg_version with the -o argument to print the origin.

Submitted by: Sebastian Stach <sebsta AT t-online DOT de>
MFC after: 3 days


152569 18-Nov-2005 ru

-mdoc sweep.


151200 10-Oct-2005 krion

* pkg_version(1) exits if INDEX files is not found and -I is not
specified. The result is that the package will be listed with a '?'
as if it was not found within the INDEX file, so fix this behaviour.
* Remove trailing spaces.

PR: bin/87136
Submitted by: Sean Farley <sean-freebsd at farley dot org>
MFC after: 3 days


148435 27-Jul-2005 krion

Add -o/-O options to pkg_version:

-o Show the origin recorded on package generation instead of the
package name.

-O Only list packages whose registered origin is origin.

Based on PR: bin/78640
Submitted by: Marcus Grando <marcus at corp dot grupos.com.br>, flz


147377 14-Jun-2005 ru

Markup fixes.

Approved by: re (blanket)


146559 24-May-2005 cperciva

Add an -I option to pkg_version:

-I Use only the index file for determining if a package is out of
date. This is much faster than using the version number from a
port's Makefile, at the expense of potentially giving an incor-
rect result if the index file is out of date.

Without this option, the index file is only consulted if "make -V PKGNAME"
cannot be used.

Approved by: portmgr (krion)


141846 13-Feb-2005 ru

Expand *n't contractions.


140442 18-Jan-2005 ru

Sort sections.


140063 11-Jan-2005 ru

Scheduled mdoc(7) sweep.


140061 11-Jan-2005 ru

Add -q to usage() and mark the "index" argument as optional.


139679 04-Jan-2005 paul

Update the INDEX file to INDEX-6


136643 18-Oct-2004 obrien

Add a -q flag to pkg_version. It suppresses the output of <,=,>.
This makes it possible to "portupgrade `pkg_version -q -l '<'`".


133596 12-Aug-2004 ru

Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.


133501 11-Aug-2004 eik

FWIIW, make the `test' target in pkg_install/version actually work.


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


131285 29-Jun-2004 eik

- pkg_add spawns itself as argv[0] when installing dependent packages, to
enable the use as a port on older systems

- use absolute paths in all calls to external programs, to account for strange
PATH settings

- use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on
FreeBSD 4.x as a port.

- conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the
pkg_install tools can be kept in sync on 4.x and 5.x

- Bump PKG_INSTALL_VERSION

Reviewed by: portmgr (bento run)
MFC after: 4 weeks


131280 29-Jun-2004 eik

- pkg_info: flag -r: (show packages this packages depends on (documentation change))

- pkg_info: new flag -j (show the requirements script)

- pkg_info: fix verbose output when used on packages

- better handling of corrupt entries in /var/db/pkg

- differ between corrupt entires and packages not installed

- various small fixes

PR: 56989, 57016, 57029, 26468


131275 29-Jun-2004 eik

- match package version numbers with relational operators

- use glob patterns when matching packages by origin

- csh-style {...} choices in glob matching

- pkg_info: new flag -E (list matching package names only)

- pkg_version: new flag -T (test if a given name matches a pattern)

- new flag -X (interpret pattern as an extended regular expression)

PR: 56961


131274 29-Jun-2004 eik

- complete rewrite of the version number parsing code, restoring compatibiliy of 5.x with 4.x and portupgrade

- parse version numbers of ports containing an underscore followed by a number correctly

- handle special strings pl, alpha, beta, pre and rc

PR: 56961


124633 17-Jan-2004 ru

- Properly build both crypto and non-crypto versions of the
package management tools.

- Drop redundant dependency of pkg_create(1) and pkg_delete(1)
on crypto libraries now that they do not link with libfetch.


115157 19-May-2003 des

Retire the useless NOSECURE knob.

Approved by: re (scottl)


113079 04-Apr-2003 robert

- Print out an error message instead of dereferencing a NULL pointer
if matchinstalled() found no packages, which happens to be the
case after fresh installations.
- Instead of using strstr(3) to match the package name, depend on
matchinstalled()'s MATCH_REGEX package matching.

PR: bin/50384
MFC after: 2 weeks


109914 27-Jan-2003 trhodes

Note that -c is no longer supported. This was requested by a few users and
we even have a PR about it.

PR: 47388
Discussed with: bmah
Requested by: many


107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


107613 04-Dec-2002 kris

Minimal change to cause pkg_version to examine the new INDEX-5 file
instead of INDEX. This should be done better since this file name will
depend on the FreeBSD major version.


103126 09-Sep-2002 sobomax

Kill debugging line occasionally slipped into rev.1.3.

Submitted by: reg


103119 09-Sep-2002 sobomax

Vastly decrease amount of memory comsumed in the case when we have to read
ports/INDEX, by allocating eactly amount of memory necessary for storing
each particular entry, insdead of 4K per entry (more than 7000 entries -
go figure). Memory consumption went down to some 500K from some 30M.


102438 26-Aug-2002 reg

Don't dump core on packages with an invalid or empty PLIST.

Reviewed by: markm


98766 24-Jun-2002 markm

C replacement for the Perl5 code.

Submitted by: reg


97672 31-May-2002 bmah

pkg_version was incorrectly claiming that 1.5 == 1.5.0.1, because
we weren't properly checking for the case that the two version strings
being compared had different numbers of components. This has been
fixed.

Pointed out by: sobomax
Reviewed by: silence on -ports


97411 28-May-2002 sobomax

MFS: two more testcases highlighting recently discovered problem with version
comparison routine.


95127 20-Apr-2002 charnier

Use `The .Nm utility'


83628 18-Sep-2001 bmah

Drop maintainership.


83627 18-Sep-2001 bmah

Support the use of ${PORTSDIR} to find a ports tree INDEX file in
an other-than-default location.

PR: bin/30350
Submitted by: "NINOMIYA Hideyuki <NINOMIYA Hideyuki" <nin@jp.FreeBSD.org>
MFC after: 3 days


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79537 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


78187 13-Jun-2001 bmah

Fix usage bogon (-d doesn't take any arguments).

MFC after: 3 days


78185 13-Jun-2001 bmah

Add a -s option to pkg_version, which limits output to packages
matching a given string.

PR: 26114
Submitted by: edwin@mavetju.org (with modifications and manpage update)
MFC after: 3 days


78110 11-Jun-2001 tobez

Check for the existence of the Makefile in the port skeleton directory
before running make. If the package origin points to a non-existent or
stale port, report this package as orphaned, instead of producing more
general `unknown in index' message.

PR: 27707
Submitted by: myself, roamer
Approved by: bmah, markm


76629 15-May-2001 bmah

Print longer package names. Some of them were running off the right
edge of Perl field specifications.

PR: bin/26664
Submitted by: philip@eilio.com
MFC after: 3 days


76147 30-Apr-2001 bmah

The pkg_version -c output will now call for a "make clean" before and
after the port build/install. The former cleans up "dirty" port work
directories that happen to be lying around, and the latter cleans up
after we're done so that they won't trip up someone else.

PR: ports/25106
Submitted by: tim@bishnet.net, nik, mwm@mired.org


75715 19-Apr-2001 bmah

Fix a problem with tests of the form "1.0" vs. "1.0a".
MFC candidate.

Pointed out by: knu


75286 07-Apr-2001 ru

beforeinstall -> SCRIPTS.


75166 04-Apr-2001 ru

mdoc(7) police: .Nm remembers its argument on the first call.


75142 03-Apr-2001 bmah

Implement a package number comparison routine for pkg_version(1)
that actually conforms to the Porters Handbook.

Add a -t option to pkg_version(1) for doing comparison testing.

Add a script (and make test target) to do some regression tests on
the package number comparison routine, to help debug future revisions.

Submitted by: knu
Procrastination by: bmah


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


72253 09-Feb-2001 bmah

Prevent the commands output of pkg_version.pl from being executed without the
user actually editing the output. Too many people were rampantly abusing
this feature via "pkg_version -c | sh" without really being cognizant
of the dangers involved (ports upgrade kits) or the fact that it
just plain wasn't designed for it (dependencies). We'll try to keep
people from shooting themselves in the foot.

Will be MFC-ed to RELENG_4 and RELENG_3 after cooling-off period.


71898 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


70403 27-Dec-2000 ru

Prepare for mdoc(7)NG.


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68854 17-Nov-2000 ru

mdoc(7) police: use certified section headers wherever possible.


67656 26-Oct-2000 bmah

Sigh. It'd be nice to completely commit a bugfix. Once again:

Fix a bug in which pkg_version(1) was ignoring $PORTREVISION
or $PORTEPOCH from ports' Makefile definitions.


67654 26-Oct-2000 bmah

Fix a bug in which pkg_version(1) was ignoring $PORTREVISION
or $PORTEPOCH from ports' Makefile definitions.


67573 25-Oct-2000 bmah

Utilize the "-o" (origin) option recently added to pkg_create(1)
and pkg_info(1), for more accurate determination of the
"up-to-date-ness" of installed packages.


67349 20-Oct-2000 bmah

Add -L option to limit the package status characters the user *doesn't*
want to see.

Submitted by: Doug Barton <DougB@gorean.org>


67348 20-Oct-2000 bmah

Make pkg_version -c -l work.

PR: bin/19019
Submitted by: Stijn Hoop <stijn@win.tue.nl>


65874 15-Sep-2000 bmah

pkg_version(1) will now distinguish between the different cases where
the exact relationship between an installed package and its
corresponding entry in the index file can't be determined.

Submitted by: Mark Ovens <marko@freebsd.org>


65750 11-Sep-2000 bmah

Arrgh. Back out a change used during debugging and fix a typo.


65648 09-Sep-2000 bmah

Remove a workaround for a long-fixed bug in fetch(1).
Update URL for on-line Ports Collection INDEX file.


65646 09-Sep-2000 bmah

pkg_version.pl now understands the new package/port numbering scheme
introduced by version 1.349 of ports/Mk/bsd.port.mk and originally
submitted by kris.

In particular, it understands the $PORTREVISION (FreeBSD-specific changes
or patches to a port) and $PORTEPOCH (for re-sorting version numbers
when not used or when broken).


65028 23-Aug-2000 bmah

Update my email address in various places in pkg_version.


64949 22-Aug-2000 billf

Now that Bruce Mah is a committer, retire my co-maintainership
of pkg_version.


64366 07-Aug-2000 marko

Fix bug with -c option

PR: 18176
Reviewed by: Bruce A. Mah <bmah@acm.org>


57673 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


57628 29-Feb-2000 jhb

Add cross references to pkg_version(1) in all the other pkg_* man pages.
Also, add a cross reference to pkg_info(1) in pkg_version(1). Finally,
in pkg_version(1), don't put a period at the end of the list of see also
man pages.

Noticed by: Matt Ayres <matta@fast.net>


54181 06-Dec-1999 jkh

Only pkg_delete the old package if the new one builds properly.

Submitted by: Dan "The Bug" Bugg <bugg@bugg.strangled.net>


54053 03-Dec-1999 billf

Add '-l' which will match a certain status code.
Add the submitter as a contributor in the man page
freebsd -> FreeBSD, while I'm poking around.

PR: bin/15162
Submitted by: Dominic Mitchell <dom@palmerharvey.co.uk>


54052 03-Dec-1999 billf

Correct co-MAINTAINER's e-mail address. I don't know how many
more ways I can screw his address up. Suggestions welcome.


53844 28-Nov-1999 billf

Install man pages in the right place. This is what I get for cheating
and copying a Makefile from another directory over to this one.

PR: docs/15140
Submitted by: Kazuo Horikawa <horikawa@jp.FreeBSD.org>


53724 26-Nov-1999 billf

Add the author as co-maintainer, a la mergemaster.


53723 26-Nov-1999 billf

Welcome pkg_version into the FreeBSD source tree.

pkg_version (as you may well know) matches the existing packages/ports
installed on your system with the ports INDEX and reports which
ports differ from the current INDEX.

Submitted by: Bruce A. Mah <CA.Sandia.GOV>
Reviewed by: ports