PKG_LINT_SUMMARY(1)

NAME
pkg_lint_summary - attempts to detect problems in input summaries

SYNOPSIS
pkg_lint_summary [OPTIONS] [files...]

DESCRIPTION
pkg_lint_summary attempts to detect problems in input summaries.

OPTIONS

-h  display help message

-l  analyses REQUIRES/PROVIDES fields of pkg_summary(5) given on input. Format of the output:
       l: not_found SO_LIBRARY PKGPATH PKGNAME This means that the package PKGNAME from PKGPATH requires SO_LIBRARY but there is no package that provide it. Only files under prefix directory are analysed, see option -p for more information.
    Example:
       # pkg_info -Xa | pkg_lint_summary -l
       l: not_found /usr/pkg/lib/libmaa.so.2 wip/dict dict-1.11.2
       l: not_found /usr/pkg/lib/libz.so.1 wip/dict dict-1.11.2
       l: not_found /usr/pkg/lib/libz.so.1 wip/dictd dictd-1.11.2
       #

-L  checks that files listed in REQUIRES exist. Format of the output:
       L: not_found LIBRARY PKGPATH PKGNAME This means that the package PKGNAME from PKGPATH requires file LIBRARY but it doesn't exist.
    Example:
       # pkg_delete -f libmaa
       # pkg_info -Xa | pkg_lint_summary -L
       L: not_found /usr/pkg/lib/libmaa.so.2 textproc/dict dict-1.11.2
       L: not_found /usr/pkg/lib/libmaa.so.2 textproc/dictd dictd-1.11.2
       L: not_found /usr/pkg/lib/libmaa.so.2 wip/paexec paexec-0.15.0
       #

-d  checks that ALL required DEPENDS are present and their versions are good to satisfy requirements. Format of the output:
       d: not_found ABSENT <- PKGPATH PKGBASE This means that the package PKGBASE from PKGPATH requires package ABSENT but it is absent in input summary or requirements are not satisfied.
    Example:
       # pkg_delete -f gtk2+
       # pkg_delete -f paexec
       # pkg_info -Xa | pkg_lint_summary -d
       d: not_found gtk2+ <- net/avahi avahi
       d: not_found gtk2+ <- devel/xulrunner xulrunner
       d: not_found gtk2+ <- graphics/graphviz graphviz
       d: not_found paexec <- wip/distbb distbb
       d: not_found gtk2+ <- www/firefox firefox
       d: not_found gtk2+ <- devel/libglade libglade
       d: not_found gtk2+ <- www/nspluginwrapper nspluginwrapper
       #

-D  the same as "-d" but for BUILD_DEPENDS

-c  summary given on input is analysed for CONFLICTS, found conflicts are output in the following format:
       c: conflict CNFLCT_REQD CNFLCT_PATH CNFLCT_NAME <- PKGPATH PKGNAME

-n  analyses PLIST and CONFLICTS fields in input summary and outputs information about unregistered conflicts, i.e. common file and conflicting packages. Output format is below.
       n: conflict FILE <- PKGPATH1 PKGNAME1 PKGPATH2 PKGNAME2 The line above means that (PKGPATH1, PKGNAME1) and (PKGPATH2, PKGNAME2) packages have at least one common file FILE but have no appropriate CONFLICTS entry.
    Example:
       # pkg_lint_summary -n pkg_summary.txt
       n: conflict /usr/pkg/bin/lzgrep <- archivers/xz xz-5.0.3 \
                      archivers/lzip lzip-1.7
       n: conflict /usr/pkg/libexec/cpp <- devel/lcc lcc-4.1 \
                      lang/pcc pcc-1.0.0
       n: conflict /usr/pkg/sbin/sshd <- security/openssh openssh-5.8.2nb2 \
                      security/ssh2 ssh2-3.2.9.1nb7
       #

-u  check unicity of PKGBASE of packages given on input and outputs found problems to stderr in the following format:
       u: unicity PKGBASE <- PKGPATH1 PKGPATH2 ... PKGPATHn

-f  check files in PLIST fields given on input and warns about files common for several packages. Format of the output:
       f: conflict FILE <- PKGPATH1 PKGNAME1 PKGPATH2 PKGNAME2 ... Example:
       # pkg_bin_summary -f PKGNAME,PKGPATH,PLIST \
             ./tex-metapost-1.211.tgz ./web2c-2011.tgz | \
         pkg_lint_summary -f
       f: conflict /usr/pkg/bin/mfplain \
                graphics/tex-metapost tex-metapost-1.211 \
                print/web2c web2c-2011
       #

-s  check OPSYS, OS_VERSION and MACHINE_ARCH fields given on input and warns if they differ from running system (uname -srm). Format of the output:
       s: mismatch PKGPATH PKGNAME OPSYS OS_VERSION MACHINE_ARCH Example:
       # pkg_bin_summary | pkg_lint_summary -s
       s: mismatch devel/tmake tmake-1.13 NetBSD 5.0 x86_64
       #

-p prefix
    specifies prefix used by option -l. The default value is determined at compile time.
    Example:
       # /usr/pkg/bin/pkg_lint_summary -l summary.txt
       # /usr/pkg/bin/pkg_lint_summary -p /opt/pkgsrc -l summary.txt
       l: not_found /opt/pkgsrc/lib/libmaa.so.2 wip/dict dict-1.11.2
       l: not_found /opt/pkgsrc/lib/libz.so.1 wip/dict dict-1.11.2
       l: not_found /opt/pkgsrc/lib/libz.so.1 wip/dictd dictd-1.11.2
       #

EXIT STATUS
Non-zero value if errors were encountered, zero otherwise.

ENVIRONMENT

TMPDIR
    Directory for temporary files, by default /tmp is used.

SEE ALSO
pkg_summary-utils(7), pkg_summary(5), pkg_src_summary(1), pkg_info(1)

AUTHOR
Aleksey Cheusov <vle@gmx.net>