Commit graph

5224 commits

Author SHA1 Message Date
agc
cc6c917ed9 Update digest package to version 20190127
Remove some gcc-isms in a macro in keccak.c, provided by Erno Palonheimo
in PR pkg/53771
2019-01-27 22:50:55 +00:00
dholland
af41b60ce9 Remove pointless/vacuous logic clause. 2019-01-26 21:12:54 +00:00
dholland
17ffb3a223 Use BROKEN_ON_PLATFORM for unsupported things meant to be fixed eventually. 2019-01-26 21:11:48 +00:00
rillig
94af8e5f77 pkgtools/pkglint: update to 5.6.12
Changes since 5.6.11:

* In buildlink3.mk files, print the paths relative
  to the line, not to the pkgsrc root.

* When explaining that a variable cannot be set/used because of wrong
  permissions, list the permissions. This provides more transparency
  than just stating that the desired action is not allowed.

* When pkglint checks a pkgsrc-wip package, don't warn about malformed
  lines in doc/CHANGES-* since pkgsrc-wip users typically cannot do
  anything about these errors.

* In profiling mode, not only the code coverage and the performance
  statistics are dumped, the whole heap is also dumped to see which
  parts of pkglint consume the most heap memory. Pkglint now needs
  less heap memory than before, which mainly affects full scans.

* The checks for absolute pathnames have gone. They were of questionable
  value since pkglint has failed to give proper advice on how to fix
  them properly, at least for the last 12 years.

* The check that pkgsrc-wip packages should only use exact CVS Ids
  (the unexpanded variant) has been disabled again. It occurred about
  16000 times but even fixing it wouldn't improve anything since it
  was mostly a formatting issue without any practical consequences.

* Warn about trailing variable modifiers like in ${VAR:S,from,to,extra}.

* Properly parse ${VAR:!command!}.

* Suggest to replace SUBST_SED with SUBST_VARS where possible, even
  with complicated shell quoting. Pkglint can autofix most of these
  overly verbose cases.

* Load builtin.mk whenever the corresponding buildlink3.mk file is
  included. This fixes several warnings about undefined variables
  (especially for packages using OpenSSL).

* Parse .for lines like bmake does since 2015, splitting words like
  in brk_string.

* Optionally show a warning even if it cannot be autofixed by pkglint.
  This is useful for the SUBST_VARS replacement since even when
  pkglint cannot automatically replace the code, there are still cases
  where it can warn at least.

* As always, several refactorings.
2019-01-26 16:31:33 +00:00
agc
f44279d1fb Update mksandbox to version 1.8
Fix in PR pkg/53896 from silas@nocafe.net for mksandbox to fully
support relative pathnames.
2019-01-25 20:08:21 +00:00
bsiegert
066e1db646 Revbump Go packages after lang/go111 update. 2019-01-24 10:00:33 +00:00
wiz
dd197d9a8f pkgin: fix some clang build errors on NetBSD-current 2019-01-15 09:49:40 +00:00
jmmv
d09daef189 Update pkg_comp to 2.1:
Changes in version 2.1
======================

**Released on 2019-01-14.**

* Issue 3: Added a new `PBULK_LOG` setting to point at a location that
  holds all build logs, and made the `build` command print out details
  about such logs on success and failure.

* Issue 4: Fixed the installable bootstrap kit generated during a build
  to not leak pkg_comp-internal paths.

* Issue 10: Fixed generation of pkg_summary so that it includes all
  packages and not only those that were explicitly given to the `auto`
  or `build` commands after a clean rebuild of the sandbox.

* PR 20: Fixed the default Git repository from jsonn's to NetBSD's as
  it has moved upstream.

* Added a new `PKG_DEVELOPER` setting to enable pkgsrc development
  from within the sandbox.
2019-01-14 10:53:37 +00:00
rillig
6d4e6832e4 pkgtools/pkglint: update to 5.6.11
Changes since 5.6.10:

* Improved the wording of several warnings

* Fixed parsing of complicated dependency patterns such as
  {ssh{,6}-[0-9]*,openssh-[0-9]*}. Pkglint still doesn't understand
  them but at least it doesn't mark them as "unknown" anymore.

* Lots of refactoring, as usual. This is the last part of the big
  refactoring, therefore future changes to pkglint are expected to be
  smaller than in the previous 3 months.
2019-01-13 19:55:52 +00:00
dholland
b315a9c4a1 termcap.h also requires the change from PR 33037. 2019-01-12 07:55:28 +00:00
jaapb
8545387f93 Added xcb-input files to pkgtools/x11-links and increased version. 2019-01-09 11:29:02 +00:00
triaxx
38fecd811a libnbcompat: fix PR pkg/33037
Thanks Stuart and sorry for the long time.
2018-12-31 11:25:08 +00:00
schmonz
10a3258c58 Subst @PKGNAME@ in previous. Ride version bump. 2018-12-28 20:28:02 +00:00
schmonz
bd924c2115 Add support for Linux sysvinit, both Debian and Red Hat styles. Improve
systemd detection. Tested on CentOS 6 (Red Hat init) and 7 (systemd),
Devuan (Debian init), and Debian 9 (systemd).

