Commit graph

4875 commits

Author SHA1 Message Date
joerg
316ec467f5 Disable noisy warning for GCC. 2016-05-07 10:08:30 +00:00
leot
cf2c59f74f Add hpnd to DEFAULT_ACCEPTABLE_LICENSES and *default_acceptable_licenses.
Discussed in tech-pkg@:
http://mail-index.netbsd.org/tech-pkg/2016/04/20/msg016755.html

Thanks to Memnon Anon!
2016-04-21 07:51:51 +00:00
ryoon
ac20a93574 Recursive revbump from textproc/icu 57.1 2016-04-11 19:01:33 +00:00
jperkin
de194647b7 Update bootstrap-mk-files to 20160411. Changes:
* Default to MKCATPAGES=no if mandoc is available on newer SunOS.
2016-04-11 12:37:48 +00:00
joerg
4e86439aac pkg_install-20160410:
Remove pkgdb handling logic from pkg_create, where it should have never
been in first place. Ignore former -U option as new default.
2016-04-10 19:01:19 +00:00
joerg
051b5b5127 Drop support for USE_DESTDIR=no. Bump version. 2016-04-10 17:00:33 +00:00
joerg
7c420efe84 USE_DESTDIR is gone. 2016-04-10 16:59:37 +00:00
jperkin
7aefd7c6ee Support PKGMANDIR. 2016-04-01 13:11:14 +00:00
agc
14e7888a5e Build fixes for rdigest, following previous changes to pkgtools/digest in
February.
2016-03-31 17:06:18 +00:00
gdt
7d8bb2407a Exclude NetBSD 1-5 from using go-pkglint
(Surely more systems should be using pkgint4, as it's obvious that
being i386 and no SunOS is not sufficient.  However, this is a
~minimal fix for NetBSD 5.)
2016-03-23 16:36:53 +00:00
seb
a95c896613 whitespace fix PR pkg/38651 2016-03-20 19:15:33 +00:00
markd
abbfacfa9a Add support for "-isystem dir", transform in the same way as "-Idir" 2016-03-14 20:16:08 +00:00
rillig
cc0455efbd Updated pkglint to 5.3.6.
Changes since 5.3.5:

* Warn about !empty(${VARNAME}), which should be !empty(VARNAME)
* Distinguish ${VARNAME} == "value" and ${VARNAME:Mpattern}
* Corrected isQuotingNecessary for some variable types
* Generally, parse files from mk/, since they define variables
  used by packages. This avoids wrong warnings about possible
  spelling mistakes.
* Warn about $(VARNAME) (with parentheses instead of braces)
* Warn about missing final @ in ${VAR:@var@...@}
* Updated list of hardware architectures
* Enabled CPU profiling on NetBSD
2016-03-13 13:40:10 +00:00
wiz
a3ec2cee00 Remove duplicate if. Ride bump. 2016-03-12 09:06:29 +00:00
wiz
61eb8ead24 Remove non-working -V option from lintpkgsrc. Bump version.
From Taylor Stearns <tstearns@pobox.com> in PR 42172.
2016-03-12 09:05:22 +00:00
jperkin
adddf7ed08 Use LDFLAGS, LDADD isn't in OPSYSVARS and LDFLAGS doesn't require
having to pass through MAKE_ENV.  Fixes build on SunOS.
2016-03-10 09:25:42 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
agc
86beaec17e Update digest package to 20160304
+ remove unnecessary _POSIX_C_SOURCE definitions

+ fix up explicit_memset usage in sha3.c

+ bump version to 20160304
2016-03-04 23:09:25 +00:00
agc
3cefcc036a Update digest to version 20160216, as proposed on tech-pkg.
Changes since previous version:

+ add Taylor Campbell's implementation of SHA3 digests.  This includes
code to calculate 224, 256, 384 and 512bit length digests.

+ change the license on all the code I wrote to be 2-clause BSD

+ modify license years for things that have been changed

+ add self-test command line option to digest(1) via the -t switch

pkgsrc changes

+ derive version number for the package automatically from the source
code
2016-03-03 22:11:07 +00:00
agc
c006a71287 Patch from Silas Silva to:
+ add a --without-src command line argument which allows a sandbox to be
  made without mounting any src tree component

+ bump mksandbox package to 1.6.
2016-03-03 04:41:15 +00:00
jperkin
d05cac7252 Use OPSYSVARS. 2016-02-25 17:25:05 +00:00
bsiegert
e3b61c4350 Revbump packages that build-depend on Go after 1.6 update.
They all build, I checked :)
2016-02-23 20:18:11 +00:00
agc
b1e09097a6 make the name of the header file correct here too 2016-02-14 08:37:25 +00:00
agc
ae9504f186 Fix a small typo to ensure the name of the header file is correct. 2016-02-14 08:06:54 +00:00
wiz
0622daa0d0 pkgdiff: move automatic cleanup of unnecessary patches from patchdiff(1)
to mkpatches(1).

