dpkg/guillem.git
3 years agolibdpkg: New function to lookup prime numberspu/libdpkg-primes
Guillem Jover [Fri, 1 Feb 2019 02:18:31 +0000 (1 03:18 +0100)]
libdpkg: New function to lookup prime numbers

3 years agolibdpkg: Switch fieldinfos from a simple array to a perfect hash
Guillem Jover [Sat, 13 Apr 2013 22:12:54 +0000 (14 00:12 +0200)]
libdpkg: Switch fieldinfos from a simple array to a perfect hash

Use gperf to increase parsing time, by avoiding repeated array traversal
and uneeded string comparisons.

FIXME:
 - the code is now WET.
 - triehash needs an automake silent rule.

3 years agodpkg: Fix off-by-one bug in --abort-after check
Tom Goulet [Mon, 25 Mar 2019 11:42:41 +0000 (25 12:42 +0100)]
dpkg: Fix off-by-one bug in --abort-after check

The code checking whether the amount of errors had been reached, was
incrementing the counter after the check, which meant it was allowing
one more error than expected.

[guillem@debian.org: Move return to the next line. ]

Closes: #924886
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agoBump version to 1.19.7
Guillem Jover [Mon, 25 Mar 2019 14:41:15 +0000 (25 15:41 +0100)]
Bump version to 1.19.7

3 years agoRelease 1.19.61.19.6
Guillem Jover [Mon, 25 Mar 2019 14:09:01 +0000 (25 15:09 +0100)]
Release 1.19.6

3 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Mon, 25 Mar 2019 14:08:25 +0000 (25 15:08 +0100)]
po: Regenerate .pot files and merge .po files with them

3 years agodebian, man: Fix typos
Guillem Jover [Mon, 25 Mar 2019 14:03:18 +0000 (25 15:03 +0100)]
debian, man: Fix typos

Warned-by: lintian
3 years agopo: Update Dutch translations
Frans Spiesschaert [Mon, 25 Mar 2019 11:10:12 +0000 (25 12:10 +0100)]
po: Update Dutch translations

Closes: #924776, #924777
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 24 Mar 2019 06:00:04 +0000 (24 07:00 +0100)]
Update German translation of manual pages

Update to 2997t1f.

3 years agodpkg-gencontrol: Check presence of package build dir before traversing it
Guillem Jover [Mon, 11 Mar 2019 22:21:38 +0000 (11 23:21 +0100)]
dpkg-gencontrol: Check presence of package build dir before traversing it

The find() function does not cope well with trying to traverse an
unexistent directory and generates various alarming warnings.

3 years agoDpkg::Source::Package: Handle Format field being undefined
Guillem Jover [Mon, 11 Mar 2019 21:39:38 +0000 (11 22:39 +0100)]
Dpkg::Source::Package: Handle Format field being undefined

On source format 1.0, the default is for the debian/source/format file
not being present, which means we'll start with an empty Format field
name.

Fixes: commit d1d35a56e401181b6d15baf474a7db21d3372a65

3 years agoDpkg::Source::Package::V1: Change default build option style to -sa
Guillem Jover [Sat, 2 Mar 2019 01:41:40 +0000 (2 02:41 +0100)]
Dpkg::Source::Package::V1: Change default build option style to -sa

Using -sA by default means the user might lose data on overwrite if
there is already a directory with the same name laying around.

Closes: #910737

3 years agolibdpkg: Use ERANGE instead of EINVAL for tar_atol8() out-of-range error
Guillem Jover [Wed, 6 Mar 2019 02:52:10 +0000 (6 03:52 +0100)]
libdpkg: Use ERANGE instead of EINVAL for tar_atol8() out-of-range error

We should use the correct errno value, otherwise the error string makes
little sense, and ends up being very confusing.

3 years agolibdpkg: Handle non end-of-tape errors from tar_header_decode()
Guillem Jover [Wed, 6 Mar 2019 02:52:10 +0000 (6 03:52 +0100)]
libdpkg: Handle non end-of-tape errors from tar_header_decode()

