The NetBSD Project

CVS log for pkgsrc/pkgtools/lintpkgsrc/files/lintpkgsrc.pl

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.131: download - view: text, markup, annotated - select for diffs
Sat Mar 21 02:20:57 2026 UTC (7 months, 3 weeks ago) by gutteridge
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, HEAD
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +7 -4 lines
lintpkgsrc: minor error handling and doc fixes

If unable to unlink a file, report this. While here, also fix incorrect
substitutions in the man page generation.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Oct 16 22:16:55 2023 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, 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
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +2 -2 lines
lintpkgsrc: fix typo in usage message

Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Sep 14 04:03:51 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
CVS tags: 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
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +6 -2 lines
pkgtools/lintpkgsrc: ignore exit status from running pkg_info

In case of multi-versioned packages like Python modules, lintpkgsrc
queries the wrong installed packages.

Bump version.

https://mail-index.netbsd.org/pkgsrc-users/2022/09/13/msg036186.html

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Aug 19 18:23:41 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +2 -2 lines
lintpkgsrc: fix location of mk.conf

The effective location of mk.conf is not stored in a variable, and there
are several locations where it could be. Noticed by adam@.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Fri Aug 19 05:20:27 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +27 -23 lines
lintpkgsrc: cleanup: extract 'make show-vars' into subroutine

Revision 1.126: download - view: text, markup, annotated - select for diffs
Fri Aug 19 05:06:26 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -2 lines
lintpkgsrc: fix parse-guessing of Apache modules

When lintpkgsrc parses the package makefile of an Apache module, it
includes mk/apache.mk, and that file defines APACHE_PKG_PREFIX, thereby
hiding the fallback value from $default_vars.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Aug 19 04:34:03 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +2 -2 lines
lintpkgsrc: fix handling of Apache modules

Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Aug 18 18:30:29 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -2 lines
lintpkgsrc: fix warning about bogus PKGREVISION for Git packages

(Since a few days.)

Revision 1.123: download - view: text, markup, annotated - select for diffs
Thu Aug 18 18:28:08 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +7 -10 lines
lintpkgsrc: clean up style

Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Aug 18 18:26:46 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +7 -7 lines
lintpkgsrc: cleanup: replace '|| fail' with 'or fail'

Revision 1.121: download - view: text, markup, annotated - select for diffs
Thu Aug 18 18:13:23 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +1 -5 lines
lintpkgsrc: remove special rule for RESTRICTED