Requested by jperkin.

Update man pages.

Bump version.
2016-02-10 16:00:10 +00:00
wiz
2a9c8e31cf Add paratype to default-allowed licenses, since it is basically ofl-v1.1. 2016-02-10 10:50:18 +00:00
jperkin
bc5850cedd Update pkgin to 0.9.4. Changes:
* Check for pkg_summary updates before fetching packages.
2016-02-08 16:39:30 +00:00
rillig
fdff3e7423 Don't look in pkgtools/pkglint for a newer version, use pkgtools/pkglint4
Bumped version.
2016-02-02 08:02:29 +00:00
rillig
0e527f2700 Fixed dependency pattern for pkglint4 2016-02-02 08:00:10 +00:00
rillig
500dff51c1 Fixed boolean expression for selecting the proper pkglint version
It had been wrong for SunOS-*-i386, which is not supported by the Go
programming language, but was forced to use the Go version nevertheless.
2016-02-01 21:40:39 +00:00
rillig
4e2f61b1ea Updated pkglint to 5.3.5
Changes since 5.3.4:

* Added parser for Makefile conditionals
* Variables that are matched using the :M modifier are checked whether
  the matched value is sensible
* Reworded and explained warning for variable ordering in packages
* Fixed bug in Tree.String
* Fixed a few variable types
2016-01-31 17:18:54 +00:00
markd
01ad0b2b1a Update to 1.1.
Teach about more licenses.
2016-01-30 04:59:57 +00:00
rillig
fbf5f5542a Updated pkglint4 to 1.161
Changes since 4.160:

* Changed OWNER
* Made the package work with PKGSRC_RUN_TEST=yes
2016-01-29 23:01:46 +00:00
jperkin
20ac324a6b Add LICENSE (original-bsd). 2016-01-28 13:39:44 +00:00
rillig
3998949c17 Updated pkglint to 5.3.4
Changes since 5.3.3:

* Added some unit tests
* Fixed the Makefile parser to recognize seldomly-used variable modifiers
  like :S///S/// without intermediate colon or :ts\n
* Cleaned up some unit tests
* Combined diagnostics that span multiple lines into single-line ones
2016-01-27 21:55:50 +00:00
rillig
9d83eaf9b7 Updated pkglint to 5.3.3
Changes since 5.3.2:

* The -e, -fs, -F options are advertised even when no warnings and errors
  occurred. In such a case, there were only notes, and some of these can
  also be autofixed.
* Special handling for autoconf{,213} tools, since mentioning these in
  USE_TOOLS makes available more than just one tool command.
* Downgrades from 1.0nb17 to 1.0 are no longer flagged as warnings.
* Files in /wip/mk/ are scanned like all other files, to prevent warnings
  about undefined or unused variables.
2016-01-26 21:10:42 +00:00
wiz
99509e455e Sort sections; new sentence, new line. Fix Dt argument. 2016-01-24 19:45:30 +00:00
markd
6759744daa Add texlive2pkg 2016-01-24 19:35:26 +00:00
markd
49e9a406b7 Add texlive2pkg 1.0
Tool to automate initial steps in building a texlive package
2016-01-24 19:34:44 +00:00
rillig
247c4f61e8 Fixed accidental RCS Id in source code 2016-01-24 02:21:35 +00:00
rillig
fe44b96835 Updated pkglint to 5.3.2
Changes since 5.3.1:

Alignment of variable values is no longer checked by single line, but by
the complete block (e.g. SUBST_*).  Pkglint now checks that all variables
belonging to a block are indented consistently, so that their values are
aligned nicely.

Since pkglint does not report warnings, but only notes, and since it can
fix them automatically, the burden on the package developers will be very
low. Especially, since these notes are only printed when pkglint is called
with the -Wspace or -Wall options.

Also, pkglint supports running its unit tests now.
2016-01-24 02:03:28 +00:00
tron
1f01e1f5ac Fix syntax error 2016-01-21 21:32:22 +00:00
joerg
5304860a3e Explicitly disable libarchive's LZMA support if no builtin XZ was found
or if the user requested it to be disabled. Helps on systems with lzma.h
and no usable library.
2016-01-21 18:11:31 +00:00
joerg
f2f381c43b Prepare for multiple users of LIBARCHIVE_CONFIGURE_ARGS by using append. 2016-01-21 18:10:19 +00:00
fhajny
0c9abf09ee Revbump all Go packages after the go-1.5.3 security update (hint: static
linking).
2016-01-18 15:33:43 +00:00
rillig
20ad3e3eac Updated pkglint to 5.3.1
Changes since 5.3:

