Commit graph

55 commits

Author SHA1 Message Date
Aleksey Cheusov
baaaa60885 Update to 0.39.0
pkg_src_summary:
  - new option "-b".
  - fix for -r and -a options
    (-a BOOTSTRAP_DEPENDS -r DEPENDS worked incorrectly).
2010-05-24 20:53:57 +00:00
Aleksey Cheusov
e8e3b59703 Update to 0.38.0
New mega tool -- pkg_subgraph_deps!

  pkg_src_summary:
    - Fix in adding ASSIGNMENTS inside DEPENDS and BUILD_DEPENDS.
    - Portions of this script were separated into individual scripts under
      libexec/ subdirectory.
    - Improvements for -G
    - New implementation for -A + -m. Speed-ups. Clean-ups.

  pkg_summary2deps:
    - FIX: no double removal of -version anymore.

  pkg_summary2bb_pkgs:
    - FIX: do not output two packages with the same PKGNAME if they
      both have non-empty ASSIGNMENTS, e.g
      net/nicotine:PYTHON_VERSION_REQD={24,25}

  Updates in manual pages.

  More regresion tests.

  Makefile:
    - Overridable DIFF_PROG that defaults to "diff -U10"
2010-05-01 21:06:44 +00:00
Aleksey Cheusov
e4557c9060 Update to 0.37.1
FIX: The following command no longer hangs up (infinite loop)
    pkg_src_summary -G -A graphics/py-cairo:PYTHON_VERSION_REQD=25

 Regression tests correspond to latest pkgsrc sources