There's no point in saving the fixed value 'NO_BIN_ON_FTP' in the
variable 'RESTRICTED'. The purpose of that code was unclear, as all
packages that define NO_BIN_ON_FTP also define RESTRICTED.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Thu Aug 18 17:51:13 2022 UTC (4 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -1 lines
lintpkgsrc: normalize package name for Apache Web Server modules

Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:53:40 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +2 -2 lines
lintpkgsrc: fix default value of LOCALBASE

LOCALBASE is not related to PKGSRCDIR in any way.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:51:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +11 -13 lines
lintpkgsrc: cleanup: remove redundant punctuation around declarations

Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:48:09 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3 lines
lintpkgsrc: prefer clarity over brevity in usage message

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:45:16 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +22 -19 lines
lintpkgsrc: cleanup: untangle parsing of .include directives

Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:36:10 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +11 -16 lines
lintpkgsrc: cleanup: reduce syntactical verbosity

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:28:33 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +10 -11 lines
lintpkgsrc: add error handling for files and subprocesses

Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:25:26 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +37 -40 lines
lintpkgsrc: cleanup: reduce indentation of parse_makefile_pkgsrc

Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:22:26 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +8 -15 lines
lintpkgsrc: cleanup: condense guess-parsing of PKGNAME

Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:18:20 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +7 -3 lines
lintpkgsrc: fix parse-guessing of pkgsrc-wip packages using an SCM

Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Aug 17 17:47:50 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +11 -11 lines
lintpkgsrc: eliminate common subexpression when parsing package

Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Aug 17 17:40:09 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -6 lines
lintpkgsrc: fix loading of package data; condense loading of categories

Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed Aug 17 17:26:35 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +48 -49 lines
lintpkgsrc: cleanup: move loading and storing of package data together

Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue Aug 16 20:54:35 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +30 -30 lines
lintpkgsrc: cleanup: rename PkgDb to PkgData

The previous name could be confused with the pkgdb directory that holds
information about the currently installed packages.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Aug 16 20:28:41 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +11 -2 lines
lintpkgsrc: improve PKGNAME guessing for PHP, Python, Ruby packages

Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Aug 16 20:10:32 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -1 lines
lintpkgsrc: fix PKGNAME guessing for Lua packages

Previously, the guessed PKGNAME of devel/lua-busted was '-busted-2.0.0',
now it is 'lua-busted-2.0.0'.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Aug 16 20:06:05 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +21 -29 lines
lintpkgsrc: cleanup: condense invalid_version

Revision 1.103: download - view: text, markup, annotated - select for diffs
Tue Aug 16 19:40:24 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +12 -20 lines
lintpkgsrc: cleanup: condense package_globmatch

Revision 1.102: download - view: text, markup, annotated - select for diffs
Tue Aug 16 19:20:06 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +6 -6 lines
lintpkgsrc: cleanup: rename subroutine

Scanning the distfiles is not the main action.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Aug 16 19:15:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +9 -9 lines
lintpkgsrc: don't chdir unnecessarily

Previously, combining the options '-u' and '-E relative-path' did not
work.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Aug 16 19:07:53 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +72 -63 lines
lintpkgsrc: split remove_distfiles into manageable pieces

Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Aug 16 18:58:00 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -21 lines
lintpkgsrc: clean up loading distfiles for installed package

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Aug 16 18:47:50 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +52 -36 lines
lintpkgsrc: separate loading distinfo from checking distinfo

While here, change the message for checksum mismatch, once again. No
other functional change.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Aug 15 21:54:53 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +50 -65 lines
lintpkgsrc: clean up stylistically

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Aug 15 21:09:13 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -14 lines
lintpkgsrc: clean up code for listing required packages

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Aug 14 12:54:01 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -4 lines
lintpkgsrc: accept duplicate strings from brace expansion, for now

Having duplicate expanded strings is not as bad as having missed
alternatives, it's only a question of performance.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Aug 14 12:44:17 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -3 lines
lintpkgsrc: fix brace expansion for empty alternatives

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Aug 14 12:42:38 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -3 lines
lintpkgsrc: fix handling of 0 in brace expansions

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Aug 14 12:40:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +21 -15 lines
lintpkgsrc: extract brace expansion, document its various bugs

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Aug 14 03:18:36 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -2 lines
lintpkgsrc: properly clean up after chdir

When running 'lintpkgsrc -I tmp/lp-85 -yro', lintpkgsrc couldn't find
the cache file due to the intermediate chdir($pkgdistdir).

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Aug 14 03:12:02 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +26 -27 lines
lintpkgsrc: clean up variable names and verbose/debug log messages

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Aug 14 03:06:41 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +29 -30 lines
lintpkgsrc: clean up debug logging

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat Aug 13 12:22:20 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +13 -11 lines
lintpkgsrc: fix expansion of the ':U' modifier

In Perl, 0 is falsy, but in bmake, the modifier ':U' only cares about
undefined vs. defined.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Aug 13 11:34:39 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -2 lines
lintpkgsrc: clean up the output of running 'lintpkgsrc --help'

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat Aug 13 11:27:32 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +40 -31 lines
lintpkgsrc: make distinfo parsing stricter

There are no distinfo files anymore in which the filename starts with
'./', so remove that check.

Complain about invalid distinfo lines. This flags a few pkgsrc-wip
packages, but none in main pkgsrc.

Extract load_distinfo into a separate subroutine, improve local variable
names.

Document that only the first distinfo algorithm (currently BLAKE2s) is
ever checked.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:51:28 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +11 -15 lines
lintpkgsrc: cleanup: rename cache subroutines to be more expressive

It was easily possible to confuse scan_pkgsrc_makefiles with
load_pkgsrc_makefiles, so rename the latter to load_pkgdb_from_cache.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:41:21 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -11 lines
lintpkgsrc: remove extra code for determining the pkg_install version

There is no apparent reason for this code. Lintpkgsrc could already
parse the version of pkg_install, by falling back to running bmake.

When run in debug mode, 'lintpkgsrc -D .' failed because lintpkgsrc used
a wrong regular expression instead of just calling dirname. While here,
fix the variable name 'pkgsrcdir' to simply 'pkgdir', as the previous
name was highly confusing.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:23:40 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +57 -54 lines
lintpkgsrc: clean up evaluation of conditions in makefiles

Having a variable named 'false' was confusing. Having a stack of
if-states in which 0 means true and 1 means false was even more
confusing. Using these magic numbers in the debug log without any
explanation was misleading.

The code, as well as the debug log, now uses the strings 'not_yet',
'active' and 'done' for the state of the conditionals. While it still
requires a bit of thought to read the debug log, it's at least possible
now.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Aug 13 09:33:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +8 -8 lines
lintpkgsrc: cleanup: reduce line noise

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Aug 12 22:45:14 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -4 lines
lintpkgsrc: fix parsing of modifiers in makefiles

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Aug 12 22:40:40 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +9 -6 lines
lintpkgsrc: fix parsing of comments in makefile lines

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Aug 12 22:32:21 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -2 lines
lintpkgsrc: fix parsing of continuation lines in makefiles

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Aug 12 22:18:35 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +24 -24 lines
lintpkgsrc: clean up subroutine names, test conditionals

Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Aug 12 20:53:01 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +16 -22 lines
lintpkgsrc: clean up Pkgs type

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Aug 11 18:55:35 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4 lines
lintpkgsrc: use proper exit status when showing usage

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Aug 11 07:20:52 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +1 -2 lines
lintpkgsrc: cleanup: remove unused conf_sysconfdir

It has been replaced with conf_makeconf.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Aug 11 07:18:47 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +14 -14 lines
lintpkgsrc: cleanup: split PkgDb::pkgver into separate subroutines

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Aug 11 07:07:26 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +12 -21 lines
lintpkgsrc: cleanup: inline numpkgver, split pkgver

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Aug 10 22:43:55 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +15 -15 lines
lintpkgsrc: fix hardcoded paths

No matter whether lintpkgsrc is built in batch mode, its PREFIX must
always be the actual prefix, not the hardcoded /usr/pkg, as there may
also be bulk builds with --prefix=/opt/pkg. Same for mk.conf.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Aug 10 21:48:47 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +50 -44 lines
lintpkgsrc: fix evaluation of conditions in makefiles

Previously, evaluating the conditions was a wild mixture of concepts
taken from bmake's cond.c, without attention to detail. For example, in
the condition 'exists(VAR:Mpattern)', the ':Mpattern' doesn't make any
sense, still lintpkgsrc parsed it as a modifier.

Instead of evaluating the ':M' modifier only in conditions, a better
idea is to have a general subroutine that expands an arbitrary strings,
taking care of all kinds of modifiers.

While the previous code was conceptually wrong, the number of practical
difference is small. Still, it's better to be precise and accurate,
there are enough places with bad heuristics in the rest of the
lintpkgsrc code.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Aug 10 20:16:55 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +10 -12 lines
lintpkgsrc: update to Perl 5.36

Bump version.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Aug 10 07:12:52 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +112 -140 lines
lintpkgsrc: cleanup

Mostly remove redundant punctuation around 'push' and 'defined'.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Aug 10 06:08:15 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +55 -138 lines
lintpkgsrc: cleanup: modernize subroutine signatures

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Aug 9 21:01:49 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -1 lines
lintpkgsrc: recognize comments and shell commands in makefile lines

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Aug 9 20:51:45 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +35 -44 lines
lintpkgsrc: clean up parsing of make variables

Unknown lines are written to the debug log.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Aug 9 20:38:12 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +54 -48 lines
lintpkgsrc: cleanup: extract expand_modifiers

Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Aug 9 20:01:25 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +32 -29 lines
lintpkgsrc: cleanup: extract parse_makefile_line_var

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Aug 9 19:53:02 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +17 -14 lines
lintpkgsrc: clean up parsing of variable assignments

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Aug 9 19:42:46 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +15 -19 lines
lintpkgsrc: fix search path for .include directives

Previously, the search path was in pseudo-random order.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Aug 9 19:31:57 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +63 -63 lines
lintpkgsrc: cleanup: extract parse_makefile_line_include

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Aug 9 19:06:33 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +20 -27 lines
lintpkgsrc: clean up parse_makefile_vars

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Aug 9 18:42:40 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -8 lines
lintpkgsrc: clean up glob2regex

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Aug 9 18:35:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +26 -20 lines
lintpksrc: fix parsing of the ':S' modifier in makefiles

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Aug 9 18:14:22 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -3 lines
lintpkgsrc: fix conversion of glob pattern to regular expression

It is used for evaluating expression modifiers of the form
':S,from,to,'.

Bump version.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Aug 4 21:55:58 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +23 -42 lines
lintpkgsrc: cleanup: merge 'store' subroutines

With small changes, the subroutine for storing the cache can be
restricted to the public API of the types PkgDb, Pkgs and PkgVer. This
way, the 'store' subroutines no longer need to be part of the classes.
Implementing the code in a single external subroutine saves a few lines
of code.

The order of the PkgVer entries in the cache file changes, everything
else is as before.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Aug 4 07:00:51 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +45 -34 lines
lintpkgsrc: rename PkgList to PkgDb

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Aug 4 06:02:41 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -2 lines
lintpkgsrc: fix storing of package variables in the cache

Broken since lintpkgsrc.pl 1.44 from yesterday. All package variables
were stored as empty strings instead of their actual values.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Aug 4 05:50:54 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +21 -21 lines
lintpkgsrc: use single-quoted strings where possible

Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Aug 4 05:45:15 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +9 -13 lines
lintpkgsrc: allow uppercase 'nb' in version numbers

Just for symmetry with the pkg_install implementation; in practice the
'nb' is always lowercase.

Merge most test cases into the versions table, leave a few as simple
examples.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Aug 3 22:03:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +8 -5 lines
lintpkgsrc: fix parsing of version numbers that include letters

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Aug 3 20:50:43 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
lintpkgsrc: fix off-by-9 bug in version comparison (since today)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Aug 3 20:39:27 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +7 -3 lines
lintpkgsrc: fix version comparison for adjacent letters

Previously, lintpkgsrc treated the version numbers 1.0aa and 1.0ab the
same, contrary to pkg_install.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Aug 3 20:32:55 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +21 -41 lines
lintpkgsrc: clean up and condense comparison of package versions

One less 'eval' to worry about.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Aug 3 20:14:16 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +19 -17 lines
lintpkgsrc: rename pkg to pkgbase and ver to pkgversion

The word 'pkg' has too many meanings to be useful in identifiers; use
the standard terminology instead.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Aug 3 20:04:34 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +34 -32 lines
lintpkgsrc: refactor PkgList internals to be more descriptive

The indirection layer through '_pkgs' was not necessary.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Aug 3 19:47:02 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +29 -28 lines
lintpkgsrc: refactor Pkgs internals to be more descriptive

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Aug 3 19:22:34 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +24 -24 lines
lintpkgsrc: refactor PkgVer internals to be more descriptive

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Aug 3 16:15:49 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -1 lines
lintpkgsrc: test parsing of package makefiles

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jul 30 18:20:23 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +253 -225 lines
lintpkgsrc: cleanup: split main into smaller subroutines

No functional change.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jul 30 17:30:47 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -17 lines
lintpkgsrc: condense code for checking mandatory command line options

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Jul 30 17:06:29 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +14 -7 lines
lintpkgsrc: test versioned packages, minor cleanup

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jul 30 16:26:14 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -12 lines
lintpkgsrc: rename safe_chdir to chdir_or_fail

The word 'safe' was too ambiguous.
While here, remove the source code location from the error message.
This error is not expected to occur during normal usage.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jul 30 15:11:26 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +77 -77 lines
pkglint: cleanup: group classes from small to big

No functional change.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jul 30 11:33:23 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +45 -54 lines
lintpkgsrc: use plain text cache format

Previously, the cache format was Perl code. Now it is a list of lines,
each line containing tab-separated data.

The new format reduces the storage needs by around 50%. It also ensures
that only well-formed data is written to the cache.

The previous format contained lots of IO requests, which made loading
the cache incredibly slow.

Bump version.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Jul 30 10:55:51 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
lintpkgsrc: fix warning about string comparison with undefined

Since today.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat Jul 30 10:11:45 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
lintpkgsrc: add automatic tests

Not sure whether this form of running tests is the idiomatic one, as
lintpkgsrc is not a Perl module but a Perl program, but it works.

The number of planned tests (5 for now) seems to be ignored, no idea
why.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Jul 30 09:37:21 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -15 lines
lintpkgsrc: merge duplicate code

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jul 30 09:32:05 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +6 -10 lines
lintpkgsrc: cleanup: replace regular expressions with string comparison

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jul 30 09:23:19 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -16 lines
lintpkgsrc: fix up previous commit for cleaning up version numbers

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jul 30 09:21:41 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -10 lines
lintpkgsrc: clean up comparison of version numbers

No functional change.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Jul 30 08:25:45 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -2 lines
lintpkgsrc: fix error message for accessing category directory

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Jul 30 08:21:31 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +12 -12 lines
lintpkgsrc: cleanup: rename 'dewey' to 'pkgversion'

The Dewey Decimal Classification is a classification for books in
libraries, based on decimal numbers. It has nothing to do with version
numbers.

No functional change.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jul 30 08:18:31 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +864 -868 lines
lintpkgsrc: cleanup: sort subs from small to big

This way, perl properly checks the sub prototypes.

No functional change.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 30 07:37:03 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +429 -430 lines
lintpkgsrc: cleanup: move main code to the bottom

Moving the code revealed some more mismatches in the prototypes of the
subs. In order to detect them properly, the sub must be declared before
it is called.

No functional change.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jul 30 06:56:40 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -7 lines
lintpkgsrc: cleanup: remove redundant curly braces around variable names

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jul 30 06:25:51 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +58 -116 lines
lintpkgsrc: condense 'else' and 'elsif'

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jul 30 06:21:17 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1558 -1626 lines
lintpkgsrc: format code

No functional change.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jul 29 19:00:36 2022 UTC (4 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +11 -5 lines
lintpkgsrc: enable Perl warnings

No functional change.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Apr 27 22:24:16 2022 UTC (4 years, 6 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -2 lines
lintpkgsrc: fix Perl warning when parsing variable expressions

When parse-guessing a package Makefile, lintpkgsrc tries to evaluate
variable expressions such as ${VAR:S,from,to,} by passing them through
Perl's eval function.

In a variable expression of the form ${VAR:S,@exec@,${exec},}, this
produced Perl warnings due to the unescaped '@':

	Possible unintended interpolation of @exec in string at
	(eval 63841) line 1.

As a quick fix, skip ':S' modifiers that contain the character '@' for
now.  A proper fix will follow.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jan 1 13:27:37 2022 UTC (4 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -3 lines
lintpkgsrc: fix bogus warning for devel/lua-moses

The warning was:

	Bogus: -${DISTNAME:tl:S/-1$//1}
	    (from /.../devel/lua-moses/Makefile)

Previously, lintpkgsrc searched for the package name and version by
looking for '-' followed by a digit.  This was too naive, as in the
above expression, the '-1' does not mark the beginning of the version
number.  Fix this by resorting to 'make show-vars' in all cases in which
the PKGNAME still contains a '$'.

When running 'lintpkgsrc -Dp devel/lua-moses' with a relative directory
as argument, lintpkgsrc tried 'cd /lua-moses' and ignored the failure,
running 'make show-vars' in the current directory instead, which in my
case was the top-level pkgsrc directory.

Bump version.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Dec 17 16:17:45 2020 UTC (5 years, 10 months ago) by rillig
Branches: MAIN
CVS tags: 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.19: preferred, colored
Changes since revision 1.19: +5 -2 lines
pkgtools/lintpkgsrc: update to 4.96

Changes since 4.95:

Do not complain about "Bogus: ${_SVN_PKGREVISION:...}" that are
generated by wip/mk/*-package.mk.  Using PKGREVISION to track the
current date of the package is the wrong approach; PKGVERSION_NOREV
should be used instead.  Anyway, this is nothing the average pkgsrc user
should be worried about, so shut up the warning for now.

https://mail-index.netbsd.org/pkgsrc-users/2020/12/16/msg032884.html

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Dec 17 16:08:44 2020 UTC (5 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +8 -8 lines
lintpkgsrc: remove trailing whitespace

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Sep 16 02:03:57 2020 UTC (6 years, 2 months ago) by gutteridge
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
lintpkgsrc: fix grammar in message

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Aug 17 02:38:54 2020 UTC (6 years, 3 months ago) by tnn
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +15 -5 lines
lintpkgsrc: update to 4.95

Use xargs when executing digest for -m.
PR pkg/48335: error when using -m and too many files in DISTDIR

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jul 16 10:11:39 2020 UTC (6 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
lintpkgsrc: use closedir() when using opendir()

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Dec 15 10:54:59 2017 UTC (8 years, 11 months ago) by adam
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, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Fix for wrong interpreter

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Dec 15 09:17:04 2017 UTC (8 years, 11 months ago) by leot
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -5 lines
lintpkgsrc: Update pkgtools/lintpkgsrc to 4.94

pkgsrc changes:
 - Use SUBST_VARS instead of SUBST_SED to adjust the several variables in
   files/lintpkgsrc.pl and avoid some make contortionism in the remaining
   SUBST_SED

Changes:
 - PKG_SYSCONFDIR can be different to ${PREFIX}/etc, instruct lintpkgsrc
   about that to possibly pick mk.conf when an /etc/mk.conf file is not
   available

Discussed on pkgsrc-changes@ with <adam> and <jperkin>.
Thanks to both <adam> and <jperkin> for feedback, suggestions and review!

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Dec 14 14:11:40 2017 UTC (8 years, 11 months ago) by adam
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +7 -1 lines
lintpkgsrc: updated to 4.93

4.93:
Allow alternative location of mk.conf: if /etc/mk.conf does not exist, try PREFIX/etc/mk.conf.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jun 22 06:11:25 2017 UTC (9 years, 4 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
Deal with perl 5.26.  Bump PKGREVISION

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Mar 12 09:06:29 2016 UTC (10 years, 8 months ago) by wiz
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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
Remove duplicate if. Ride bump.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Mar 12 09:05:22 2016 UTC (10 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -40 lines
Remove non-working -V option from lintpkgsrc. Bump version.

From Taylor Stearns <tstearns@pobox.com> in PR 42172.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Nov 25 20:46:28 2015 UTC (10 years, 11 months ago) by leot
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -5 lines
Use Cwd::realpath() for the -[KMP] flags.

Fixes PR pkg/50444 reported by dholland@ and also fixes various possible
problems when relative paths are used.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 5 13:16:44 2015 UTC (11 years, 1 month ago) by tnn
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
simplify previous; _ is included in \w

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Oct 5 13:12:12 2015 UTC (11 years, 1 month ago) by tnn
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
fix regexps for patch names: '+' and '_' are allowed characters

Fixes false checksum mismatch errors from lintpkgsrc -m.
Bump version to lintpkgsrc-4.90.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jul 1 19:57:31 2015 UTC (11 years, 4 months ago) by tron
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Update "lintpkgsrc" package to version 4.89:
- Fix warnings reported by Perl 5.22.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 10 20:12:24 2015 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.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
Improve variable expansion, in particular improving EMACS packages.
From J. Lewis Muir.

Bump version.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Nov 24 09:41:25 2014 UTC (11 years, 11 months ago) by bsiegert
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +127 -2 lines
New lintpkgsrc release. It contains the -y and -z parameters provided by
Adrian Portelli ten years ago in PR pkg/25451.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Feb 9 18:51:56 2013 UTC (13 years, 9 months ago) by mspo
Branches: MAIN
CVS tags: 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
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -15 lines
this should address 47516

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Sep 9 15:47:35 2012 UTC (14 years, 2 months ago) by mspo
Branches: MAIN
CVS tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +34 -13 lines
use file::find to save memory in lintpkgsrc- should never grow more than 25MB now -- makes no effort to clean up empty directories, so that is still fixable

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 13 21:12:07 2012 UTC (14 years, 4 months ago) by abs
Branches: MAIN
Updated pkgtools/lintpkgsrc to 4.84

4.84:
- Misparse Makefiles a little better. Check for '.' in the left hand of :S and
  :C operations, and also handle :U
- Move files from pkglint/files to lintpkgrsc/files

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>