We need to assign a status value in the non end-of-tape branch,
otherwise we are using an uninitialized value, which might be anything,
and could end up making the code proceed even if the archive is
damaged/broken, etc.

3 years agolibdpkg: Set tar_entry to zero on tar_entry_destroy()
Guillem Jover [Wed, 6 Mar 2019 02:52:10 +0000 (6 03:52 +0100)]
libdpkg: Set tar_entry to zero on tar_entry_destroy()

When we are destroying a tar_entry we need to zero the struct, otherwise
we will end up freeing already freed memory and crashing.

3 years agolibdpkg: Add a new TAR_FORMAT_UNKNOWN enum value
Guillem Jover [Wed, 6 Mar 2019 02:52:10 +0000 (6 03:52 +0100)]
libdpkg: Add a new TAR_FORMAT_UNKNOWN enum value

This will make it possible to have a value denoting an unknown format,
when we initialize the tar_entry or tar_archive structs.

3 years agot-func: Quote the 'yes' command to make the comment clearer
Guillem Jover [Tue, 6 Nov 2018 02:15:36 +0000 (6 03:15 +0100)]
t-func: Quote the 'yes' command to make the comment clearer

3 years agot-func: Export and move TESTDATA definition close to the PATH definition
Guillem Jover [Tue, 6 Nov 2018 02:14:57 +0000 (6 03:14 +0100)]
t-func: Export and move TESTDATA definition close to the PATH definition

These both are related to pathname handling, group them together.

3 years agot-func: Stop requiring (pseudo-)root
Guillem Jover [Tue, 6 Nov 2018 02:11:58 +0000 (6 03:11 +0100)]
t-func: Stop requiring (pseudo-)root

Pass --root-owner-group to dpkg-deb, which was the only command needing
(pseudo-)root.

3 years agodebian: Add Breaks on lsb-base due to s-s-d breaking killproc
Guillem Jover [Wed, 20 Mar 2019 05:28:57 +0000 (20 06:28 +0100)]
debian: Add Breaks on lsb-base due to s-s-d breaking killproc

There was a bug in the killproc function implementation that made it not
pass the --name argument, so it would end up with just the --pidfile.
The new security requirements from s-s-d made that in some cases, when
the usage was not secure, it would bail out with an error.

Closes: #923861

3 years agodebian: Add a lintian dpkg profile to supress Debian specific tags
Guillem Jover [Wed, 20 Mar 2019 05:26:45 +0000 (20 06:26 +0100)]
debian: Add a lintian dpkg profile to supress Debian specific tags

This makes it possible to disable tags that are Debian specific, such as
the controversial tag emitted for vendor-specific patch series files.

3 years agodebian: Update usertags
Guillem Jover [Sat, 2 Mar 2019 17:11:19 +0000 (2 18:11 +0100)]
debian: Update usertags

This updates the categories used, changes the default view, and update
the file with what was already configued in the BTS.

3 years agodebian: Add bug closures
Guillem Jover [Sun, 24 Feb 2019 02:36:52 +0000 (24 03:36 +0100)]
debian: Add bug closures

This helps link the reported issues with the changes done.

3 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 3 Mar 2019 10:51:42 +0000 (3 11:51 +0100)]
Update German translation of manual pages

Update to 2996t1f.

3 years agoFix spelling of exempt
Helge Kreutzmann [Sun, 24 Feb 2019 17:41:33 +0000 (24 18:41 +0100)]
Fix spelling of exempt

3 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 24 Feb 2019 17:40:43 +0000 (24 18:40 +0100)]
Update German translation of manual pages

Update to 2994t2f1u.

3 years agoUpdate German scripts translation
Helge Kreutzmann [Sun, 24 Feb 2019 16:43:50 +0000 (24 17:43 +0100)]
Update German scripts translation

