Commit graph

5564 commits

Author SHA1 Message Date
plunky
894c5e9f65 add afl-3.0 as acceptable default license 2020-04-30 09:47:51 +00:00
jperkin
ccc3e27c10 pkgin: Update to 0.16.1.
The "jperkin should have run the test suite before releasing 0.16.0" release.

## Version 0.16.1 (2020-04-29)

 * Don't attempt to update the keep list if we're only downloading packages.
 * Avoid C99isms for now, fixes CentOS 6 build.
 * Ignore "pkg_admin rebuild-tree" output, removes spurious "Done." messages
   from output.
 * Some minor internal refactoring.
2020-04-29 15:09:20 +00:00
rillig
9057d45716 pkgtools/pkgin: define PKGPATH before including mk.conf
PKGPATH is one of the few variables that is guaranteed to be defined when
mk.conf is included. Conditions like ".if ${PKGPATH} == category/package"
trigger a "Malformed conditional" when this variable is not defined.
2020-04-28 02:43:21 +00:00
jperkin
104f4863f2 pkgin: Update to 0.16.0.
## Version 0.16.0 (2020-04-27)

 * Rebuild +REQUIRED_BY files after each pkgdb modification, ensuring
   consistency and avoiding "Can't open +CONTENTS of ..." errors during
   subsequent upgrades.
 * Improved output sorting.
 * Turn off WARNS.
 * Minor cleanups.
 * Documentation fixes.
 * Flush yes/no prompt before reading response (Michael Forney).
2020-04-27 14:54:47 +00:00
rillig
bd33698e2a pkgtools/pkg_filecheck: fix absolute path to PKG_DBDIR 2020-04-27 05:35:29 +00:00
sborrill
f6c23d12bd Allow NetBSD distribution tarball file extension to be defined with DISTRIB_EXT.
Default to tgz.
Bump to version 1.39
2020-04-23 11:28:08 +00:00
rillig
8c83e680a9 pkgtools/check-portability: make test == an error
It had only been a warning before, due to a forgotten nerrors++. The
check in mk/check/check-portability.awk already treats this case as an
error.
2020-04-19 12:47:27 +00:00
rillig
703d1f721c pkgtools/check-portability: update to 20.1.0
Changes since 19.4.3:

The variable name RANDOM_FILE is ok since it doesn't have a special
meaning to some shell implementations. Seen in www/curl.
2020-04-19 12:05:14 +00:00
rillig
7e5d8473be pkgtools/pkglint: update to 20.1.2
Changes since 20.1.1:

Ensure that relative paths to other packages have the canonical form
../../category/package.

Add notes about pathname patters that mention ${WRKSRC} even though they
are already defined to be relative to WRKSRC.

Fix check for redundantly added categories. The check had previously
reported that the included file would be redundant, which was wrong.
It's always the including file that provides the redundancy.
2020-04-13 19:46:44 +00:00
bsiegert
9429a8bf7a Revbump all Go packages after default version switch to 1.14. 2020-04-12 11:01:37 +00:00
adam
24daafa112 Recursive revision bump after textproc/icu update 2020-04-12 08:27:48 +00:00
khorben
32d09f38b3 pkg: update to version 1.9.99.11
The changes since version 1.99.9 appear to be:

- New pkg upgrade --vulnerable
2020-04-10 23:46:14 +00:00
khorben
83e301dfe2 pkg: update to version 1.99.9
The changes since version 1.99.4 appear to be:

- Fix pkg register issues with some version of libarchive:
  * hardlinks not being made hardlinks sometime
  * issues when PREFIX is a symlink to another directory
- Use portable mechanism to find the number of CPUs which allows pkg repo to be
  faster on linux
2020-04-10 23:38:50 +00:00
khorben
66d29d9766 pkg: fix build with developer checks enabled
This adds a patch to fix a portability check.

Bumps PKGREVISION.
2020-04-10 23:28:32 +00:00
riastradh
47c5a1e893 Bump version for pbulk script fixes. 2020-04-04 20:44:36 +00:00
riastradh
c92a9b3913 Fix typo: $client_prepare_chroot, not clients_prepare_chroot. 2020-04-04 15:17:48 +00:00
riastradh
4880294ca4 Fix order of assignments so we set path as intended, not to empty. 2020-04-04 15:17:36 +00:00
rillig
c26a5fad6c pkgtools/pkglint: update to 20.1.1
Changes since 20.1.0:

In UNLIMIT_RESOURCES, the recently added virtualsize is allowed.

Packages that have distfiles without any digit in their name should
define DIST_SUBDIR to avoid polluting the global namespace. The
top-level distfiles directory should only contain versioned filenames.
2020-03-26 07:02:44 +00:00
rillig
8792f5214c pkgtools/pkglint: update to 20.1.0
Changes since 19.4.13:

It is an error to have TODO lines in DESCR files. These are typically
generated by url2pkg and should be replaced with proper text before
committing the package.
2020-03-23 19:55:08 +00:00
rillig
24e2b05c2a pkgtools/pkglint: update to 19.4.13
Changes since 19.4.12:

Files that are mentioned redundantly in PLIST files generate an error.

Missing DESCR files generate an error.

Hard-coded /usr/pkg in patches generates an error.
2020-03-22 17:43:15 +00:00
tnn
52ffc6ace4 rc.subr: mark as not for unprivileged, because of PREFIX:=/ abuse 2020-03-22 13:21:05 +00:00
bsiegert
f5efefe062 Revbump all Go packages after go113 update. 2020-03-21 16:57:00 +00:00
rillig
18059b34de pkgtools/check-portability: automatic test, refactoring 2020-03-21 15:02:20 +00:00
rillig
f08be7b699 pkgtools/pkglint: increase performance 2020-03-18 08:42:48 +00:00
rillig
0b88ed50ca pkgtools/pkglint: update to 19.4.12
Changes since 19.4.11:

Redundant additions to BUILDLINK_API_DEPENDS and BUILDLINK_ABI_DEPENDS
get warnings since they may have been needed in the past but the
dependent package has increased its required version numbers over time.
2020-03-18 08:24:49 +00:00
rillig
9559fc179c pkgtools/pkglint: update to 19.4.11
Changes since 19.4.10:

The use of PKG_OPTIONS and PKG_BUILD_OPTIONS in buildlink3.mk and other
files is checked for common mistakes.

Checking the indentation of a continuation line no longer crashes in edge
cases.
2020-03-15 11:31:24 +00:00
rillig
689d54f107 pkgtools/check-portability: fix function names 2020-03-14 09:47:09 +00:00
rillig
5568a175e9 pkgtools/check-portability: update to 19.4.3
Changes since 19.4.2:

Fixed a crash when a file started with an empty line.
2020-03-14 09:18:49 +00:00
rillig
6659486108 pkgtools/check-portability: elimitate common subexpression 2020-03-13 16:43:05 +00:00
rillig
c03a78cece pkgtools/check-portability: update to 19.4.2
Changes since 19.4.1:

