Commit graph

136 commits

Author SHA1 Message Date
Aleksey Cheusov
39a82a3106 more tasks 2008-11-02 17:15:06 +00:00
Aleksey Cheusov
b7354c1c27 fixed: pkglint warning 2008-10-28 09:10:39 +00:00
Aleksey Cheusov
80d3c07378 fix in version normalizing 2008-10-27 21:58:01 +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
cbd20d9224 fixed: broken pkg_src_summary -m
my-show-var shoud be placed after 'VARIANTS7+= ...'
2008-10-26 11:07:45 +00:00
Aleksey Cheusov
26abc22bd4 mode-sh for Emacs editor 2008-10-26 11:06:19 +00:00
Aleksey Cheusov
7f3fbdb154 pkg_summary4view: /usr/bin/awk -f --> runawk
This fixes problem with stupid Solaris's oawk, *%$*%$*%$*^$*%$
tests/test.sh: yet another fix for Solaris' stupid /bin/sh, (&^%*&^%*&%$
2008-10-23 18:25:48 +00:00
Aleksey Cheusov
eb1a1cd29d fix in regression tests 2008-10-23 18:16:19 +00:00
Aleksey Cheusov
cfc24c46eb Regression tests for 'pkg_refresh_summary', 'pkg_src_summary' and
'pkg_summary4view'
2008-10-23 16:10:19 +00:00
Aleksey Cheusov
84a8975f3f regression tests for pkg_micro_src_summary 2008-10-23 15:42:00 +00:00
Aleksey Cheusov
9184eb14a7 regression tests for pkg_list_all_pkgs 2008-10-23 15:11:56 +00:00
Aleksey Cheusov
77395d389a On Solaris pkgsrc shell replacement is used
instead of native sh*t (/bin/sh), Gr-r-r-r /-)
2008-10-22 22:16:19 +00:00
Aleksey Cheusov
dd1b973b3f Heh. Lots of todo tasks are already done :-) 2008-10-22 21:24:42 +00:00
Aleksey Cheusov
99d40b2577 package now has TEST_TARGET=test
more regression tests for pkg_cmp_summary
2008-10-22 20:17:40 +00:00
Aleksey Cheusov
9cd4efa573 initial regression tests 2008-10-22 19:20:38 +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
2b4f4e17f0 yet another todo 2008-10-22 19:10:06 +00:00
Aleksey Cheusov
3ce7961fa1 After some thoughts I remove @@bindir@@ etc. from scripts 2008-10-22 19:09:38 +00:00
Aleksey Cheusov
4eb64c0b76 the same as previous commit but for PKGREVISION=.
`nb' should added to PKGNAME
2008-10-13 19:17:23 +00:00
Aleksey Cheusov
677090e38b pkg_micro_src_summary: If PKGREVISION is set to 0 in Makefile, then
nb0 is *not* added to PKGNAME
2008-10-13 19:14:11 +00:00
Aleksey Cheusov
f59cb05bb6 fix: comments are removed
PKGNAME=pkgname-ver ### trtrtr -> PKGNAME=pkgname-ver
2008-10-12 13:47:41 +00:00
Aleksey Cheusov
713350ca98 FIX for pkg_src_summary -p: For a huge number of packages 'make plist'
failes because this stage requires package's sources extracted.
   I made failure of 'make plist' not critical, i.e. summary for given
   package is generated in any case.
2008-10-11 10:21:35 +00:00
Aleksey Cheusov
f9d9cec756 executable are prefixed with @@bindir@@
awk modules - with @@awkmoddir@@
version -> 0.18.1
pkg_src_summary: fix for packages having more than one file listed in
   DESCR_SRC
2008-10-11 08:52:06 +00:00
Aleksey Cheusov
eb337c1b3e updated to 0.18.0 (intermediate release)
all scripts are preprocessed before installation
    (sed 's,@@bindir@@,${BINDIR},g' etc.)
2008-10-05 20:10:10 +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
54e1d03a68 added: -e option to pkg_grep_summary.
pkg_grep_summary -e NO_BIN_ON_FTP <equivalent_to>
   pkg_grep_summary NO_BIN_ON_FTP 'fvalue == ""'

empty field ( e.g. NO_BIN_ON_FTP= ) is equivalent to absent field.
   For example 'pkg_grep_summary -e NO_BIN_ON_FTP' now matches
   the following package summaries

     PKGNAME=dictem-0.82
     PKGPATH=textproc/dictem

     PKGNAME=distbb-0.19.1
     PKGPATH=wip/distbb
2008-09-19 21:06:11 +00:00
Aleksey Cheusov
4890d76df7 version -> 0.16.1
-h option added to pkg_list_all_pkgs
2008-09-15 18:27:00 +00:00
Aleksey Cheusov
a0a433bcde notes about PSS_OPTIONS environment variable 2008-09-13 14:17:51 +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
b00d8c5be7 version -> 0.16.0 2008-09-13 08:23:06 +00:00
Aleksey Cheusov
75d0c1876c Code that moves/add ASSIGNMENTS to PKGPATH is separated into a separate
script "pkg_assignments2pkgpath". One application for it is distbb.
pkg_src_summary: PKGPATH enriched with variable assignments and passed
   to pkg_src_summary may contain spaces. They should be represented
   as ~.

   Example: pkg_src_summary \
     sysutils/mc:PKG_OPTIONS.mc=-x11~-subshell~-slang~-samba~ncurses~-edit
2008-09-13 08:20:54 +00:00
Aleksey Cheusov
200c67824a PSS_FIELDS is exported BEFORE recursive calls for -M and -m 2008-09-07 19:16:38 +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
4ccdd36754 FIX. Previous commits broke pkg_grep_summary 2008-09-07 17:18:08 +00:00
Aleksey Cheusov
6ddfd3350d version -> 0.14.1
FIX in pkg_src_summary: I forgot that grep's exit status may be 1 which is
    fatal if 'set -e'
pkg_cmp_summary:
    support for multi-variant package summaries.
    Option -m added for this.
pkg_grep_summary: in order to support summaries for multi-variant packages
    it is strongly recommented to use 'fvalue' variable in condition
    instead of '$2'. Man page and README update accordingly.
2008-09-07 16:53:32 +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
03e99ba5f4 version -> 0.13alpha2
-m is fully implemented

  example:

      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 ~>
2008-09-06 19:26:34 +00:00
Aleksey Cheusov
de9fbb5d8a VARIANTS7:
PHP_VERSION_DEFAULT    -> PHP_VERSION_REQD
   PYTHON_VERSION_DEFAULT -> PYTHON_VERSION_REQD
   PKG_APACHE_DEFAULT     -> PKG_APACHE
2008-09-06 17:20:26 +00:00
Aleksey Cheusov
98b8610e67 version -> 0.13alpha1
The following format of input PKGPATH is supported:
        real_pkgpath[:var1=value1[,var2=value2[...]]]

  Example:

      0 ~>pkg_src_summary textproc/dictem:EMACS_TYPE=xemacs
      PKGPATH=textproc/dictem
   => PKGNAME=xemacs-dictem-0.82
   => ASSIGNMENTS=EMACS_TYPE=xemacs

      0 ~>pkg_src_summary www/ap2-wsgi:PYTHON_VERSION_DEFAULT=23,PKG_APACHE_DEFAULT=apache2
      PKGPATH=www/ap2-wsgi
   => PKGNAME=ap2-py23-wsgi-1.3
   => ASSIGNMENTS=PYTHON_VERSION_DEFAULT=23 PKG_APACHE_DEFAULT=apache2

      0 ~>

Initial support for building src_summary for multi-variant packages (-m),
    new special artificial output field VARIANTS7 is supported.
    Unfortunately pkgsrc developers declined this idea

    http://mail-index.netbsd.org/tech-pkg/2008/07/20/msg001320.html

    VARIANTS7 because I hope they will change their mind.

  Example:

      0 ~>./pkg_src_summary -a 'VARIANTS7' www/ap2-wsgi
      PKGPATH=www/ap2-wsgi
      PKGNAME=ap22-py24-wsgi-1.3
   => VARIANTS7=PYTHON_VERSION_DEFAULT=25,24,23 PKG_APACHE_DEFAULT=apache2,apache22

      0 ~>./pkg_src_summary -a 'VARIANTS7' lang/lua
      PKGPATH=lang/lua
      PKGNAME=lua-5.1.3nb1
   => VARIANTS7=

      0 ~>./pkg_src_summary -a 'VARIANTS7' www/php-apc
      PKGPATH=www/php-apc
      PKGNAME=php5-apc-5.2.6.3.0.16
   => VARIANTS7=PHP_VERSION_DEFAULT=4,5

      0 ~>
2008-09-06 17:17:27 +00:00
Aleksey Cheusov
d51725888a When used incorrectly, usage message is output 2008-09-06 16:05:20 +00:00
Aleksey Cheusov
779f52d762 one todo for pkg_src_summary 2008-07-28 19:15:58 +00:00
Aleksey Cheusov
ae92d8d3a4 minor fix 2008-07-07 14:36:33 +00:00
Aleksey Cheusov
288e355c8b release notes 2008-07-07 14:27:10 +00:00
Aleksey Cheusov
51c3bb7985 version -> 0.12.0
- added: pkg_grep_summary
   - do not depend on wip/paexec, install it manually
   - fixes in usage message of pkg_grep_summary
2008-07-07 14:25:26 +00:00
Aleksey Cheusov
75d3ef4ae2 fixed: UNPRIVILEGED and DESTDIR installation stage 2008-06-15 14:07:19 +00:00