Update to 603t.

3 years agoBump version to 1.19.6
Guillem Jover [Sat, 23 Feb 2019 17:30:10 +0000 (23 18:30 +0100)]
Bump version to 1.19.6

3 years agoRelease 1.19.51.19.5
Guillem Jover [Sat, 23 Feb 2019 17:03:54 +0000 (23 18:03 +0100)]
Release 1.19.5

3 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Sat, 23 Feb 2019 17:00:53 +0000 (23 18:00 +0100)]
po: Regenerate .pot files and merge .po files with them

3 years agopo: Update Dutch translations
Frans Spiesschaert [Fri, 15 Feb 2019 04:15:46 +0000 (15 05:15 +0100)]
po: Update Dutch translations

Closes: #921942, #921943
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agopo: Update Simplified Chinese programs translation
Mo Zhou [Thu, 31 Jan 2019 03:31:01 +0000 (31 03:31 +0000)]
po: Update Simplified Chinese programs translation

Closes: #920972
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agopo: Update French man page translations
Jean-Pierre Giraud [Fri, 1 Feb 2019 02:45:02 +0000 (1 03:45 +0100)]
po: Update French man page translations

[guillem@debian.org:
 - Fix markup errors.
 - Mark broken translation as fuzzy. ]

Closes: #920905
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agolibdpkg: Fix typos
Guillem Jover [Fri, 22 Feb 2019 02:12:40 +0000 (22 03:12 +0100)]
libdpkg: Fix typos

3 years agolibdpkg, dpkg: Print the dpkg database directory on access errors
Guillem Jover [Sat, 23 Feb 2019 03:56:42 +0000 (23 04:56 +0100)]
libdpkg, dpkg: Print the dpkg database directory on access errors

There were several error messages involving the dpkg database, that were
ambiguous by referring to it as "dpkg status area", instead of printing
the affected pathname. The historical reason for not being more explicit
has been to keep the user a bit under the dark, because this has been an
internal database storage, and only those in the known would go there to
edit it by hand and similar.

This is a bit pointless though, because the Internet is full of
references to those directories, and other error messages just print
them anyway.

In addition, for users that want to diagnose what is the problem this is
not helpful, and the directory might have been changed at build or run
time with one of the options.

Closes: #883700

3 years agolibdpkg: Blank packages that are not-installed with unknown selection
Guillem Jover [Mon, 18 Feb 2019 02:53:36 +0000 (18 03:53 +0100)]
libdpkg: Blank packages that are not-installed with unknown selection

Versions before 1.13.10 did not properly clear the Origin and Bugs
fields, so there might still be entries with these fields that are
not getting garbage collected properly.

Make sure to blank these package entries so that they get forgotten
on the next database dump.

Closes: #922410

3 years agolibdpkg: Use pkg_set_want() instead of a direct assignment
Guillem Jover [Mon, 18 Feb 2019 02:53:16 +0000 (18 03:53 +0100)]
libdpkg: Use pkg_set_want() instead of a direct assignment

3 years agolibdpkg: Include <string.h> in pager.c
Guillem Jover [Fri, 15 Feb 2019 03:13:39 +0000 (15 04:13 +0100)]
libdpkg: Include <string.h> in pager.c

Closes: #922212
Reported-by: Y <sevener@cock.li>
3 years agolibdpkg: Use va_arg copy instead of the original on a vasprintf() call
Guillem Jover [Thu, 7 Feb 2019 21:36:11 +0000 (7 22:36 +0100)]
libdpkg: Use va_arg copy instead of the original on a vasprintf() call

We need to do that, as we might try to use args again when constructing
the error message into the emergency buffer, which would get garbage
instead.

3 years agolibdpkg: Fix unit test for file_slurp()
Guillem Jover [Fri, 1 Feb 2019 02:38:54 +0000 (1 03:38 +0100)]
libdpkg: Fix unit test for file_slurp()

