]> eyrie.org Git - kerberos/remctl.git/log
kerberos/remctl.git
2 years agoIgnore ignored attributes for Ruby main release/3.18
Russ Allbery [Mon, 9 May 2022 03:47:57 +0000 (20:47 -0700)]
Ignore ignored attributes for Ruby

Ruby 2.7.0 has attributes that are ignored because they're
misplaced in code included by headers.  Ignore those warnings since
we can't fix them.

2 years agoIgnore unknown attribute warnings for Ruby
Russ Allbery [Mon, 9 May 2022 03:13:06 +0000 (20:13 -0700)]
Ignore unknown attribute warnings for Ruby

Ruby 2.7.0 uses an __error__ attribute that isn't understood by
Clang.  Suppress that error.

2 years agoFix Ruby test to work with Minitest
Russ Allbery [Mon, 9 May 2022 01:36:17 +0000 (18:36 -0700)]
Fix Ruby test to work with Minitest

Switching the Ruby test to Minitest caused it to stop running.
Set it to autorun, and then change assert_raise to assert_raises.

Replace File.exists? with File.exist? to get rid of deprecation
warnings.

2 years agoReorder includes in Ruby extension
Russ Allbery [Mon, 9 May 2022 01:34:25 +0000 (18:34 -0700)]
Reorder includes in Ruby extension

Include Ruby's config.h before ours because Ruby unconditionally
defines a bunch of special C macros that can't subsequently be
undefined or redefined.  Autoconf's generated config.h handles
this properly, so we can put it second.

2 years agoSuppress more Ruby warnings
Russ Allbery [Mon, 9 May 2022 01:33:43 +0000 (18:33 -0700)]
Suppress more Ruby warnings

Ruby 3.0 uses declarations after statements in inlined code, so
we have to suppress that GCC warning.

2 years agoIgnore additional PHP generated file
Russ Allbery [Mon, 9 May 2022 01:33:23 +0000 (18:33 -0700)]
Ignore additional PHP generated file

2 years agoImprove remctld example discussion of how to start
Russ Allbery [Sun, 8 May 2022 22:09:48 +0000 (15:09 -0700)]
Improve remctld example discussion of how to start

The default example was using some obsolete tcpserver command.
Reorganize and update it to reference systemd, inetd, and
stand-alone mode explicitly.

Fix the copyright statement.

2 years agoDocument signals supported by remctld
Russ Allbery [Sun, 8 May 2022 22:04:32 +0000 (15:04 -0700)]
Document signals supported by remctld