Add RCDBOOT_STYLE to BUILD_DEFS.

Bump version.
2018-12-28 20:24:02 +00:00
schmonz
8373e14a9a Add support for OpenBSD's take on rc.d. There's no boot-time dynamic
dependency ordering, so we compute the order of such rc.d scripts as are
present at install time (via a new "list" action in sbin/rc.d-boot).
Anything added or removed later is the sysadmin's job. I guess this is
what OpenBSD sysadmins expect.

While here, make "stop" run the commands in reverse order, like NetBSD
does on shutdown.

Bump version.
2018-12-26 00:43:55 +00:00
schmonz
e075b5e65a Add OpenBSD support. Mostly just works, except that we disagree on the
meaning of "rc.conf" (it's their "defaults/rc.conf", not to be edited).
If we're on OpenBSD and there's an /etc/rc.conf.local, source it.

Bump version.
2018-12-26 00:29:07 +00:00
rillig
ef8cffa82b pkgtools/pkglint: fix alternatives check
The alternatives implementation may have command line arguments.
2018-12-21 19:46:48 +00:00
rillig
31fb2a6890 pkgtools/pkglint: mention the update to 5.6.10 in Makefile
The actual update has been this morning.
2018-12-21 14:24:18 +00:00
rillig
e95dc72903 pkgtools/pkglint: update to 5.6.10
Changes since 5.6.9:

* ALTERNATIVES files are correctly checked now. Before, pkglint had
  suggested to remove the @PREFIX/ from the alternative, which was
  wrong and simply didn't work.

* Diagnostics about variable assignments are ordered to report the
  left-hand side first and then everything to the right of the
  assignment operator.

* The pkglint output is escaped properly to avoid sending unwanted
  escape sequences to the terminal.

* The items in .for loops are parsed taking "double" and 'single'
  quotes into account since bmake does it in the same way since 2015.

* In DESCR files, overly long lines are only warned about if they
  contain a space and therefore can be made shorter.

* In DESCR files, text like ${PREFIX} only gets a note if it refers
  to a commonly known pkgsrc variable. This avoids distraction when
  a package mentions ${prefix}/bin or ${template.property}.

* Lots of refactorings and small changes.
2018-12-21 08:05:24 +00:00
bsiegert
dcd9b75b1e Revbump all Go packages after go111 update. 2018-12-19 15:46:59 +00:00
schmonz
f1fa34d35d Explicitly NOT_FOR_PLATFORM where not yet supported. 2018-12-17 03:03:47 +00:00
rillig
af1b81cfcf pkgtools/pkglint: update to 5.6.9
Changes since 5.6.8:

* In addition to the pkglint binary, the whole pkglint code is installed as
  a library, so that other packages can use the code for doing their own
  checks on pkgsrc packages, Makefiles, shell programs, or the other file
  types from pkgsrc.

* BUILDLINK_*.* may be used in all files.

* Lots of refactorings
2018-12-17 00:15:39 +00:00
schmonz
e58aa8c6bc Add FreeBSD support, trivially. 2018-12-16 05:41:01 +00:00
schmonz
c98ce863f3 Support Linux with systemd. Set LICENSE (2-clause-bsd). Bump version. 2018-12-12 02:08:10 +00:00
adam
16dd5de231 revbump after updating textproc/icu 2018-12-09 18:51:58 +00:00
sevan
24dd0a77b3 Update Usage coment to include --without-xsrc 2018-12-07 12:40:39 +00:00
schmonz
5eddacc673 Add NetBSD support, trivially. 2018-12-05 19:49:26 +00:00
schmonz
cdd79c5114 Add and enable rc.d-boot. 2018-12-05 19:23:46 +00:00
schmonz
b8579bb49b Initial version of rc.d-boot, a package that runs all rc.conf-enabled
rc.d scripts at boot time as one "service" in your operating system's
normal boot process. Just Darwin so far. Please pitch in for your
preferred OS!
2018-12-05 19:23:04 +00:00
rillig
4e935973df pkgtools/pkglint: update to 5.6.8
Changes since 5.6.7:

In pkgsrc-wip, if the first line of a file contains an expanded CVS Id,
it is not an error but only a note that it should be an unexpanded CVS
Id. The autofix for this no longer inserts a new line but replaces the
existing line.

Several refactorings and small improvements to the existing diagnostics.
2018-12-02 23:12:43 +00:00
rillig
d9226828c9 pkgtools/pkglint: remove outdated files 2018-12-02 02:06:23 +00:00
rillig
1d7db786e8 pkgtools/pkglint: update to 5.6.7
Changes since 5.6.6:

User-defined variables that are not yet added to BUILD_DEFS are only
reported once per file.

Unnecessary space after variable names is only worth a note instead of
a warning. Example:

        MASTER_SITES =  https://cdn.example.org/

All variable names that are defined in the pkgsrc infrastructure are
assumed to be available to the package Makefiles. This reduces the
number of wrong "used but not defined" warnings, at the expense of

Variable names that are used in other variable names are checked
whether they are defined somewhere. Example:

        CFLAGS+=        ${CFLAGS.${PARAM}}      # PARAM is now checked

In SUBST_SED, when the pattern is s,@VAR@,${VAR}, or a slight variant
thereof, pkglint suggests to define SUBST_VARS instead, which frees the
package author from thinking about how to escape special characters and
is generally easier to read. Example:

        SUBST_SED.class=        s,@VAR@,${VAR:Q},

        SUBST_VARS.class=       VAR

Directives like .if !defined(...) are now handled the same whether or
not there is a space after before the (...).

The check for locally modified files now works independently of the
timezone.

As always, lots of refactorings have happened under the hood. Many small
bugs have been discovered and fixed accordingly.
2018-12-02 01:57:48 +00:00
rillig
5cf7cc4899 pkgtools/pkg_regress: update to 0.4
Changes since 0.3:

* when a regression test fails, the exit code of pkg_regress is 1
  instead of 0.
2018-11-30 19:07:37 +00:00
rillig
37fc828b14 pkgtools/pkg_regress: use SUBST framework for placeholders 2018-11-30 18:42:12 +00:00
wiz
e8632959d4 More macros. 2018-11-27 10:36:52 +00:00
martin
802773c4a4 Add a -d option to avoid cleaning after building from source - for debuging
purposes or to speed up builds when the full WORKOBJDIR can be blown
away later much more efficently.
Bump version. OK: abs@
2018-11-25 20:17:26 +00:00
jmcneill
3162aa74ab When failing to install due to OS version mismatch, also print how to override this check. 2018-11-21 14:15:32 +00:00
sevan
b964779078 All Minix supported platforms are ELF.
Confirmed with bsd.own.mk in Minix 3.4RC6 base.
2018-11-15 00:50:44 +00:00
kleink
f1a683c990 Revbump after cairo 1.16.0 update. 2018-11-14 22:20:58 +00:00
sevan
fab9b3d9db Minix does support shared libraries (tested on 3.4RC6). 2018-11-13 21:06:48 +00:00
ryoon
b86dfe6873 Recursive revbump from hardbuzz-2.1.1 2018-11-12 03:51:07 +00:00
rillig
896ceafaeb pkgtools/pkglint: make goyacc accessible to the build 2018-11-11 20:55:23 +00:00
rillig
ca069a9348 pkgtools/pkglint: fix build
go-package.mk needs to be included at the bottom of the package Makefile
since it defines several make targets that pkglint also defines.
2018-11-10 11:45:29 +00:00
rillig
123aacb46c pkgtools/pkglint: don't access the internet during the build
Pkglint needs goyacc, which is provided by devel/go-tools. But that
packages pulls in a lot of dependencies that are not needed for pkglint.
This includes a Perl interpreter and various cryptography packages.

Instead, during build, pkglint installs the only needed tool of that
collection (goyacc).

Since go-package.mk assumes that each pkgsrc package only downloads and
installs a single project, but pkglint now needs two of them (goyacc and
pkglint), most parts of go-package.mk had to be copied here and
implemented directly.
2018-11-10 11:41:40 +00:00
rillig
709e705010 pkgtools/pkglint: fix build when PKGSRC_RUN_TEST is not set 2018-11-08 19:41:32 +00:00
rillig
90b9c2e198 pkgtools/pkglint: remove unnecessary files 2018-11-07 21:04:53 +00:00
rillig
6c78147abf pkgtools/pkglint: update to 5.6.6
Changes since 5.6.5:

- Removed plist-clash since it had crashed unconditionally whenever it
  was called. This means that in the last 3 years, nobody can have
  used it in the originally intended way.

- Fixed interactions between the --source, --explain, --show-autofix,
  --autofix and --only options.

- Fixed "defined but not used" and "used but not defined" for variables
  from the pkgsrc infrastructure.

- Lots of small fixes and improvements found by the large pkglint code
  review (12% done).
2018-11-07 20:58:22 +00:00
schmonz
98cc9b28c3 Fix build on Tribblix without introducing warnings on NetBSD. From
riastradh@ ("commit!") with help from maya@.
2018-11-07 00:39:07 +00:00
bsiegert
ac232c7df5 Revbump all Go packages after go111 update. 2018-11-04 18:37:54 +00:00
abs
5881379402 Adjust CC_VERSION check from gcc-8* to gcc-[89]* 2018-10-29 14:41:56 +00:00