We should compare only the memory being used, and file_slurp() does not
guarantee NUL-terminating the varbuf.

Closes: #920974
Diagnosed-by: Frank Schaefer <kelledin@gmail.com>
3 years agolibdpkg: Increase the pkg-hash bins size
Guillem Jover [Wed, 30 Jan 2019 02:53:44 +0000 (30 03:53 +0100)]
libdpkg: Increase the pkg-hash bins size

We use a number that is close to the amount of packages currently present
in a Debian suite, so that installed and available packages do not add
tons of collisions.

The memory usage is «BINS * sizeof(void *)», so it will be 256 KiB on
32-bit systems and 512 KiB on 64-bit systems.

Update the code comment to reflect the above.

3 years agolibdpkg: Print a more accurate warning for Revision nicknames
Guillem Jover [Sat, 23 Feb 2019 03:56:30 +0000 (23 04:56 +0100)]
libdpkg: Print a more accurate warning for Revision nicknames

Now that we do not use a nickname mapping anymore, the field struct
contains the actual field name matched, so we can report it correctly
instead of listing all possible altrnatives, and then missing some.

3 years agolibdpkg: Merge nicknames table into fieldinfos
Guillem Jover [Sat, 23 Feb 2019 03:56:14 +0000 (23 04:56 +0100)]
libdpkg: Merge nicknames table into fieldinfos

The current code first does a lookup to see if the fieldname is in the
nicknames table, if found fixes up the fieldname to the new alias, and
then always does a lookup for the normalized name in fieldinfos table.

This penalizes the common case (i.e. non-obsolete fieldnames)
substantially. Also moving the nicknames into the fieldinfos table will
allow to print correct fieldnames on error as those are not mangled any
more, and to provide new wrapper parse functions that print warnings for
the obsolete fieldnames.

3 years agolibdpkg: Optimize error handling
Guillem Jover [Sat, 23 Feb 2019 03:55:59 +0000 (23 04:55 +0100)]
libdpkg: Optimize error handling

Move the error reporting outside the involved functions so that we do
not need to call gettext if there is no error, which has a significant
performance cost.

3 years agolibdpkg: Clarify field names in error and warning messages
Guillem Jover [Fri, 22 Feb 2019 08:47:43 +0000 (22 09:47 +0100)]
libdpkg: Clarify field names in error and warning messages

Move all field names to be format arguments so that these do not get
accidentally translated. Use fip->name instead of hardcoding the field
name. Always refer to the field names as "'%s' field". Use the proper
field names instead of descriptions. And capitalize their names.

3 years agolibdpkg: Move status names from parse errors to arguments
Guillem Jover [Sat, 23 Feb 2019 03:55:47 +0000 (23 04:55 +0100)]
libdpkg: Move status names from parse errors to arguments

Although package states are very unlikely to change their names, it's
just better to use a single canonical place to store their values.

This also makes sure no translator will accidentally translate these
names.

3 years agolibdpkg: Add new dpkg_has_error() function
Guillem Jover [Sun, 27 Jan 2019 04:06:38 +0000 (27 05:06 +0100)]
libdpkg: Add new dpkg_has_error() function

3 years agolibdpkg: Add new dpkg_error_move() function
Guillem Jover [Sat, 23 Feb 2019 03:55:32 +0000 (23 04:55 +0100)]
libdpkg: Add new dpkg_error_move() function

3 years agolibdpkg: New benchmark programs and infrastructure
Guillem Jover [Sat, 23 Feb 2019 03:52:18 +0000 (23 04:52 +0100)]
libdpkg: New benchmark programs and infrastructure

These are intended to be used to check performance improvements in the
libdpkg implementation.

3 years agoDpkg::BuildOptions: Fix typo in POD
Guillem Jover [Fri, 22 Feb 2019 00:42:13 +0000 (22 01:42 +0100)]
Dpkg::BuildOptions: Fix typo in POD

