summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2019-03-24pkgtools/pkglint: update to 5.7.3rillig40-2457/+3805
Changes since 5.7.2: PLIST files are checked for non-ASCII characters. Even though pkgsrc sets up the environment with LC_ALL=C, there are still some cases of encoding errors. The case discussed on the tech-pkg mailing list was lang/go112. The checks for variable permissions ("may not be set in this file") have been reworked completely. Many of the variable permissions had different rules for Makefile and Makefile.common. These different rules tried to prevent accidental overwriting of variables. Starting in July 2018, pkglint got a check for redundant variables that is far more accurate than the previous variable permissions. Therefore these fine-grained permissions are no longer necessary. This removes a few hundred wrong warnings about insufficient permissions. The check that adds missing SHA512 hashes to distinfo files has been fixed to work correctly in DIST_SUBDIR cases. Improved the checks regarding tools that are used by a package but not added to USE_TOOLS. For example, the "make" tool is always available, as are all tools that are added to TOOLS_CREATE. Lots of small improvements, as always.
2019-03-23pkgtools/pkg_rolling-replace: 0.24.5gdt2-4/+5
In addition to adding in BUILD_DEPENDS, catch up to long-ago improvements to pkgsrc and also add in TOOL_DEPENDS. Thanks to Hauke Fath for reporting the issue.
2019-03-20x11-links: remove another Xprint stragglerwiz1-2/+1
Found by oster@
2019-03-16Revbump all Go packages after Go 1.12.1 update.bsiegert1-1/+2
2019-03-12pbulk-base: fix double free().wiz2-6/+12
Debugged by dillo & myself. Bump version.
2019-03-10pkgtools/pkglint: update to 5.7.2rillig47-1328/+5707
Changes since 5.7.1: * Fixed detection of GNU_CONFIGURE=yes combined with USE_LANGUAGES missing c. This combination tends to fail in the configure phase. * When the distinfo doesn't contain all hashes for the downloaded distfiles (typically SHA512 is missing) and the distfiles are actually downloaded to ${PKGSRCDIR}/distfiles, pkglint can now add the missing hashes. It only does this if there is at least one existing hash and if all existing hashes are correct. * The check for redundant variables has been improved considerably. Before there were several situations in which pkglint didn't get the redundant variable definitions right because its internal model only mimicked reality. The model has been improved and so have the diagnostics. * Pkglint only warns about wrong permissions (for defining or using a variable) when it knows the type of the variable and the permissions for the current file. Before, it had also warned if the permissions for the current file were not explicitly defined. * CFLAGS and LDFLAGS may be appended in buildlink3.mk files. This had been disallowed before, for no apparent reason. There are several places in pkgsrc where especially CFLAGS.${OPSYS} is appended to. * Cleaned up internal handling of relative paths. Previously pkglint sometimes resolved relative paths using the wrong base directory, which led to all kinds of wrong warnings and strange behavior. * Fixed lots of edge cases when parsing Makefile lines. These cases don't occur often but experience tells that the most fundamental code must be as correct as possible (see the handling of relative paths above). * Lots of refactoring and housekeeping, as always.
2019-03-09all: revbump Go packages, now that they use go112 to buildbsiegert1-1/+2
2019-03-07pkgin: Update to 0.11.7.jperkin5-54/+8
## Version 0.11.7 (2019-03-07) * Switch back to NetBSDfr/pkgin as the upstream repository. * Improve database safety. * Fix clang -Wmissing-noreturn and -Wformat-nonliteral warnings. * Fix some typos in the manual page.
2019-03-05x11-links 1.15: update for not-yet-committed netbsd mesa update.maya3-28/+36
while here, sort files. pointed out by jakllsch, thanks!
2019-03-01Add lib versions, thanks leot@youri1-1/+3
2019-03-01Remove entries that are appropriately in xorg.libxcb.youri1-7/+1
2019-03-01Add xcb-present files and update.youri2-3/+12
2019-02-21pkgtools/pkglint: update to 5.7.1rillig18-35/+34
Changes since 5.7.0: * Removed a line of code that was meant only for development, not for production use, from util.go.
2019-02-21pkgtools/pkglint: update to 5.7.0rillig53-667/+2132
Changes since 5.6.12: * Many of the -C and -W command line options have been removed since they are not used in practice. The -Wall and -Call options continue to work though; these are the only options mentioned in the pkgsrc guide. * When a PLIST file contains redundant libtool libraries (.la and the corresponding .so), there is only a single warning per file. * Warnings about the package COMMENT are now strictly ordered from left to right. * The hashes for all distfiles must now contain the SHA512 hash. This hash has been added to many distfiles in 2015. It's time now to enforce it on all other distfiles as well. * Makefile fragments that are included inside an .elif exists(...) are not reported as missing. * The check for redundant variables and accidentally overwritten variables has been improved. Now the warning occurs at the later definition. This especially applies to cases where a file is included and after that, some of its variables are overridden. Variables in unrelated files are no longer marked as redundant. * When a package contains multiple definitions of a single variable (typical for Makefile.common), the later definition overrides the earlier definition. That way, the location of DISTINFO_FILE and PATCHDIR is resolved correctly.
2019-02-20PR/52982: Eitan Adler: fix incorrect bounds computation.christos1-4/+5
XXX: really we need to sync with the libc glob.c
2019-02-10Revert previous for now.wiz1-2/+1
2019-02-06mk: allow Affero GPL by defaultwiz1-1/+2
This follows a recent TNF board decision.
2019-02-02texlive2pkg: update to 1.4markd2-4/+5
more license mappings
2019-01-27Update digest package to version 20190127agc3-16/+16
Remove some gcc-isms in a macro in keccak.c, provided by Erno Palonheimo in PR pkg/53771
2019-01-26Remove pointless/vacuous logic clause.dholland1-4/+2
2019-01-26Use BROKEN_ON_PLATFORM for unsupported things meant to be fixed eventually.dholland1-2/+2
2019-01-26pkgtools/pkglint: update to 5.6.12rillig60-1062/+1783
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-25Update mksandbox to version 1.8agc2-3/+4
Fix in PR pkg/53896 from silas@nocafe.net for mksandbox to fully support relative pathnames.
2019-01-24Revbump Go packages after lang/go111 update.bsiegert1-1/+2
2019-01-15pkgin: fix some clang build errors on NetBSD-currentwiz4-1/+46
2019-01-14Update pkg_comp to 2.1:jmmv3-16/+15
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-13pkgtools/pkglint: update to 5.6.11rillig62-1898/+2867
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-12termcap.h also requires the change from PR 33037.dholland1-1/+6
2019-01-09Added xcb-input files to pkgtools/x11-links and increased version.jaapb3-5/+12
2018-12-31libnbcompat: fix PR pkg/33037triaxx1-4/+10
Thanks Stuart and sorry for the long time.
2018-12-28Subst @PKGNAME@ in previous. Ride version bump.schmonz1-2/+2
2018-12-28Add support for Linux sysvinit, both Debian and Red Hat styles. Improveschmonz5-14/+85
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-26Add support for OpenBSD's take on rc.d. There's no boot-time dynamicschmonz4-14/+60
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-26Add OpenBSD support. Mostly just works, except that we disagree on theschmonz2-5/+7
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-21pkgtools/pkglint: fix alternatives checkrillig3-7/+8
The alternatives implementation may have command line arguments.
2018-12-21pkgtools/pkglint: mention the update to 5.6.10 in Makefilerillig1-3/+2
The actual update has been this morning.
2018-12-21pkgtools/pkglint: update to 5.6.10rillig48-601/+694
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-19Revbump all Go packages after go111 update.bsiegert1-1/+2
2018-12-17Explicitly NOT_FOR_PLATFORM where not yet supported.schmonz1-1/+3
2018-12-17pkgtools/pkglint: update to 5.6.9rillig88-1252/+2409
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-16Add FreeBSD support, trivially.schmonz3-10/+24
2018-12-12Support Linux with systemd. Set LICENSE (2-clause-bsd). Bump version.schmonz5-14/+75
2018-12-09revbump after updating textproc/icuadam4-7/+8
2018-12-07Update Usage coment to include --without-xsrcsevan1-3/+3
2018-12-05Add NetBSD support, trivially.schmonz3-6/+25
2018-12-05Add and enable rc.d-boot.schmonz1-1/+2
2018-12-05Initial version of rc.d-boot, a package that runs all rc.conf-enabledschmonz6-0/+104
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-02pkgtools/pkglint: update to 5.6.8rillig24-302/+564
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-02pkgtools/pkglint: remove outdated filesrillig2-149/+0
2018-12-02pkgtools/pkglint: update to 5.6.7rillig77-3108/+5740
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.