Fixed an assertion error when reading binary file, reported by tnn via
private mail.
2020-03-13 16:20:34 +00:00
rillig
da15757bea pkgtools/check-portability: reduce dependencies
Since this is a very basic program, it should not depend on anything more
complicated, to avoid creating cyclic dependencies.
2020-03-13 08:17:18 +00:00
rillig
b9e43a0b48 pkgtools/check-portability: explain how to fix the errors 2020-03-12 19:45:06 +00:00
rillig
86eb11d3ba pkgtools/check-portability: make explanation for [[ more precise 2020-03-12 19:26:17 +00:00
rillig
0b6b0bb8b0 pkgtools/check-portability: minor stylistic corrections 2020-03-12 08:55:07 +00:00
rillig
509ef148b0 pkgtools/check-portability: update to 19.4.1
Changes since 19.4.0:

* Makefile.am and Makefile.in are checked even though they don't start
  with a #! line.
* Only shell programs with an interpreter that is clearly a POSIX shell
  are checked. Before, there was a blacklist of interpreters to be
  skipped.
* Lots of refactorings and code cleanups.
* Some additional test files.
2020-03-12 08:42:34 +00:00
rillig
e1f4ffd38d pkgtools/check-portability: fix build for partly-privileged mode 2020-03-12 00:05:36 +00:00
rillig
3c199d5660 pkgtools/check-portability: fix exclusion for test files 2020-03-11 23:50:05 +00:00
rillig
b8b6cbe5f5 pkgtools/check-portability: add checks from check-portability.awk
This makes those checks redundant as soon as check-portability is
installed. This is only a temporary solution until the test phase is
over.
2020-03-11 23:36:32 +00:00
rillig
6df1e80257 pkgtools/check-portability: improve local function names 2020-03-11 22:41:17 +00:00
rillig
0790285428 pkgtools/check-portability: check extracted files for portability issues
Checks whether the given files use features of programming languages that
are not portable to a wide range of platforms.

See mk/check/check-portability.mk.

https://mail-index.netbsd.org/tech-pkg/2020/03/10/msg022787.html

This new check is not active by default, and the package is not forced to
be installed. This will be done after getting some experience in
practical cases.

The code has been tested by extracting about 1.7 GB of pkgsrc distfiles
and scanning for lines containing both "[[" and "]]".
2020-03-11 19:15:03 +00:00
brook
bae1f1e3df Select fields explicitly from df.depends in make.df.depends().
The function make.df.depends() constructs a dataframe for DEPENDS lines in
the updated Makefile.  That dataframe is combined with other dataframes for
different portions of the Makefile.  Consequently, all the dataframes must
have the same fields or combining with rbind() fails.  Previously, the
dataframe had the wrong set of fields; this explicitly selects the correct
set that matches the other dataframes so that they can all be combined
correctly.
2020-03-11 16:13:35 +00:00
wiz
4e3b1b97c2 librsvg: update bl3.mk to remove libcroco in rust case
recursive bump for the dependency change
2020-03-10 22:08:37 +00:00
wiz
8f80abc5f2 revbump: 2.15: update check-cvs-diff for current ruby and python versions. 2020-03-08 17:06:16 +00:00
wiz
f669fda471 *: recursive bump for libffi 2020-03-08 16:47:24 +00:00
rillig
f9486e2bfe pkgtools/pkglint: update to 19.4.10
Changes since 19.4.9:

In continuation lines with long values, pkglint no longer suggests to
move the continuation backslash in the middle of the variable value, as
that would be impossible.

Warn when a shell command is assigned to a variable that only takes
pathnames. Shell commands can contain command line options, and these
are not pathnames.

The TOOLS_PLATFORM.tool variables are not defined on every platform.
When these variables are used outside an OPSYS check, a warning lists
the platforms where the tool is undefined or only defined conditionally.
2020-03-07 23:35:35 +00:00
brook
eaf33f2b50 Define RPKG, not rpkg, in the environment for R2pkg.R
When reading the environment, R2pkg.R expects RPKG to be the name of the
R package.  Fix the inadvertent use of lower case in the variable name.
2020-03-05 17:15:31 +00:00
brook
86f2f40e73 Add a hyphen (-) to each stored argument so recursive calls work.
In order for recursive calls of R2pkg to work, they must receive the same
set of arguments as the original.  Previous argument handling stripped the
hyphen (-) from each argument; this explicitly restores it.
2020-03-05 17:07:54 +00:00
rillig
2d8401554a pkgtools/pkg_install: add errno details when remove fails
Before, it wasn't clear why removing the file failed. It could be ENOENT
or EPERM or EBUSY, and these lead to different causes.

https://mail-index.netbsd.org/pkgsrc-users/2020/02/28/msg030552.html
2020-03-01 11:02:04 +00:00
rillig
27fa54b11d pkgtools/pkglint: update to 19.4.9
Changes since 19.4.8:

Packages that include omf-scrollkeeper.mk even though their PLIST doesn't
contain any .omf files will generate an error message, suggesting that
the .include line be removed.
2020-02-17 20:22:21 +00:00
rillig
1467f17803 pkgtools/pkg_regress: update to 0.6
Changes since 0.5:

mktemp does not use a file pattern anymore. That file pattern had the
effect that all temporary files had the same name: /tmp/pkg_regress.
2020-02-15 14:40:45 +00:00