3 years agoDpkg::Source::Package: Add a missing use Dpkg::Source::Format
Guillem Jover [Fri, 1 Feb 2019 02:41:25 +0000 (1 03:41 +0100)]
Dpkg::Source::Package: Add a missing use Dpkg::Source::Format

Closes: #921031
Fixes: commit d1d35a56e401181b6d15baf474a7db21d3372a65
Diagnosed-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
3 years agoDpkg::Vendor::Debian: Add support for usr-local-has-* tainted tags
Guillem Jover [Mon, 3 Dec 2018 07:57:14 +0000 (3 08:57 +0100)]
Dpkg::Vendor::Debian: Add support for usr-local-has-* tainted tags

These will detect problematic files under /usr/local which can taint
the current build.

3 years agoDpkg::Vendor::Debian: Add support for merged-usr-via-symlinks tainted tag
Guillem Jover [Sun, 2 Dec 2018 02:35:49 +0000 (2 03:35 +0100)]
Dpkg::Vendor::Debian: Add support for merged-usr-via-symlinks tainted tag

This will detect whether the system we are building on contains the
problematic /usr merged via symlinks deployment method.

Suggested-by: Alexander E. Patrakov <patrakov@gmail.com>
3 years agodpkg-genbuildinfo: Add support for a new Build-Tainted-By field
Guillem Jover [Sun, 2 Dec 2018 02:35:49 +0000 (2 03:35 +0100)]
dpkg-genbuildinfo: Add support for a new Build-Tainted-By field

This field will contain a list of tainting reason tags, which can denote
that the current build has potentially been broken.

Suggested-by: Alexander E. Patrakov <patrakov@gmail.com>
3 years agodpkg-maintscript-helper: Restrict find for dir-to-symlink move to -maxdepth 1
Ralf Treinen [Thu, 21 Feb 2019 03:40:42 +0000 (21 04:40 +0100)]
dpkg-maintscript-helper: Restrict find for dir-to-symlink move to -maxdepth 1

We do not want to move the entries beneath the first depth of the
pathname, as when we try to move those, we will have already moved
their parent.

Closes: #922799
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agodpkg-buildpackage: Clarify the warning/error on short OpenPGP key IDs
Guillem Jover [Fri, 15 Feb 2019 03:25:06 +0000 (15 04:25 +0100)]
dpkg-buildpackage: Clarify the warning/error on short OpenPGP key IDs

Print where these are to be used.

Closes: #922039

3 years agodpkg(1): Document the unknown selection state
Guillem Jover [Mon, 18 Feb 2019 03:51:01 +0000 (18 04:51 +0100)]
dpkg(1): Document the unknown selection state

Closes: #922407

3 years agodpkg: Clarify error on unknown system user/group in statoverride database
Guillem Jover [Fri, 1 Feb 2019 02:57:54 +0000 (1 03:57 +0100)]
dpkg: Clarify error on unknown system user/group in statoverride database

Closes: #920880

3 years agodpkg: Add new option --refuse-security-mac to control SELinux
Guillem Jover [Sat, 23 Feb 2019 03:39:37 +0000 (23 04:39 +0100)]
dpkg: Add new option --refuse-security-mac to control SELinux

This new option works in both dpkg and dpkg-statoverride. And dpkg will
pass it to its children, which means dpkg-statoverride called from a
maintainer script will automatically pick it up.

Ref: #811037

3 years agodpkg-statoverride: Switch from --force option to new --force-<thing> options
Guillem Jover [Fri, 7 Sep 2018 16:41:33 +0000 (7 18:41 +0200)]
dpkg-statoverride: Switch from --force option to new --force-<thing> options

Deprecate --force option which will be considered an alias for
--force-all for now.

3 years agodpkg-statoverride: Add support for --force-* options
Guillem Jover [Fri, 7 Sep 2018 14:00:13 +0000 (7 16:00 +0200)]
dpkg-statoverride: Add support for --force-* options