Document sending SIGHUP to remctld when running in stand-alone mode to
ask it to re-read its configuration file, and document that SIGTERM
will cause it to exit.  (Fixes #30)

2 years agoWork around cppcheck diagnostic of kerberos_free
Russ Allbery [Sun, 8 May 2022 20:39:32 +0000 (13:39 -0700)]
Work around cppcheck diagnostic of kerberos_free

cppcheck thinks its argument can be const, which while technically
true would be weird since it invalidates its argument.  Free the
passed argument instead of the static variable to avoid this
diagnostic.

2 years agoDeclare fake_set_passwd argument const
Russ Allbery [Sun, 8 May 2022 20:39:10 +0000 (13:39 -0700)]
Declare fake_set_passwd argument const

The function makes a copy of its argument, so the argument can be
const.  Detected by cppcheck.

2 years agoRelease 3.18
Russ Allbery [Sun, 8 May 2022 20:18:15 +0000 (13:18 -0700)]
Release 3.18

2 years agoAdd include for tap/basic.h annotation
Russ Allbery [Sun, 8 May 2022 19:39:52 +0000 (12:39 -0700)]
Add include for tap/basic.h annotation

Now that the allocation functions in tap/basic.h are tagged with
deallocation functions, stdlib.h has to be included to get the
prototype for free.

2 years agoClarify that (*UTF) is a PCRE2 feature
Russ Allbery [Mon, 2 May 2022 05:50:01 +0000 (22:50 -0700)]
Clarify that (*UTF) is a PCRE2 feature

2 years agoMark malloc functions with their deallocators
Russ Allbery [Mon, 2 May 2022 05:07:00 +0000 (22:07 -0700)]
Mark malloc functions with their deallocators

GCC 11 allows marking functions with their deallocation function
when using the __malloc__ attribute.  Add those annotations to the
public and internal interfaces, with portability code to hide the
argument on older compilers.

2 years agoRequire Perl 5.10 for the Perl libraries
Russ Allbery [Mon, 2 May 2022 02:15:19 +0000 (19:15 -0700)]
Require Perl 5.10 for the Perl libraries

Matching the NEWS documentation, require Perl 5.10 for all the
Perl libraries and test programs and update the overall
documentation accordingly.

2 years agoUpdate DocKnot configuration
Russ Allbery [Mon, 2 May 2022 01:49:06 +0000 (18:49 -0700)]
Update DocKnot configuration

Update the DocKnot configuration for the latest DocKnot.  Document
that PCRE2 is now supported.  Mention the Ruby bindings in another
place where all the bindings were listed.  Update the description
to refer to more recent RPC systems that people will be more
familiar with.

2 years agoFix warning in server/acl-t test
Russ Allbery [Mon, 2 May 2022 00:59:39 +0000 (17:59 -0700)]
Fix warning in server/acl-t test

Guard a possibly unused variable with the appropriate preprocessor
conditional.

2 years agoAdd POD spelling stopwords for PCRE1, PCRE2
Russ Allbery [Mon, 2 May 2022 00:48:42 +0000 (17:48 -0700)]
Add POD spelling stopwords for PCRE1, PCRE2

2 years agoDocument that regexes are not anchored
Russ Allbery [Mon, 2 May 2022 00:22:55 +0000 (17:22 -0700)]
Document that regexes are not anchored

Document that pcre and regex ACL expressions are not automatically
anchored at the start and end of the principal name, so they should be
explicitly anchored in the configuration unless one intends to allow
partial matches.

2 years agoAdd NEWS entries for Python and Ruby bindings fixes
Russ Allbery [Mon, 2 May 2022 00:19:06 +0000 (17:19 -0700)]
Add NEWS entries for Python and Ruby bindings fixes

2 years agoAdd support for PCRE2
Russ Allbery [Mon, 2 May 2022 00:17:22 +0000 (17:17 -0700)]
Add support for PCRE2

Add support for PCRE2 for pcre ACLs and use it by preference over
PCRE1 if it is found.  UTF-8 regular expressions are not enabled by
default, but can be enabled by adding (*UTF) to the beginning of the
regular expression.

2 years agoIgnore mypy caches for SPDX license checks
Russ Allbery [Sun, 1 May 2022 23:42:13 +0000 (16:42 -0700)]
Ignore mypy caches for SPDX license checks

2 years agoApply formatting change from Clang 13
Russ Allbery [Sun, 1 May 2022 23:41:59 +0000 (16:41 -0700)]
Apply formatting change from Clang 13

2 years agoMerge pull request #31 from ktdreyer/ruby-minitest
Russ Allbery [Sun, 1 May 2022 22:33:28 +0000 (15:33 -0700)]
Merge pull request #31 from ktdreyer/ruby-minitest

Use minitest for Ruby tests

2 years agoMerge pull request #32 from ktdreyer/rm-pytest-runner
Russ Allbery [Sun, 1 May 2022 22:31:52 +0000 (15:31 -0700)]
Merge pull request #32 from ktdreyer/rm-pytest-runner

Remove more references to pytest-runner

2 years agoFix Python 2 mypy testing
Russ Allbery [Sun, 1 May 2022 22:18:34 +0000 (15:18 -0700)]
Fix Python 2 mypy testing

This will probably be dropped soon, but for now fix mypy testing
of the Python module with Python 2, which requires an additional
dependency.  This should fix a CI failure.

2 years agoUpdate Perl module versions
Russ Allbery [Sun, 17 Apr 2022 02:46:53 +0000 (19:46 -0700)]
Update Perl module versions

2 years agoIgnore PHP *.dep files for SPDX license checks
Russ Allbery [Sun, 17 Apr 2022 02:46:01 +0000 (19:46 -0700)]
Ignore PHP *.dep files for SPDX license checks

phpize or the PHP build system now creates a new *.dep file, which
we need to ignore when checking for SPDX license declarations.

2 years agoReformat with clang-format
Russ Allbery [Sun, 17 Apr 2022 02:16:55 +0000 (19:16 -0700)]
Reformat with clang-format

Pick up the changes from the new .clang-format file from
rra-c-util.  Reorder some things in util/protocol.h so that
clang-format won't try to indent the value of the header guard
macro.

2 years agoInstall Perl::Critic::Community for CI
Russ Allbery [Sun, 17 Apr 2022 02:08:43 +0000 (19:08 -0700)]
Install Perl::Critic::Community for CI

Perl style checks should pass correctly with this module installed,
adding some additional checks.

2 years agoUpdate GitHub Actions dependencies
Russ Allbery [Sun, 17 Apr 2022 02:07:57 +0000 (19:07 -0700)]
Update GitHub Actions dependencies

Update to the latest versions, and use the major version dependency
for install-with-cpanm.

2 years agoRun CI on merge requests to main
Russ Allbery [Sun, 17 Apr 2022 02:07:31 +0000 (19:07 -0700)]
Run CI on merge requests to main

The default branch has been renamed from master to main.

2 years agoUpdate to rra-c-util 10.2
Russ Allbery [Sun, 17 Apr 2022 02:05:55 +0000 (19:05 -0700)]
Update to rra-c-util 10.2

The Perl libraries and the remctl test suite now require Perl 5.10 or
later.

* Fix IN6_ARE_ADDR_EQUAL Autoconf probe on macOS.
* Fix compiler flag probes with Clang.
* Check that Kerberos headers can be included.
* Fix util/fdflag test on Solaris 11 and OpenBSD.
* Suppress some additional warnings in GCC 10.

There are also lots of formatting changes from the updates to
clang-format and the Perl formatting rules, and various updates
to comments and other non-user-visible changes.

2 years agoUpdate for Autoconf 2.71
Russ Allbery [Sun, 17 Apr 2022 01:38:12 +0000 (18:38 -0700)]
Update for Autoconf 2.71

Replace some obsolete macros with their new names.  Add configure~
to .gitignore, since Autoconf now generates it.  Drop AC_PROG_INSTALL
which no longer seems to be needed (remctl never calls install
directly).

2 years agoUpdate metadata of protocol documentation
Russ Allbery [Sun, 17 Apr 2022 01:31:17 +0000 (18:31 -0700)]
Update metadata of protocol documentation

Update my current employer, remove a now-unnecessary DOCTYPE
setting that current xml2rfc complains about, and add the
now-recommended submissionType attribute.

2 years agoUse the new call syntax for xml2rfc
Russ Allbery [Sun, 17 Apr 2022 01:20:42 +0000 (18:20 -0700)]
Use the new call syntax for xml2rfc

The current version of xml2rfc has changed its command-line
interface and now doesn't want one to specify the output file.

2 years agoRemove more references to pytest-runner
Ken Dreyer [Mon, 19 Jul 2021 14:44:59 +0000 (10:44 -0400)]
Remove more references to pytest-runner

2 years agoUse minitest for Ruby tests
Ken Dreyer [Mon, 19 Jul 2021 14:44:54 +0000 (10:44 -0400)]
Use minitest for Ruby tests

Ruby 1.9+ uses Minitest as the backend for Test::Unit. This shim has
lost some backwards compatibility over time and it no longer works on
Fedora 35. Update the test suite to use minitest directly.

3 years agoSuppress another Ruby warning
Russ Allbery [Sat, 13 Mar 2021 22:05:16 +0000 (14:05 -0800)]
Suppress another Ruby warning

gnu-zero-variadic-macro-arguments is a new Clang warning that
triggers for Ruby code.

3 years agoSuppress another warning building Perl code
Russ Allbery [Sat, 13 Mar 2021 21:46:33 +0000 (13:46 -0800)]
Suppress another warning building Perl code

Disable implicit-fallthrough warnigns in Clang when building Perl
code, since in at least Perl 5.30 there is inline hash code that
uses this pattern.  It has the magic comments, but the latest Clang
has stopped supporting those.

3 years agoFix another Python module version
Russ Allbery [Sat, 13 Mar 2021 20:56:54 +0000 (12:56 -0800)]
Fix another Python module version

I apparently put this in two different places.

3 years agoFix version of Python module
Russ Allbery [Sat, 13 Mar 2021 20:55:13 +0000 (12:55 -0800)]
Fix version of Python module

Incorrectly wasn't bumped in the 3.17 release.

3 years agoUpdate cppcheck suppressions from rra-c-util
Russ Allbery [Mon, 14 Dec 2020 04:11:03 +0000 (20:11 -0800)]
Update cppcheck suppressions from rra-c-util

The new files don't apply to remctl, but stay in sync.

3 years agoAdd valgrind suppression for Heimdal
Russ Allbery [Mon, 14 Dec 2020 03:52:05 +0000 (19:52 -0800)]
Add valgrind suppression for Heimdal

Heimdal's gss_acquire_cred leads to a path that stores some
allocated memory in a library variable that intentionally isn't
freed.  Add a hopefully-specific-enough pattern to supress that.

3 years agoUse -isystem more uniformly for warnings builds
Russ Allbery [Mon, 14 Dec 2020 02:32:59 +0000 (18:32 -0800)]
Use -isystem more uniformly for warnings builds

-isystem instead of -I was used to include Kerberos headers for
the libutil build, but not for the client library and some of the
tests that also used Kerberos.  Use it more uniformly by adding
KRB5_CPPFLAGS to more compilation rules.

Rename KRB5_CPPFLAGS_GCC to KRB5_CPPFLAGS_WARNINGS since that's
how it's used and sincd Clang also supports -isystem.

3 years agoOverhaul GitHub Actions testing
Russ Allbery [Mon, 14 Dec 2020 02:12:33 +0000 (18:12 -0800)]
Overhaul GitHub Actions testing

Use local::lib and cache Perl modules to speed up installation
time when repeatedly testing.  Disable testing of the Perl modules,
which should speed up installation considerably.  Move the list of
apt packages to install to a separate file for easier maintenance.

Fix the list of test dependencies, which was missing some of the
modules that the Perl binding test suite does use.

3 years agoFix copyright dates in generated documentation release/3.17
Russ Allbery [Sun, 13 Dec 2020 23:42:14 +0000 (15:42 -0800)]
Fix copyright dates in generated documentation

3 years agoBump version in remctl.spec
Russ Allbery [Sun, 13 Dec 2020 23:06:01 +0000 (15:06 -0800)]
Bump version in remctl.spec

3 years agoFix some erroneous copyright dates
Russ Allbery [Sun, 13 Dec 2020 23:04:55 +0000 (15:04 -0800)]
Fix some erroneous copyright dates

Some files accidentally attributed copyright to Stanford instead
of to me.  Also collapse one copyright range I missed.

3 years agoRelease 3.17
Russ Allbery [Sun, 13 Dec 2020 21:50:04 +0000 (13:50 -0800)]
Release 3.17

3 years agoAdd more rra-c-util 8.4 updates
Russ Allbery [Sun, 13 Dec 2020 21:36:59 +0000 (13:36 -0800)]
Add more rra-c-util 8.4 updates

* Fix reallocarray prototyping on NetBSD.
* Fix getnameinfo tests on musl-based Linux distributions.

3 years agoImprove the Python module build system
Russ Allbery [Sun, 13 Dec 2020 21:28:35 +0000 (13:28 -0800)]
Improve the Python module build system

Fix the Python module build to more reliably test the newly-built
module and to enable verbose testing.

3 years agoAdd -Wno-cast-align when building Python module
Russ Allbery [Sun, 13 Dec 2020 20:33:17 +0000 (12:33 -0800)]
Add -Wno-cast-align when building Python module

Clang 11 with Python 3.9 produces a warning from the Python
headers otherwise.

3 years agoSwitch to regular clang-format
Russ Allbery [Sun, 13 Dec 2020 20:32:53 +0000 (12:32 -0800)]
Switch to regular clang-format

Debian has now moved to Clang 11 as the default, so use the regular
clang-format executable rather than clang-format-10.

3 years agoPort the PHP extension to PHP 8
Russ Allbery [Sun, 13 Dec 2020 20:21:43 +0000 (12:21 -0800)]
Port the PHP extension to PHP 8

Port the PHP extention to PHP 8.  This required declaring the
arguments to the functions (which should have been done with PHP 7)
and removing some obsolete constructs.

3 years agoFix Perl style for latest perltidy
Russ Allbery [Sun, 13 Dec 2020 19:55:49 +0000 (11:55 -0800)]
Fix Perl style for latest perltidy

Some more minor alignment changes to pass tests with Perl::Tidy
20201207.

3 years agoUpdate to rra-c-util 8.4
Russ Allbery [Sat, 5 Dec 2020 20:51:49 +0000 (12:51 -0800)]
Update to rra-c-util 8.4

* Include string.h when probing for getaddrinfo properties.

and pick up a few other minor changes that don't affect remctl.

3 years agoRemove python/MANIFEST.in
Russ Allbery [Sun, 9 Aug 2020 05:57:09 +0000 (22:57 -0700)]
Remove python/MANIFEST.in

This doesn't appear to be used by anything and named a file that
no longer exists.

3 years agoDefine PY_SSIZE_T_CLEAN for the Python build
Russ Allbery [Sun, 9 Aug 2020 04:28:14 +0000 (21:28 -0700)]
Define PY_SSIZE_T_CLEAN for the Python build

Cast all the length arguments from size_t to Py_ssize_t and add
the recommended define to get rid of deprecation warnings.  This
requires suppressing warnings about redundant decls.

3 years agoInvoke pytest directly instead of via setup.py
Russ Allbery [Sun, 9 Aug 2020 04:27:02 +0000 (21:27 -0700)]
Invoke pytest directly instead of via setup.py

Invoking pytest via setup.py is deprecated.  Invoke pytest directly
and remove the dependency on pytest-runner.

3 years agoStreamline the CI build
Russ Allbery [Sun, 9 Aug 2020 03:28:55 +0000 (20:28 -0700)]
Streamline the CI build

Rather than adding the compiler to the matrix, build first with
Clang and then with GCC and only use Kerberos in the matrix.  This
will make each build take a bit longer, but consume about half as
many resources.

Add cppcheck to the build for the MIT Kerberos variant (no point in
running it under both types of Kerberos).

3 years agoIgnore false positives from old cppcheck
Russ Allbery [Sun, 9 Aug 2020 03:49:17 +0000 (20:49 -0700)]
Ignore false positives from old cppcheck

cppcheck 1.82, which is the version in the current Ubuntu image
used by GitHub Actions, doesn't recognize that a variable is
passed to a function because its address is stored in another
struct that is passed to that function.

3 years agoImprove ci/README
Russ Allbery [Sun, 9 Aug 2020 03:28:09 +0000 (20:28 -0700)]
Improve ci/README

Replace with ci/README.md from the pam-krb5 package.

3 years agoFix Debian status badge
Russ Allbery [Sun, 9 Aug 2020 03:04:40 +0000 (20:04 -0700)]
Fix Debian status badge

Regenerate with the latest DocKnot to force the Debian status
badge to point to unstable.

3 years agoChange status badge to point to GitHub Actions
Russ Allbery [Sun, 9 Aug 2020 02:57:51 +0000 (19:57 -0700)]
Change status badge to point to GitHub Actions

Change the status badge from Travs CI to GitHub Actions.  Regenerate
the documentation to pick up that and other changes.

3 years agoFix new cppcheck errors
Russ Allbery [Sun, 9 Aug 2020 02:55:24 +0000 (19:55 -0700)]
Fix new cppcheck errors

Suppress cppcheck for Perl and PHP code, since both use constructs
that cppcheck doesn't understand.  Avoid a false positive in the
Ruby code with a simple structural change.  Add a suppression for
another constant that comes from an Autoconf define.

3 years agoFix code formatting
Russ Allbery [Sun, 9 Aug 2020 02:49:24 +0000 (19:49 -0700)]
Fix code formatting

3 years agoSuppress new GCC warnings for Ruby code
Russ Allbery [Sun, 9 Aug 2020 02:48:35 +0000 (19:48 -0700)]
Suppress new GCC warnings for Ruby code

The current versions of GCC and Ruby produce a few more warnings in
expanded macros.  Suppress them for make warnings builds.

3 years agoStop providing an snprintf replacement
Russ Allbery [Sun, 9 Aug 2020 02:48:18 +0000 (19:48 -0700)]
Stop providing an snprintf replacement

Stop providing a replacement for a broken snprintf and assume the libc
version works correctly.  This portability code has proven difficult
to maintain, and was only relevant for ancient proprietary UNIX
versions that have been obsolete for many years.

3 years agoSwitch to GitHub Actions for CI tests
Russ Allbery [Sun, 9 Aug 2020 01:16:50 +0000 (18:16 -0700)]
Switch to GitHub Actions for CI tests

Install a full KDC for both MIT Kerberos and Heimdal and run a
matrix of tests using it.  Enable anonymous PKINIT on the KDC so
that remctl anonymous support can be tested.

3 years agoFix memory leaks in server/anonymous test
Russ Allbery [Sun, 9 Aug 2020 02:06:11 +0000 (19:06 -0700)]
Fix memory leaks in server/anonymous test

The ticket cache and Kerberos context were not being cleaned up
properly, causing errors from valgrind.

3 years agoUse an absolute path to libtool for check-valgrind
Russ Allbery [Sun, 9 Aug 2020 01:44:51 +0000 (18:44 -0700)]
Use an absolute path to libtool for check-valgrind

Ensure that we're not passing a relative path to libtool, just in
case we end up in a different directory than the top-level build
directory.

3 years agoSuppress -Wextra-semi-stmt for Clang builds
Russ Allbery [Sun, 9 Aug 2020 01:38:36 +0000 (18:38 -0700)]
Suppress -Wextra-semi-stmt for Clang builds

The PHP, Perl XS, and Ruby macros trigger this all over the place.

3 years agoInstall Perl::Critic::Freenode for CI
Russ Allbery [Sun, 9 Aug 2020 01:05:44 +0000 (18:05 -0700)]
Install Perl::Critic::Freenode for CI

Get the benefits of the additional Perl style checks, now that
the Perl code in the package should pass them.

3 years agoFix Perl issues found by Perl::Critic::Freenode
Russ Allbery [Sun, 9 Aug 2020 01:02:58 +0000 (18:02 -0700)]
Fix Perl issues found by Perl::Critic::Freenode

This required bumping the minimum version of Perl for the test
suite to Perl 5.10, but the modules should continue to work with
Perl 5.8.

3 years agoIgnore temporary test files for SPDX identifiers
Russ Allbery [Sun, 9 Aug 2020 00:58:15 +0000 (17:58 -0700)]
Ignore temporary test files for SPDX identifiers

When checking for SPDX identifiers, ignore temporary test files.
This fixes issues when running make check-valgrind, since some of
the valgrind output can be large.

3 years agoUpdate to rra-c-util 8.3 and C TAP Harness 4.7
Russ Allbery [Sun, 9 Aug 2020 00:57:10 +0000 (17:57 -0700)]
Update to rra-c-util 8.3 and C TAP Harness 4.7

Update to rra-c-util 8.3:

* Fix Perl style issues found by Perl::Critic::Freenode.
* Fix support for configuring the test suite with a krb5.conf file.
* Fix tests when the system krb5.conf file does not set default_realm.
* Ignore files in tests/config when checking for license identifiers.
* Ignore object files when checking for license identifiers.

Update to C TAP Harness 4.7:

* Fix warning with GCC 10.

3 years agoFix non-Kerberos tests on hosts without IPv4
Russ Allbery [Sat, 8 Aug 2020 23:57:46 +0000 (16:57 -0700)]
Fix non-Kerberos tests on hosts without IPv4

Fix non-Kerberos network tests on hosts with no IPv4 addresses.  In
this case, the network tests for binding all configured addresses will
bind only to IPv6, which broke some prior assumptions in the test
suite.  Thanks to Niko Tyni for the bug report.  Note that the tests
that require a Kerberos setup will still fail in this scenario, since
they assume remctld will bind to 127.0.0.1 by default.

3 years agoFix compiler warning in tests/runtests.c
Russ Allbery [Sat, 8 Aug 2020 23:44:44 +0000 (16:44 -0700)]
Fix compiler warning in tests/runtests.c

The internal xreallocarray implementation did not ensure that the
size of allocated memory was greater than zero.  If either n or
size are 0, set them to 1.

4 years agoDon't build PHP with Clang on Travis-CI
Russ Allbery [Sun, 2 Feb 2020 22:41:21 +0000 (14:41 -0800)]
Don't build PHP with Clang on Travis-CI

Clang installed from Ubuntu is built with GCC and therefore uses
asm goto, which isn't supported by Clang yet.  Skip building PHP
with Clang to avoid spurious failures.

4 years agoUpdate Perl code to Perl 5.008
Russ Allbery [Sun, 2 Feb 2020 22:29:04 +0000 (14:29 -0800)]
Update Perl code to Perl 5.008

Require Perl 5.008 for all Perl code.  This was already the stated
minimum version, but some files required 5.006 and some didn't
state a version requirement.

Take advantage of this minimum Perl version to adopt use base
instead of explicit use of @ISA.

Move copyright and license information for Test::Remctl to the
POD documentation like other Perl modules.

4 years agoUpdate Perl formatting for latest perltidy
Russ Allbery [Sun, 2 Feb 2020 22:19:12 +0000 (14:19 -0800)]
Update Perl formatting for latest perltidy

4 years agoUpdate cppcheck.supp from rra-c-util
Russ Allbery [Sun, 2 Feb 2020 22:14:12 +0000 (14:14 -0800)]
Update cppcheck.supp from rra-c-util

4 years agoReformat with clang-format-10
Russ Allbery [Sun, 2 Feb 2020 21:58:03 +0000 (13:58 -0800)]
Reformat with clang-format-10

Add a new make reformat target to redo the formatting.

4 years agoUpdate to rra-c-util 8.2 and C TAP Harness 4.6
Russ Allbery [Sun, 2 Feb 2020 21:28:59 +0000 (13:28 -0800)]
Update to rra-c-util 8.2 and C TAP Harness 4.6

Update to rra-c-util 8.2:

* Drop support for Perl 5.6.
* Reformat all C source using clang-format 10.
* Remove bogus snprintf tests.

4 years agoMake typing dependency conditional on Python version
Russ Allbery [Wed, 6 Nov 2019 05:01:07 +0000 (21:01 -0800)]
Make typing dependency conditional on Python version

Make the Python install_requires dependency on typing conditional on
Python versions earlier than 3.5 so that setuptools won't attempt to
download typing when it's part of the standard library.  Thanks to
Gianfranco Costamagna and Matthias Klose for the bug report.

4 years agoUpdate perl/MANIFEST for old test removal
Russ Allbery [Sat, 26 Oct 2019 22:56:39 +0000 (15:56 -0700)]
Update perl/MANIFEST for old test removal

4 years agoExclude dgit tags from Travis-CI
Russ Allbery [Sat, 26 Oct 2019 22:55:18 +0000 (15:55 -0700)]
Exclude dgit tags from Travis-CI

4 years agoSome tweaks to NEWS entries for Python release/3.16
Russ Allbery [Sat, 26 Oct 2019 19:08:38 +0000 (12:08 -0700)]
Some tweaks to NEWS entries for Python

4 years agoBump release date
Russ Allbery [Sat, 26 Oct 2019 19:06:54 +0000 (12:06 -0700)]
Bump release date

4 years agoRemove additional Python build files
Russ Allbery [Fri, 25 Oct 2019 05:23:13 +0000 (22:23 -0700)]
Remove additional Python build files

4 years agoUpdate files included in the distribution
Russ Allbery [Fri, 25 Oct 2019 05:03:55 +0000 (22:03 -0700)]
Update files included in the distribution

4 years agoFix cppcheck warnings
Russ Allbery [Fri, 25 Oct 2019 03:51:30 +0000 (20:51 -0700)]
Fix cppcheck warnings

Lots of cppcheck fixes for new diagnostics in 1.89, plus some
additional suppressions for one disagreement and a couple of
apparent bugs.

4 years agoUpdate check-cppcheck rule
Russ Allbery [Fri, 25 Oct 2019 03:38:04 +0000 (20:38 -0700)]
Update check-cppcheck rule

Explicitly generate a list of files to check so that it doesn't
attempt to check files under .git.  Add --force to test more
possible variations.

4 years agoAdd attributes to remctl.h
Russ Allbery [Fri, 25 Oct 2019 03:36:59 +0000 (20:36 -0700)]
Add attributes to remctl.h

Add GCC attributes to the declarations of the libremctl client
functions, which will allow some minor optimization improvements and
better compiler errors about NULL pointers.

4 years agoFix NULL pointer dereference after allocation failure
Russ Allbery [Fri, 25 Oct 2019 03:22:09 +0000 (20:22 -0700)]
Fix NULL pointer dereference after allocation failure

Fix NULL pointer dereference in the client library if allocation of
memory fails, caught by cppcheck.

4 years agoIgnore Python egg-info files for SPDX license check
Russ Allbery [Fri, 25 Oct 2019 00:02:41 +0000 (17:02 -0700)]
Ignore Python egg-info files for SPDX license check

4 years agoFix Python build configuration
Russ Allbery [Thu, 24 Oct 2019 23:59:48 +0000 (16:59 -0700)]
Fix Python build configuration

Skip Python checks if PYTHON is not set, since we can no longer use
the existence of setup.py as a test.  Use the Autoconf-discovered
Python instead of the first Python executable in the PATH.

4 years agoRelease 3.16
Russ Allbery [Thu, 24 Oct 2019 23:53:19 +0000 (16:53 -0700)]
Release 3.16

4 years agoUpdate Python binding documentation for types
Russ Allbery [Thu, 24 Oct 2019 23:41:50 +0000 (16:41 -0700)]
Update Python binding documentation for types

Update the documentation to use proper Python types and to document
how str and bytes values are handled.