2010-04-18 20:20:17 +00:00
Aleksey Cheusov
fe8e703426 Updated to 0.37.0
pkg_lint_summary:
   - If problems were encountered, an exit status is 1

   - New option -d for checking that all required dependencies are
     present in input summary. For details, see a manual page.

 pkg_grep_summary:
   - New option -S for grepping summaries using a list of PKGPATHs,
     PKGBASEs or whatever else stored in a file. For details, see a
     manual page.

   - New artificial field for searching: "PKGPATHe". This is an
     enriched PKGPATH, i.e. PKGPATH and ASSIGNMENTS (if present)
     separated by a colon (`:') symbol.

   - optimizations
2010-03-26 23:17:20 +00:00
Aleksey Cheusov
fa08acc4f0 fix a typo 2010-03-01 21:35:10 +00:00
Aleksey Cheusov
b98015064f Update to 0.36.1
- New tool pkg_lint_summary. Given summary on input it makes some
   checnity checks. At the moment the only implemented check is (-l
   option) is PROVIDES/REQUIRES consistency.

  - pkg_grep_summary:
     - Artificial field PKGBASE is also supported.
       It is actually a PKGNAME without package version.
     - New regression tests
     - Minor update and mixes in manual page
2010-03-01 21:29:03 +00:00
Aleksey Cheusov
936b3f2020 Update to 0.35.1
FIXED: bug in pkg_src_summary caused by incorrect PKGNAME version
   stripping. (pkg_src_summary -A multimedia/gnash didn't generate
   summary for multimedia/gst-plugins0.10-ffmpeg and
   audio/gst-plugins0.10-fluendo-mp3)
2010-01-08 00:03:50 +00:00
Aleksey Cheusov
ab94a4e8f3 update to 0.35.0
- New tool pkg_summary2deps
 - pkg_summary2build_graph  is reimplemented using pkg_summary2deps
2009-11-12 14:24:44 +00:00
Aleksey Cheusov
4f43e8e222 Initial version of pkg_summary2deps. Regression tests for it.
version -> 0.35rc1
2009-11-08 18:39:37 +00:00
Aleksey Cheusov
ac834529f6 update to 0.34.2
Fix for a bug (cyclic dependencies again)
   in pkg_summary2build_graph recently introduced in revision 1.2
2009-10-31 19:51:13 +00:00
Aleksey Cheusov
7dcd7c4f7e update to 0.34.1
- Yet another fix for
           pkg_src_summary -A meta-pkgs/php4-extensions
    (DEPENDS field should contain enriched PKGPATHs for php4 packages)
2009-10-26 10:00:38 +00:00
Aleksey Cheusov
84a862ae5f merged with psu-0-34-0 branch
update to 0.34.0
  - FIX: pkg_summary2build_graph is reimplemented and now handles
    correctly summaries with enriched PKGPATHS and ASSIGNMENTS field.
    Regression tests for this utility have been added.
2009-10-21 08:37:20 +00:00
Aleksey Cheusov
c4ec3c6415 Update to 0.33.0
- FIX: 'pkg_src_summary -A meta-pkgs/php4-extensions'
    wrongly shows summaries for php5-xxx packages.
    Obviously meta-pkgs/php4-extensions depends on php4-xxx packages.

  - FIX: {alter,natives} in DEPENDS and BUILD_DEPENDS
    are handled correctly now.
2009-10-19 13:04:09 +00:00
Aleksey Cheusov
d557c8d229 update to version 0.32.0
- Default values of variables PKG_SUFX, DISTDIR, PKGSRCDIR, BMAKE
    and PKG_INFO_CMD are embedded to scripts itself and are obtained
    from pkgsrc. Manual pages do not tell what is the default.

  - tests/test.sh:

    fix in regression test #3, pkgsrc vs. pkgsrc+wip ==> XXXX vs. XXXXX

    fix in regression test #11 (Darwin)

    "make test" doesn't need "make install" anymore
2009-09-19 13:31:58 +00:00
Aleksey Cheusov
7f93979018 pkg_src_summary: final implementation for PSS_PRE_PATH and PSS_POST_PATH
manual page update
version -> 0.31.0
2009-08-09 18:13:38 +00:00
Aleksey Cheusov
2e8bc70906 Update to 0.30.0
New utility pkg_summary2build_graph that converts src_summary
    to build dependency graph.
2009-05-30 14:18:32 +00:00
Aleksey Cheusov
c94302711f version -> 0.29.0
release notes in NEWS
2009-05-10 20:17:58 +00:00
Aleksey Cheusov
d6ea740962 version -> 0.28.0
- pkg_src_summary
      new option -i|--installed:
              generate src_summary for the installed packages only,
              do not read list of packages from stdin and
              from pkgpathN arguments

  - New tool pkg_cleanup_distdir which is actually a replacement for
    lintpkgsrc -o|-r and works much faster.

      pkg_cleanup_distdir - analyses ALLSRCFILES field of src_summary
      given on input and optionally removes files and directories in DISTDIR
      not referenced by any package.

  - pkg_grep_summary:
      new options -s and -m which make it easier for use.

  - New tool pkg_summary2bb_pkgs (needs more testing)
2009-04-01 10:03:36 +00:00
Aleksey Cheusov
8a41f40c66 update to version 0.26.0
Major changes:

    pkg_src_summary analyses DEPENDS and BUILD_DEPENDS for correctness.
    That is if appropriate directories don't exist, building summary
    fails with stderr messages.

    'pkg_micro_src_summary -f' supports comma separated fields

    pkg_cmp_summary: new option -P for comparison PKGPATH without PKGNAME
2009-03-05 22:45:28 +00:00
Aleksey Cheusov
cd7e8c0225 update to 0.24.0
pkg_micro_src_summary, pkg_src_summary, pkg_update_src_summary:
  -X=value options are not supported. Use -Xvalue instead!
2008-12-26 13:33:19 +00:00
Aleksey Cheusov
5091e4d34b updated to 0.23.0
tools based on runawk uses alt_getopt.awk module
  for handling options, regression tests

  pkg_src_fetch_var doesn't accept -f=<value>

  minor clean-ups in pkg_update_src_summary
2008-12-25 23:41:25 +00:00
Aleksey Cheusov
dac5de94de version -> 0.22.0
merge changes from 'deve' branche
  See files/NEWS file for details
2008-12-01 21:31:33 +00:00
Aleksey Cheusov
4a7e9725ed minor fix 2008-11-11 21:21:51 +00:00
Aleksey Cheusov
fe84e550aa Version 0.21.0, by Aleksey Cheusov, Tue, 11 Nov 2008 22:59:51 +0200
new executable pkg_uniq_summary for filtering out repeated summaries

  Man pages are rewritten in 'man' macroses. Now they may be seen
  under Solaris too.
  Homemade macro VB and VE are used to implement EXAMPLES section,
  these macro implements "verbatim" output.

  pkg_src_summary fix: when reading DESCR files failed a bad error
  message was output (`` was output instead of real filename).

  regression tests (test.sh)
2008-11-11 20:59:18 +00:00
Aleksey Cheusov
5249d2728b version -> 0.20.0
Regression test framework appeared (run 'bmake test').
  Regression tests for most utilities.

  FIXED: Broken pkg_src_summary -m.
  Affected versions: 0.17.0-0.19.0

  pkg_summary4view: /usr/bin/awk -f --> runawk
2008-10-26 11:17:46 +00:00
Aleksey Cheusov
899ed33d44 updated to 0.19.0
all scripts are preprocessed before installation
  (sed 's,@@bindir@@,${BINDIR},g' etc.)

  pkg_src_summary: fix for packages having more than one file listed
  in DESCR_SRC

  FIX for pkg_src_summary -p: For a huge number of packages 'make
  plist' fails because this stage requires package's sources
  extracted.  Now 'make plist' failures are not critical,
  i.e. summary for such package is generated in any case.

  fix in pkg_src_fetch_var.in: comments are removed
  PKGNAME=pkgname-ver ### trtrtr -> PKGNAME=pkgname-ver

  fix in pkg_micro_src_summary: If PKGREVISION is set to 0 (or empty)
  in Makefile (bug?), then nb0 is *not* added to PKGNAME
2008-10-22 19:15:14 +00:00
Aleksey Cheusov
35f26665e7 update to 0.17.2
FIX: pkg_src_summary may fail for packages when fields contain
  quotes (e.g. COMMENT field for devel/apache-ant15/Makefile rev. 1.10)
2008-10-04 11:49:12 +00:00
Aleksey Cheusov
646a291ea2 updated to version 0.17.1
FIX for -A option: strip ending / symbol from dependencies
    (DEPENDS and BUILD_DEPENDS)

    www/typo3/Makefile revision 1.5
        DEPENDS+=   ...  ../../archivers/php-zlib/
                                                ^^^
                                                /
            extra slash character here --------/
2008-09-30 20:56:05 +00:00
Aleksey Cheusov
4912ffd205 update to 0.17.0
pkg_src_summary:

     Fields with empty values (like NOT_FOR=) are not printed.

     The following fields are added to the default list of fields
     generated by pkg_src_summary: NO_BIN_ON_FTP, NO_SRC_ON_FTP,
     NO_BIN_ON_CDROM, NO_SRC_ON_CDROM.

     New field ALLSRCFILES (also generated by default) - sum of
     DISTFILES and PATCHFILES prepanded with DIST_SUBDIR.

  pkg_grep_summary:

     pkg_grep_summary FIELD 'fvalue == ""' also matches packages
     with no FIELD at all. That is no field becomes synonym to
     FIELD=

     new option -e
        pkg_grep_summary -e FIELD is shorter equivalent for
        pkg_grep_summary FIELD 'fvalue == ""'
2008-09-19 23:41:59 +00:00
Aleksey Cheusov
dd5e5e9e5a spell checks and minor fixes 2008-09-13 10:18:11 +00:00
Aleksey Cheusov
4b6fcf25bf updates in NEWS 2008-09-13 08:31:55 +00:00
Aleksey Cheusov
7ad7a55f22 version -> 0.15.0
Major changes

     pkg_grep_summary: in order to support summaries for multi-variant
     packages it is strongly recommented to use 'fvalue' variable in
     condition, not $2. Man page and README update accordingly.

     pkg_cmp_summary: -m option added for comparing summaries for
     multi-variant packages
     (PKGPATH=category/name:variable_assignments format).

pkg_cmp_summary -m implies -p
2008-09-07 18:17:38 +00:00
Aleksey Cheusov
d20d451093 version -> 0.14.0
Major changes

   pkg_src_summary: added option -M which implies -m and moves/adds
   ASSIGNMENTS field to PKGPATH.

     Example:

	0 ~>export PSS_FIELDS='PKGPATH PKGNAME'
	0 ~>pkg_src_summary -M lang/lua www/php-apc www/ap2-python
	PKGPATH=lang/lua
	PKGNAME=lua-5.1.3nb1

	PKGPATH=www/php-apc:PHP_VERSION_REQD=4
	PKGNAME=php4-apc-4.4.8.3.0.16

	PKGPATH=www/php-apc:PHP_VERSION_REQD=5
	PKGNAME=php5-apc-5.2.6.3.0.16

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=25
	PKGNAME=ap2-py25-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=24
	PKGNAME=ap2-py24-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache2,PYTHON_VERSION_REQD=23
	PKGNAME=ap2-py23-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=25
	PKGNAME=ap22-py25-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=24
	PKGNAME=ap22-py24-python-3.2.10

	PKGPATH=www/ap2-python:PKG_APACHE=apache22,PYTHON_VERSION_REQD=23
	PKGNAME=ap22-py23-python-3.2.10

	0 ~>
2008-09-06 22:37:17 +00:00
Aleksey Cheusov
e5ccfc7415 version -> 0.13.1
VARIANTS7 is reimplemented through pbulk's mk/pbulk/pbulk-index.mk.
   I hope this API it will not change...
2008-09-06 21:27:33 +00:00
Aleksey Cheusov
8a04b48f68 version -> 0.13.0, NEWS updated accordingly
Major changes:

   -----------------
   pkg_src_summary: new option -m added that generates summary
   for all variants of multi-variant packages
   (Python {23,24,25}, PHP {4,5}, Apache {1.3,2,2.2} etc.)

     Example:

        0 ~>export PSS_FIELDS='PKGPATH PKGNAME'
        0 ~>time -p ./pkg_src_summary -m lang/lua www/php-apc www/ap2-python
        PKGPATH=lang/lua
        PKGNAME=lua-5.1.3nb1

        PKGPATH=www/php-apc
        PKGNAME=php4-apc-4.4.8.3.0.16
     => ASSIGNMENTS=PHP_VERSION_REQD=4

        PKGPATH=www/php-apc
     => PKGNAME=php5-apc-5.2.6.3.0.16
     => ASSIGNMENTS=PHP_VERSION_REQD=5

        PKGPATH=www/ap2-python
     => PKGNAME=ap2-py25-python-3.2.10
     => ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
     => PKGNAME=ap22-py25-python-3.2.10
     => ASSIGNMENTS=PYTHON_VERSION_REQD=25 PKG_APACHE=apache22

        PKGPATH=www/ap2-python
        PKGNAME=ap2-py24-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
        PKGNAME=ap22-py24-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=24 PKG_APACHE=apache22

        PKGPATH=www/ap2-python
        PKGNAME=ap2-py23-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache2

        PKGPATH=www/ap2-python
        PKGNAME=ap22-py23-python-3.2.10
        ASSIGNMENTS=PYTHON_VERSION_REQD=23 PKG_APACHE=apache22

        0 ~>

     See lines with '=>'.

   -----------------
   pkg_src_summary: the following format of input PKGPATH is supported:
   real_pkgpath[:var1=value1[,var2=value2[...]]]

     Example:

        0 ~>export PSS_FIELDS='PKGNAME PKGPATH DEPENDS BUILD_DEPENDS'
        0 ~>pkg_src_summary textproc/dictem:EMACS_TYPE=xemacs
     => PKGNAME=xemacs-dictem-0.82
        PKGPATH=textproc/dictem
     => DEPENDS=dict-client>=1.9.14:../../textproc/dict-client xemacs>=21.4<21.5:../../editors/xemacs xemacs>=21.4<21.5:../../editors/xemacs
        BUILD_DEPENDS= checkperms>=1.1:../../sysutils/checkperms
     => ASSIGNMENTS=EMACS_TYPE=xemacs

        0 ~>pkg_src_summary www/ap2-wsgi:PYTHON_VERSION_DEFAULT=23,PKG_APACHE_DEFAULT=apache2
     => PKGNAME=ap2-py23-wsgi-1.3
        PKGPATH=www/ap2-wsgi
     => DEPENDS=  python23>=2.3:../../lang/python23 apache>=2.0.51<2.2:../../www/apache2  python23>=2.3.5nb6:../../lang/python23 apache>=2.0.61nb2:../../www/apache2
        BUILD_DEPENDS= libtool-base>=1.5.18nb5:../../devel/libtool-base perl>=5.0:../../lang/perl5  checkperms>=1.1:../../sysutils/checkperms
     => ASSIGNMENTS=PYTHON_VERSION_DEFAULT=23 PKG_APACHE_DEFAULT=apache2

        0 ~>

     See lines with '=>'.
2008-09-06 20:31:30 +00:00
Aleksey Cheusov
288e355c8b release notes 2008-07-07 14:27:10 +00:00
Aleksey Cheusov
c7387c00c2 fixed: '-A + PSS_SLAVES + PSS_TRANSPORT' didn't work
There are still some issues
version -> 0.11.1
2008-06-14 23:13:26 +00:00
Aleksey Cheusov
92e97aeb46 Version 0.11.0
pkg_src_summary:

      -d, -D and -A options for generating summary of the specified
      packages and their dependancies.  -d is for DEPENDS
      dependancies, -D is for BUILD_DEPENDS and -A is for both. See
      pkg_src_summary(1) for details.
2008-06-14 12:38:53 +00:00
Aleksey Cheusov
1f46a7b4b0 minor fix 2008-06-14 10:30:21 +00:00
Aleksey Cheusov
d653a0d02f upgraded to version 0.10.0
added: pkg_summary-utils(7) that describes what pkg_summary-utils
   project is. All tools refer to it in its manual pages and
   pkg_summary-utils(7) refers to manual pages of all tools.

   pkg_src_summary:

      a list of fields listed in -f|--fields option may be separated
      by comma, not only space.

      PSS_OPTIONS environment variable specifies default options to be
      placed in front of any explicit options. See man page for the
      sample.

      -a and -r options added for adding and removing the specified
      fields to/from the list of fields generated by default.
      See man page for the samples.

   pkg_update_src_summary:

      a list of fields listed in -f|--fields option may be separated
      by comma, not only space.
2008-06-14 10:27:34 +00:00
Aleksey Cheusov
28945ad237 update to version 0.9.0
ADDED: CVS_CHECKSUM field to pkg_src_summary. This gives a way to
   compare two pkgsrc trees by comparing their pkg_src_summaries
   comparing not only an information about package versions but also
   an information about CVS files and their revisions.

      new script added: 'cvs_checksum' that analyses local cvs
      repository and lists all files in it with their revisions and,
      optionally, calculates a checksum for all this. Run
      'cvs_checksum -h' for more information. CKSUM environment
      variable sets a checksum program, by default, standard 'cksum'.

      pkg_src_summary can generate new field: CVS_CHECKSUM, a checksum
      calculated by 'cvs_checksum' program for a package. By default
      CVS_CHECKSUM is NOT generated.

      'pkg_cmp_summary -c' prints '!' (this means "not equal") for
      packages with the same versions but different CVS_CHECKSUM provided
      that CVS_CHECKSUM is set in both compared packages.
2008-06-14 07:41:36 +00:00
Aleksey Cheusov
64c38d02e2 pkg_src_summary:
added option -p|--make-plist for using 'bmake plist'
      instead 'cat PLIST'. @directives are removed.

version -> 0.8.0
2008-05-11 21:53:17 +00:00
Aleksey Cheusov
3eacfd2716 version -> 0.7.0
Major changes:

   pkg_src_summary is now "distributed" tool, i.e. it can build
   src_summary using several processes or machines.
      Examples:

      # for SMP machine
      env PSS_SLAVES=+5 pkg_src_summary ...

      # for machines in a network
      env PSS_SLAVES='host1 host2 host3' \
          PSS_PPERS=5 \
          PSS_TRANSPORT=/usr/bin/ssh pkg_src_summary ...

      PSS_PPERS variable sets a number of packages per slave that
      are built at once, defaults to 10.

   pkg_src_summary: PSS_FIELDS overrides the default
   list of generated fields

   pkg_update_src_summary: -i|--fields options specify a list of
   generated fields.
2008-05-10 11:31:05 +00:00
Aleksey Cheusov
8c098d0b6f Version -> 0.6.2
grepping functionality of pkg_grep_summary has been moved to a
   separate file pkg_grep_summary.awk.  Similar code fragments found
   in pkg_refresh_summary and pkg_update_src_summary use
   pkg_grep_summary.awk now.
2008-05-09 10:46:32 +00:00
Aleksey Cheusov
d2e88a949f Version 0.6.1:
README file added. There are available a few examples how to use
   all these tools separately and together . You can use it as a
   titorial.
2008-05-07 20:16:12 +00:00
Aleksey Cheusov
bfc3bfbdf3 upgrade to version -> 0.6.0:
NEW tool: pkg_grep_summary
     Run 'pkg_grep_summary -h' for a documentation.
2008-05-07 18:56:52 +00:00
Aleksey Cheusov
98ba15c859 Version 0.5.1, by Aleksey Cheusov
FIXED: pkg_update_summary fails under Linux, Solaris, Interix and
   probably other OSes when there are no binary packages in a specified
   directory.  This happens because xargs works differently on
   NetBSD/FreeBSD and Linux/Solaris/Interix. In NetBSD/FreeBSD xargs's
   command is NOT run at all when there is no input, while on L/S/I it is
   run once without arguments and (pkg_info -X in our case) fails.

   DESCR improved

   Minor fixes in documentation ans NEWS
2008-05-04 22:19:49 +00:00
Aleksey Cheusov
6722b803fd bad examples -> better examples 2008-04-27 15:44:44 +00:00
Aleksey Cheusov
6aba305ddc Version 0.5.0
Major changes:

   Lots of tasks from TODO are implemented.

   pkg_src_fetch_var:
      - minor fixes in comments
      - new options -h|--help for use message
      - new options -f|--fields|-v|--vars for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          echo 'wip/distbb' | \
          pkg_src_fetch_var -f='PKGNAME PKGPATH DEPENDS BUILD_DEPENDS'

      - bmake '+=' operator is also supported

   pkg_src_summary:
      - new options -h|--help for use message
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.
      - 'print-summary-data' pkgsrc target is not used anymore.
        Instead, variable's values are obtained directly by bmake.

        Side effect/incompatibility: NOTFOR and ONLYFOR are set to
        <empty_string> instead of 'any' string in case
        NOT_FOR_PLATFORM and ONLY_FOR_PLATFORM are not specified.

   pkg_micro_src_summary:
      - new options -f|--fields for specifying a list of fields
        to be generated. By default PKGNAME and PKPATH
        are generated as earlier versions did.

        Example:
          pkg_micro_src_summary -f 'PKGNAME PKGPATH DEPENDS BUILD_DEPENDS' \
                                   lang/lua wip/distbb
      - In case pkg_src_fetch_var failes pkg_micro_src_summary fallbacks
        to pkg_src_summary.
2008-04-27 11:40:49 +00:00
Aleksey Cheusov
30d85ba675 version -> 0.4.6
fix for pkg_summary4view: doesn't depend on input fields order.
   fix for pkg_src_summary: PKGNAME and PKGPATH are printed first.
2008-04-13 12:03:20 +00:00