3 years agodpkg: Parse and set new DPKG_FORCE environment variable for subprocesses
Guillem Jover [Sat, 23 Feb 2019 03:47:56 +0000 (23 04:47 +0100)]
dpkg: Parse and set new DPKG_FORCE environment variable for subprocesses

This will make it possible for third-party tools, and also for other
dpkg tools to have access to the force options specified for dpkg.

Closes: #666147

3 years agodpkg: Switch to set the default force option from the forceinfos array
Guillem Jover [Tue, 11 Sep 2018 22:46:32 +0000 (12 00:46 +0200)]
dpkg: Switch to set the default force option from the forceinfos array

3 years agodpkg: Switch from a char to an enum to track the force options types
Guillem Jover [Tue, 11 Sep 2018 22:43:12 +0000 (12 00:43 +0200)]
dpkg: Switch from a char to an enum to track the force options types

3 years agodpkg: Switch force options from individual variables to bit fields
Guillem Jover [Sat, 23 Feb 2019 03:47:25 +0000 (23 04:47 +0100)]
dpkg: Switch force options from individual variables to bit fields

This makes it easier to generalize to be used by other modules with
different force options, and to operate on the force options.

3 years agodpkg: Print the current set of enabled force options on --force-help
Guillem Jover [Sat, 23 Feb 2019 03:47:12 +0000 (23 04:47 +0100)]
dpkg: Print the current set of enabled force options on --force-help

This will make it possible to reason more easily about what is
getting enabled.

3 years agodpkg: Do not hardcode the program name in the --force-help output
Guillem Jover [Sun, 16 Sep 2018 09:41:18 +0000 (16 11:41 +0200)]
dpkg: Do not hardcode the program name in the --force-help output

We will be using the same logic for other commands.

3 years agodpkg: Move force options support into its own file
Guillem Jover [Sat, 23 Feb 2019 03:37:13 +0000 (23 04:37 +0100)]
dpkg: Move force options support into its own file

This unifies all force related code in a single file, and will make it
possible to use it in other programs.

3 years agodpkg: Simplify maintscript_set_exec_context()
Guillem Jover [Wed, 20 Feb 2019 10:32:33 +0000 (20 11:32 +0100)]
dpkg: Simplify maintscript_set_exec_context()

We do not really need to normalize the return code, which was confusing
the cppcheck for which we required a supression.

3 years agodpkg: Move SELinux fallback label to the SELinux specific code path
Guillem Jover [Sat, 23 Feb 2019 03:47:02 +0000 (23 04:47 +0100)]
dpkg: Move SELinux fallback label to the SELinux specific code path

The wrapper function should be generic, so leaking this SELinux specific
detail there is just wrong.

3 years agos-s-d(1): Document behavior of --pidfile security checks
Guillem Jover [Fri, 15 Feb 2019 04:09:11 +0000 (15 05:09 +0100)]
s-s-d(1): Document behavior of --pidfile security checks

Describe what to expect from these new checks.

Closes: #921557

3 years agos-s-d: Always refuse to parse a world-writable pidfile, except for /dev/null
Guillem Jover [Fri, 15 Feb 2019 04:06:46 +0000 (15 05:06 +0100)]
s-s-d: Always refuse to parse a world-writable pidfile, except for /dev/null

This is generally insecure, not just when using the --pidfile match
option alone. The «/dev/null» excemption is still in place.

3 years agos-s-d: Add new fatalv() and fatale() and use the latter for system errors
Guillem Jover [Fri, 15 Feb 2019 03:45:41 +0000 (15 04:45 +0100)]
s-s-d: Add new fatalv() and fatale() and use the latter for system errors

We should not try to use errno, when the error has not been produced due
to a system error, as then errno might contain bogus or unrelated
information. Be explicit in the error handling by calling fatale() for
errno related errors, and fatal() for the ones that are disconnected
from it.

