Commit graph

5077 commits

Author SHA1 Message Date
rillig
31a3a6b80c pkglint: Update to 5.5.1
Changes since 5.5:

* Allow filtering log messages by keyword (--only)
* In --autofix and --show-autofix mode, show only fixable diagnostics
* When called with --source, show the source below the diagnostics
* Don't warn about USE_LANGUAGES in ../../mk/compiler.mk
* Fix autofix for .gz in PLIST
2018-01-13 23:56:14 +00:00
jperkin
d14efc79ff R2pkg: Add missing RCSID. 2018-01-13 09:10:33 +00:00
rillig
5e7481dcd2 pkglint: Update to 5.5
Changes since 5.4.26:

SUBST blocks are now checked correctly even if they contain conditionals
like .if ... .elif ... .endif.

AUTO_MKDIRS is only suggested for those directories that actually appear
in the PLIST since other directories are not affected by this variable.
2018-01-10 00:39:52 +00:00
rillig
902c8a49a5 Updated pkglint to 5.4.26.
Changes since 5.4.25:

* When autofixing a patch, fix the corresponding distinfo file as well.

* Properly parse ${VARNAME:[\#]};
  the # was interpreted as a comment before.

* Don't add unnecessary :Q to PKG_OPTIONS and related variables.

* Don't warn about missing manual pages. While Debian and other
  distributions do this work, pkgsrc keeps the packages as original as
  possible.

* Autofix redundant ".gz" for manual pages in PLISTs.
2018-01-07 17:08:15 +00:00
rillig
17e39f419d Fix indentation in buildlink3.mk files.
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was
reviewed manually.

There are some .include lines that still are indented with zero spaces
although the surrounding .if is indented. This is existing practice.
2018-01-07 13:03:53 +00:00
rillig
5438820cf3 Update url2pkg-2.29: Fix generation of Perl packages.
The WriteMakefile subroutine was not exported properly.
2018-01-07 11:20:18 +00:00
rillig
f726ad139c Updated pkglint to 5.4.25.
Changes since 5.4.24:

* More specific warning for "exitcode with pipe shell commands"
* Don't warn that the echo in "echo | sed" could fail
* Allow packages to define custom make targets
* Don't warn about a misplaced LICENSE when a package doesn't define it
* Skip .git directories
* Reduce number of hicolor-icon-theme error messages in PLIST files
* Remove MKCRYPTO, USE_CRYPTO, CRYPTO variable definitions
2018-01-07 01:13:21 +00:00
maya
6e5f1de0c2 pkglint 5.4.24: remove references to crypto restrictions.
Discussed with rillig.
2018-01-02 08:13:15 +00:00
rillig
b381c6e2f3 Sort PLIST files.
Unsorted entries in PLIST files have generated a pkglint warning for at
least 12 years. Somewhat more recently, pkglint has learned to sort
PLIST files automatically. Since pkglint 5.4.23, the sorting is only
done in obvious, simple cases. These have been applied by running:

  pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2018-01-01 22:29:15 +00:00
rillig
e93a88ba30 Updated pkglint to 5.4.23.
Changes since 5.4.22:
Only autofix PLIST sorting in simple cases. Before this version, pkglint
sorted the PLIST even when it contained unresolved variable references like
${IMAKE_MAN_DIR}, which resulted in strange and unintuitive orders. These
complicated files are left for human inspection.
2018-01-01 21:55:36 +00:00
rillig
e012ab11fa Updated pkglint to 5.4.22.
Changes since 5.4.21:
* Refactoring: moved packages line and linechecks back into main
* Fixed panic when autofixing package Makefiles
* Removed apache22
* Added a bit of inline documentation
2018-01-01 18:04:15 +00:00
wiz
67ea766c4c apache22: remove, it was eol'd in June 2017
Remove packages that only work with apache22.
Remove apache22 references.
2018-01-01 10:23:04 +00:00
maya
db62d15871 pkg_select: fix buffer overflow
expanding the macro with ++len for size meant our memset to zero was
one bigger than the above allocated size.

while here simplify the problematic macro - malloc+memset zero is calloc.

bump pkgrevision
2017-12-29 17:55:13 +00:00
plunky
6c5789b15b fix crashes due to SSP being enabled 2017-12-29 11:59:13 +00:00
adam
e556320744 Fix for wrong interpreter 2017-12-15 10:54:59 +00:00
leot
fa5ee20e7a lintpkgsrc: Update pkgtools/lintpkgsrc to 4.94
pkgsrc changes:
 - Use SUBST_VARS instead of SUBST_SED to adjust the several variables in
   files/lintpkgsrc.pl and avoid some make contortionism in the remaining
   SUBST_SED

Changes:
 - PKG_SYSCONFDIR can be different to ${PREFIX}/etc, instruct lintpkgsrc
   about that to possibly pick mk.conf when an /etc/mk.conf file is not
   available

Discussed on pkgsrc-changes@ with <adam> and <jperkin>.
Thanks to both <adam> and <jperkin> for feedback, suggestions and review!
2017-12-15 09:17:04 +00:00
adam
81ff27f0e0 lintpkgsrc: updated to 4.93
4.93:
Allow alternative location of mk.conf: if /etc/mk.conf does not exist, try PREFIX/etc/mk.conf.
2017-12-14 14:11:40 +00:00
jmmv
96e67ea1f2 Fix typo in reference to pkgbuild-user.
Problem found by Ian D. Leroux and reported via private email... a few
months ago.  My bad.
2017-12-09 20:55:48 +00:00
adam
8977d31a36 Revbump after textproc/icu update 2017-11-30 16:45:00 +00:00
khorben
5338e497d9 Bump cwrappers after reverting the last patch 2017-11-08 04:04:42 +00:00
joerg
6e1d9540d8 Revert: Tokenize the contents of "append_executable"
It's unnecessary and violates the design principles of the
configuration.
2017-11-07 22:26:38 +00:00
khorben
9e7295805a Bump revision to reflect the fixes for PKGSRC_MKPIE 2017-11-07 16:51:44 +00:00
khorben
32f6f2ea74 Tokenize the contents of "append_executable"
This configuration parameter is used when linking executables, through
cc(1) or ld(1) for instance.

This allows passing multiple arguments via the "append_executable"
option, like "-fPIC -pie" for instance.

Committing this before joerg@'s approval since a call for testing
PKGSRC_MKPIE has just been issued, and this helps with some packages.
2017-11-07 16:50:52 +00:00
khorben
ee812ef964 Teach the wrapper for ld(1) about more cases
Building relocatable and omagic files are now recognized. They were
previously recognized as executables, which may require a different
behaviour in some environments (like when enforcing PIE).

Committing this before joerg@'s approval since a call for testing
PKGSRC_MKPIE has just been issued, and this helps with some packages.
2017-11-07 16:49:22 +00:00
jperkin
0a2e49d194 pkg_install: Bump version to 20171030 for netpgpverify fixes. 2017-10-30 12:03:50 +00:00
khorben
320e058829 Set the correct operation mode in the wrapper for as(1)
This notably fixes building lang/g95 with PKGSRC_MKPIE=yes.

Reviewed by joerg@
2017-10-27 20:59:59 +00:00
maya
7bada3c053 pkg_install: Fix OpenSSL 1.1.0 build
OpenSSL 1.1.0 makes xkusage and ex_flags opaque.

Use X509_check_ca rather than a custom and nearly identical implementation.
This is available since OpenSSL 0.9.8 (even in RHEL5).

This is also done because we cannot implement it identically under
OpenSSL 1.1.0 due to missing getters.

Test EXFLAG_XKUSAGE rather than zero xkusage test no usage to avoid openssl
1.1.0 getter returning a different code on this case.

Use getter for xkusage in the non-zero test case.

Provide fallback definitions for getters.

PR pkg/52298, PR pkg/52648
2017-10-24 15:54:31 +00:00
jlam
317e8a18a7 rc.subr: Fix SERVERS rc.d script to not REQUIRE mountcritremote.
The distributed rc.d scripts are "barrier" scripts that are used
by other rc.d scripts to hook into different points of the startup
process by either using REQUIRE or BEFORE.  The barrier scripts
should not depend on other, non-barrier scripts.  This change makes
the distributed scripts usable by a simple "rcorder /etc/rc.d/*",
whereas it was failing before due to lack of "mountcritremote".

Bump the package version to 20171024.
2017-10-24 14:07:59 +00:00
ryoon
c0c6815977 Some files are moved. Fix build 2017-10-17 03:32:28 +00:00
rillig
54c14efe1e Updated pkglint4 to 4.164
Removed support for kde3, since it has been removed from pkgsrc.
2017-10-08 23:25:06 +00:00
rillig
ccb81e9920 Updated pkglint to 5.4.21
Changes since 5.4.20:

* Removed obsolete kde3 check
* Removed obsolete WindowMaker variables
* Removed postgresql91
* Removed teTeX
* Removed old Emacs versions 22, 23, 24
* Allow db6
* Allow c++11 in USE_LANGUAGES
* New check for GNOME icon themes
* Added CHECK_RELRO variables
* Refactoring: new package linechecks
* Refactoring: regex.Pattern
2017-10-08 22:31:13 +00:00
wiz
6b593e536e pkglint*: Start sentence with a capital letter
From Thomas Orgis in private mail.
2017-10-02 14:41:21 +00:00
adam
0439033294 plist-utils: update to 20170813
20170813:
Deal with ${PYSITELIB}.
2017-09-30 13:23:05 +00:00
wiz
eef80df883 emacs22*, emacs23*, emacs24*: remove unmaintained emacs versions
As announced in
https://mail-index.netbsd.org/pkgsrc-users/2017/09/11/msg025563.html

This still leaves emacs20, emacs21, and the current version, emacs25.
2017-09-29 12:40:26 +00:00
maya
33ebf687dc revbump for requiring ICU 59.x 2017-09-18 09:52:56 +00:00
joerg
bf54d0508c Ensure that correct path names are picked up for patches. 2017-09-10 14:12:11 +00:00
wiz
8fdd6b5556 Update HOMEPAGE. 2017-09-08 06:29:40 +00:00
wiz
44faa0cdcd Remove teTeX* packages and references to them.
teTeX was desupported in 2006, and we have texlive in pkgsrc since 2009.
2017-09-06 16:49:21 +00:00
tron
fcdbafc51a Update "x11-links" package to version 1.06:
Add macOS "ibxcb-xkb" shared libraries filenames to fix the build of (at
least) the "libxkbcommon" package
2017-09-02 19:17:37 +00:00
jlam
ed78f0a137 pkgtools/pkg_comp: Correct usage of ${PKG_SYSCONFDIR}.
Package configuration files should be found in ${PKG_SYSCONFDIR},
which can be modified by a user-settable variable.  Look for the
default sandboxctl(8) configuration files in
${PKG_SYSCONFDIR.sandboxctl} if that variable is set, or else in
${PKG_SYSCONFBASE}/sandboxctl.

Fixes problem noted by Iain Hibbert on tech-pkg@.

Bump the PKGREVISION to 2 due to changes in the binary package if
PKG_SYSCONFDIR.pkg_comp is set to a non-default value.
2017-09-02 16:18:56 +00:00
jlam
82e37249af Update pkgtools/pkgtasks to 1.15.
Fix bug where "ocaml_findlib" and "shells" tasks were not
preserving the ownership and permissions of existing system files,
e.g., /etc/shells, when updating their contents.
2017-08-23 17:53:19 +00:00
jlam
c5ae74d56d Update pkgtools/pkgtasks to 1.14.
Use TASK_VERBOSE environment variable to select which tasks should
emit output when invoked.
2017-08-19 00:30:07 +00:00
jlam
ee9212244c pkgtools/pkg: Install manpages into ${PKGMANDIR}.
Pass "mandir=..." when running "make install" to pass the correct
location for installed manpages under ${PKGMANDIR}.
2017-08-19 00:24:13 +00:00
jlam
6fcb2ed197 pkgtools/libkver: Install manpages into ${PKGMANDIR}.
This project uses BSD makefiles to build and install the binaries
and manpages.  Add "MANDIR=..." to the flags passed to
"make install" so that the manpages are installed in the correct
location under ${PKGMANDIR}.
2017-08-19 00:22:00 +00:00
jlam
e0d5dbb85b Update pkgtools/pkgtasks to version 1.13.
* Add a "icon_themes" task to cache GTK+ icon theme directories.
* Change the way that install-info(1) is invoked.
* Clarify the output from the "groups" and "users" tasks.
* Bug fixes.
2017-08-10 05:38:30 +00:00
maya
39b6e54aaa Remove -Werror from bootstrap path. It makes the cwrappers build
fail unnecessarily on some edge cases such as older glibc.

PR pkg/52390: current fails to bootstrap on CentOS 6

ok pkgsrc-pmc@
2017-08-02 09:38:06 +00:00
cheusov
17f94dcfca #include config.h only if HAVE_CONFIG_H is defined 2017-07-29 14:15:57 +00:00
tnn
c1cabe0f9e Consolidate openssl handling to options.mk. In particular, do not
pass --with-ssl to configure when the option is actually disabled.
2017-07-27 18:54:44 +00:00
wiz
ea89f938a8 c++11 is valid for USE_LANGUAGES.
Bump PKGREVISION.
2017-07-27 11:21:25 +00:00
wiz
0fd193c72e Sprinkle CHECK_RELRO_SKIP on go packages.
go14 has no relro support AFAICT.

go-1.8.3 has if you use -buildmode=pie, but it claims it's not supported
on Linux.

Disable relro checking for go packages until bsiegert has time to
look at this.
2017-07-22 19:32:40 +00:00