pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/doc/guide/files
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.
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 @@
-<!-- $NetBSD: examples.xml,v 1.15 2020/01/28 03:15:47 rillig Exp $ -->
+<!-- $NetBSD: examples.xml,v 1.16 2020/01/28 03:33:04 rillig Exp $ -->
<appendix id="examples">
<title>A simple example package: bison</title>
@@ -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@localhost
HOMEPAGE= http://www.gnu.org/software/bison/bison.html
@@ -63,11 +63,18 @@ share/bison.hairy
<filename role="pkg">pkgtools/pkglint</filename>
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
<command>pkglint</command>:</para>
<screen>&uprompt; <userinput>pkglint</userinput>
-looks fine.</screen>
+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.)</screen>
<para>Depending on the supplied command line arguments (see pkglint(1)),
more checks will be performed. Use e.g. <command>pkglint
Home |
Main Index |
Thread Index |
Old Index