3 years agos-s-d: Make sure that we get a meaningful errno on parse_unsigned()
Guillem Jover [Fri, 15 Feb 2019 03:43:33 +0000 (15 04:43 +0100)]
s-s-d: Make sure that we get a meaningful errno on parse_unsigned()

Initialize errno to 0 before returning on any error condition, not just
before strtol(3), so that when we call fatal() we get a meaningful value
in errno.

3 years agodebian: Include a bug-script to report on tainted merged-usr-via-symlinks
Guillem Jover [Tue, 19 Feb 2019 04:53:04 +0000 (19 05:53 +0100)]
debian: Include a bug-script to report on tainted merged-usr-via-symlinks

Systems deployed with that method bypass the package manager and its
understanding of the filesystem, create aliasing problems, and break
all kinds of expectations for any program that uses pathnames as key
into their database, such as u-a.

3 years agodebian: Remove Origin and Bugs fields from control file
Guillem Jover [Fri, 22 Feb 2019 00:42:47 +0000 (22 01:42 +0100)]
debian: Remove Origin and Bugs fields from control file

These fields have been there mostly to showcase their usage, which
should instead be dynamically added at build-time, and as a reminder
that this should be done.

But there is already a bug filed as a reminder (see #511160), they
are also now documented in the deb-src-control(5) man page, they are
actually wrong in many cases when present on a downstream, and they
generate nagging lintian warnings to boot.

3 years agodebian: Remove trailing whitespace from changelog
Guillem Jover [Fri, 22 Feb 2019 00:42:28 +0000 (22 01:42 +0100)]
debian: Remove trailing whitespace from changelog

3 years agodebian: Remove now unused assert usertag description
Guillem Jover [Wed, 30 Jan 2019 02:32:16 +0000 (30 03:32 +0100)]
debian: Remove now unused assert usertag description

All such bugs have been closed, there is no reason to document it
anymore.

3 years agodebian: Bump Standards-Version to 4.3.0 (no changes required)
Guillem Jover [Sun, 27 Jan 2019 12:28:28 +0000 (27 13:28 +0100)]
debian: Bump Standards-Version to 4.3.0 (no changes required)

3 years agodebian: Clarify autopkgtest behavior on root/non-root requirement
Guillem Jover [Sat, 23 Feb 2019 02:50:21 +0000 (23 03:50 +0100)]
debian: Clarify autopkgtest behavior on root/non-root requirement

Mark the not-root test as skippable, and skip it if running as root, as
there is no restriction currently to represent that. For the root test
clarify the failing exit code with a comment.

3 years agodebian: Add file to autopkgtest Depends fields
Guillem Jover [Fri, 25 Jan 2019 01:15:39 +0000 (25 02:15 +0100)]
debian: Add file to autopkgtest Depends fields

libtool generated scripts make use of file(1) to detect the executable
types.

3 years agodebian: Fix bug closures
Guillem Jover [Wed, 30 Jan 2019 02:33:07 +0000 (30 03:33 +0100)]
debian: Fix bug closures

3 years agobuild: Check whether this dist is a release based only on the version format
Guillem Jover [Wed, 20 Feb 2019 10:48:08 +0000 (20 11:48 +0100)]
build: Check whether this dist is a release based only on the version format

Using the .dist-version file implies that we need to do a two staged
release process. First a «make dist», unpack the generated tarball
distribution, and run that again. When the deciding factor is the
format of the version. Switch to use that exclusively.

3 years agodebian: Fix impromperly indented line in debian/changelog
Sven Joachim [Wed, 30 Jan 2019 17:49:18 +0000 (30 18:49 +0100)]
debian: Fix impromperly indented line in debian/changelog

3 years agoGerman dpkg translation update
Sven Joachim [Wed, 30 Jan 2019 17:32:26 +0000 (30 18:32 +0100)]
German dpkg translation update

Update to 1128t.

3 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 23 Jan 2019 18:48:55 +0000 (23 19:48 +0100)]
Update German translation of manual pages