* disabled CPU profiling on NetBSD, since it crashes without any output;
  see https://github.com/golang/go/issues/13914
2016-01-16 16:29:03 +00:00
rillig
cbe47754f0 Added version selection based on the platform 2016-01-12 20:08:17 +00:00
rillig
cd39a64b8a Small cleanup after version 5.3 2016-01-12 01:07:37 +00:00
rillig
806fe06245 Updated pkglint to 5.3
Changes since 5.2.2.2:

* Makefile variables

The warnings about missing permissions sound more natural than before
and give a hint for alternative operators (e.g. set-default instead
of append), or an alternative file where setting this variable is
allowed instead (e.g. PKGREVISION may not be set in Makefile.common,
but in Makefile it is ok).

Warnings about "unknown" allowed permissions are not shown anymore,
since they didn't provide any benefit. To see them again, pkglint must
be run with the -Dunchecked option.

User-defined variables may be used by builtin.mk. They may also be
used during load time, not only during run time, under the assumption
that in most cases the bsd.prefs.mk has already been loaded.

Some individual variables may be defined or used in places where this
was not allowed before. CHECK_BUILTIN.*, BUILDLINK_TARGETS,
TOOLS_DEPENDS.*, BUILDLINK_DEPMETHOD.*, SUBST_CLASSES.

A new parser for Makefile expressions detects and reports more
mistakes than bmake itself. Currently it is only used to check the
basic syntax; more applications are possible.

* PLIST

In PLIST files, conditionals of the form ${PLIST.*} are recognized and
are not part of the pathname. This allows pkglint to better check for
missing manual pages and correctly sorted PLIST files.

In --autofix mode, pkglint can sort PLIST files, which makes these
rather annoying warnings easy to fix.

No more warnings for man pages whose filename doesn't match exactly
the section, e.g. man/man3/exit.3c.

* Patches

The code for checking patch files has been completely rewritten, so
that it is easier understandable and well-structured. As an additional
benefit, it also became faster. Support for context diffs has been
dropped to a minimum, since they are not popular anymore.

Pkglint no longer warns about missing trailing whitespace in a line,
since all patch programs can handle these lines. It also doesn't
request empty lines between multiple diffs in a single file, since
that is simply not necessary.

Pkglint is picky when a patch file continues after the diff with some
text that still looks like a diff, since that means the patch doesn't
do what it looks like on first sight
(example: audio/faad2/patches/patch-au).

* Distinfo

When a patch file listed in distinfo cannot be found in the
filesystem, this is reported clearly instead of complaining about
missing SHA512 hashes (example: audio/libopus).

The inter-package distinfo check that verifies whether a distfile has
different hashes has been enabled. It had been disabled before, but
unintentionally so.

* Misc

- The check for COMMENT has been updated to reflect the changed
  default value from url2pkg.
- BUILDLINK_API_DEPENDS.* may be set in buildlink3.mk, even if the
  package is not the current one. (The other variables may be only set
  for the current package.)
- In shell commands, the escape sequence \. (and similar ones, which
  are often seen in sed(1) commands) no longer produces a warning,
  since the different shells handle these escape sequences
  consistently. (It is the echo(1) implementations that actually
  differ, therefore this warning was superfluous.)
- Compiler flags in backticks (typically `pkg-config --cflags`) are
  properly recognized.
- Internal pkglint errors when parsing shell commands have been fixed.
- No more warnings about PKGCONFIG_FILE.* being defined but unused.
- Dependencies of the form pkgbase>=1.0<5.0 are recognized.
- Diagnostics use quotes more often to indicate the placeholders.
- The type of GENERATE_PLIST has been changed from List of ShellWord
  to ShellCommands, since that is what the variable is really about.
- The type ShellCommand used to mean "a shell command line in a
  Makefile", which was confusing. Now it means what the name says,
  which reduces the wrong warnings for variables like CC (example:
  x11/kdebase3/options.mk).
- Improved buildlink3.mk checks to generate more helpful diagnostics.
- Fixed the parsing of dependency patterns, so that all but the most
  exotic ones are properly recognized.
- Fixed the parsing of shell variables of the form ${var%.c}.
- Updated the check for the default COMMENT from url2pkg.
- Many more small improvements.
- Performance has improved again, though only a little bit.
- Unit test coverage has increased from 64.2 % to 78.9 %.

This fixes most of the points mentioned in PR pkg/46570.
2016-01-12 01:02:48 +00:00
bsiegert
598a750813 Fix wrong character count in strncmp. From Kamil Rytarowski in
PR pkg/49761.
2016-01-10 19:13:05 +00:00