Received: by mail.netbsd.org (Postfix, from userid 605) id 0E34D84D66; Tue, 28 Jan 2020 03:33:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 88EC384D61 for ; Tue, 28 Jan 2020 03:33:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Whg8khEO43rJ for ; Tue, 28 Jan 2020 03:33:05 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 0DE5B84CDF for ; Tue, 28 Jan 2020 03:33:05 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 08257FBF4; Tue, 28 Jan 2020 03:33:05 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_158018238555490" MIME-Version: 1.0 Date: Tue, 28 Jan 2020 03:33:05 +0000 From: "Roland Illig" Subject: CVS commit: pkgsrc/doc/guide/files To: pkgsrc-changes@NetBSD.org Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20200128033305.08257FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_158018238555490 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: rillig Date: Tue Jan 28 03:33:04 UTC 2020 Modified Files: pkgsrc/doc/guide/files: examples.xml Log Message: doc/guide: make the pkglint output more realistic The bison example package is quite old-fashioned, therefore the modern pkglint generates quite a few warnings for it. These also serve better in the example than a mere "looks fine". To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 pkgsrc/doc/guide/files/examples.xml Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_158018238555490 Content-Disposition: inline Content-Length: 1843 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/doc/guide/files/examples.xml diff -u pkgsrc/doc/guide/files/examples.xml:1.15 pkgsrc/doc/guide/files/examples.xml:1.16 --- pkgsrc/doc/guide/files/examples.xml:1.15 Tue Jan 28 03:15:47 2020 +++ pkgsrc/doc/guide/files/examples.xml Tue Jan 28 03:33:04 2020 @@ -1,4 +1,4 @@ - + A simple example package: bison @@ -21,7 +21,7 @@ DISTNAME= bison-1.25 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITES= ${MASTER_SITE_GNU:=bison/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnu.org/software/bison/bison.html @@ -63,11 +63,18 @@ share/bison.hairy pkgtools/pkglint which helps to check the contents of these files. After installation it is quite easy to use, just change to the - directory of the package you wish to examine and execute + directory of the package you wish to examine and run pkglint: &uprompt; pkglint -looks fine. +ERROR: Makefile: Each package must define its LICENSE. +WARN: Makefile:9: HOMEPAGE should migrate from http to https. +NOTE: PLIST:3: The .gz extension is unnecessary for manual pages. +WARN: PLIST:5: "share/bison.hairy" should be sorted before "share/bison.simple". +1 error, 2 warnings and 1 note found. +(Run "pkglint -e" to show explanations.) +(Run "pkglint -fs" to show what can be fixed automatically.) +(Run "pkglint.exe -F" to automatically fix some issues.) Depending on the supplied command line arguments (see pkglint(1)), more checks will be performed. Use e.g. pkglint --_----------=_158018238555490--