Update to 2970t1f.

3 years agoUpdate German scripts translation
Helge Kreutzmann [Wed, 23 Jan 2019 17:42:27 +0000 (23 18:42 +0100)]
Update German scripts translation

Update to 603t.

3 years agoBump version to 1.19.5
Guillem Jover [Wed, 23 Jan 2019 12:53:51 +0000 (23 13:53 +0100)]
Bump version to 1.19.5

3 years agoRelease 1.19.41.19.4
Guillem Jover [Wed, 23 Jan 2019 12:06:59 +0000 (23 13:06 +0100)]
Release 1.19.4

3 years agodebian: Change autopkgtest Depends to «build-essential, autoconf, pkg-config»
Guillem Jover [Wed, 23 Jan 2019 11:25:41 +0000 (23 12:25 +0100)]
debian: Change autopkgtest Depends to «build-essential, autoconf, pkg-config»

This fixes the Depends to what is really required by the configure
script.

3 years agodebian: Pass --disable-nls and --disable-dselect to configure in autopkgtests
Guillem Jover [Wed, 23 Jan 2019 11:24:34 +0000 (23 12:24 +0100)]
debian: Pass --disable-nls and --disable-dselect to configure in autopkgtests

This reduces the required dependencies to a minimum.

3 years agos-s-d: Remove bogus comment about Linux user namespaces vs /dev/null
Guillem Jover [Wed, 23 Jan 2019 11:15:26 +0000 (23 12:15 +0100)]
s-s-d: Remove bogus comment about Linux user namespaces vs /dev/null

The /dev/null device always has world-writable permissions, so it would
always fail anyway.

Spotted-by: James Clarke <jrtc27@debian.org> (on IRC)
3 years agos-s-d: Do not sanity check the pidfile when it is specified as /dev/null
Guillem Jover [Wed, 23 Jan 2019 08:16:03 +0000 (23 09:16 +0100)]
s-s-d: Do not sanity check the pidfile when it is specified as /dev/null

Several projects use this to bypass the requirement for a matching
option so that they can start a program no matter what. Even though
the check should not fail on this condition, it does on some scenarios,
such as when using Linux user namespaces.

Closes: #920242

3 years agos-s-d: Move SO_PASSCRED setting into its own function
Guillem Jover [Wed, 23 Jan 2019 08:13:17 +0000 (23 09:13 +0100)]
s-s-d: Move SO_PASSCRED setting into its own function

This way we have the entire logic in one place, and can more cleanly
conditionalize on SO_PASSCRED availability.

3 years agos-s-d: Only use SO_PASSCRED if defined
Guillem Jover [Wed, 23 Jan 2019 02:01:17 +0000 (23 03:01 +0100)]
s-s-d: Only use SO_PASSCRED if defined

Fixes build failure at least on GNU/Hurd.

3 years agoBump version to 1.19.4
Guillem Jover [Tue, 22 Jan 2019 18:24:47 +0000 (22 19:24 +0100)]
Bump version to 1.19.4

3 years agoRelease 1.19.31.19.3
Guillem Jover [Tue, 22 Jan 2019 13:26:25 +0000 (22 14:26 +0100)]
Release 1.19.3

3 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Tue, 22 Jan 2019 13:26:03 +0000 (22 14:26 +0100)]
po: Regenerate .pot files and merge .po files with them

3 years agopo: Update Simplified Chinese programs translation
Zhou Mo [Sun, 13 Jan 2019 03:27:10 +0000 (13 04:27 +0100)]
po: Update Simplified Chinese programs translation

Closes: #919040
Signed-off-by: Guillem Jover <guillem@debian.org>
3 years agopo: Update Portuguese programs translation
Miguel Figueiredo [Sun, 30 Dec 2018 19:17:00 +0000 (30 20:17 +0100)]
po: Update Portuguese programs translation

Closes: #917813
Signed-off-by: Guillem Jover <guillem@debian.org>