dpkg/guillem.git
5 years agoDpkg::Shlibs: Move split_soname from dpkg-shlibdepspu/perl-Dpkg-ObjectFile-ELF
Guillem Jover [Mon, 22 May 2017 03:37:09 +0000 (22 05:37 +0200)]
Dpkg::Shlibs: Move split_soname from dpkg-shlibdeps

5 years agoDpkg::Shlibs: Refactor is_shared_library
Guillem Jover [Mon, 22 May 2017 03:36:50 +0000 (22 05:36 +0200)]
Dpkg::Shlibs: Refactor is_shared_library

5 years agoDpkg::ObjectFile: Move ELF-specific functions from Dpkg::Shlibs::Objdump
Guillem Jover [Sun, 21 May 2017 04:00:02 +0000 (21 06:00 +0200)]
Dpkg::ObjectFile: Move ELF-specific functions from Dpkg::Shlibs::Objdump

Rename get_format() to get_objectfile_abi().

5 years agodebian: Install the perl module man pages from section 3perl
Guillem Jover [Sat, 20 May 2017 22:20:20 +0000 (21 00:20 +0200)]
debian: Install the perl module man pages from section 3perl

Fixes: commit 0b020bec8cffe1bf21931f868262d7a34592d1a3

5 years agoman: Use command-string instead of command for dpkg-architecture -c argument
Guillem Jover [Sat, 22 Apr 2017 16:49:14 +0000 (22 18:49 +0200)]
man: Use command-string instead of command for dpkg-architecture -c argument

Using the same name as the name in the SYNOPSIS, or the COMMANDS section
seems confusing as it can be understood as the program accepting -c
argument values without the -c command option.

Reported-by: Johannes Schauer <josch@debian.org>
5 years agoman: Clarify behavior for dpkg-maintscript-helper
Guillem Jover [Sun, 9 Apr 2017 14:53:28 +0000 (9 16:53 +0200)]
man: Clarify behavior for dpkg-maintscript-helper

Closes: #857852

5 years agoman: Mark source:Version substvar in bold in deb-substvars(5)
Guillem Jover [Sun, 9 Apr 2017 13:01:20 +0000 (9 15:01 +0200)]
man: Mark source:Version substvar in bold in deb-substvars(5)

5 years agoman: Document currently accepted syntax for changelogs
Guillem Jover [Sun, 9 Apr 2017 01:51:03 +0000 (9 03:51 +0200)]
man: Document currently accepted syntax for changelogs

The current implementation supports several comment lines, VCS and
editor variable settings which get ignored. In addition, to be able
to handle ancient changelog entries, the parser will detect those and
ignore while preserving them for output.

Closes: #858579
Reviewed-by: G. Branden Robinson <g.branden.robinson@gmail.com>
5 years agodpkg-shlibdeps: Remove unused my $file variable
Niels Thykier [Sat, 1 Apr 2017 09:47:14 +0000 (1 09:47 +0000)]
dpkg-shlibdeps: Remove unused my $file variable

Signed-off-by: Niels Thykier <niels@thykier.net>
5 years agotest: Use Module::Metadata instead of grepping for $VERSION
Guillem Jover [Sat, 20 May 2017 03:06:17 +0000 (20 05:06 +0200)]
test: Use Module::Metadata instead of grepping for $VERSION

5 years agotest: Add new module-version unit test
Guillem Jover [Wed, 17 May 2017 22:16:49 +0000 (18 00:16 +0200)]
test: Add new module-version unit test

This will check that the module $VERSION matches the newest entry
in the CHANGES section if there is any POD present.

5 years agoTest::Dpkg: Add new all_perl_modules function
Guillem Jover [Wed, 17 May 2017 22:12:01 +0000 (18 00:12 +0200)]
Test::Dpkg: Add new all_perl_modules function

5 years agotest: Disable perlcritic ValuesAndExpressions::ProhibitEscapedCharacter
Guillem Jover [Wed, 17 May 2017 22:07:14 +0000 (18 00:07 +0200)]
test: Disable perlcritic ValuesAndExpressions::ProhibitEscapedCharacter

5 years agotest: Enable perlcritic Documentation::RequirePodSections
Guillem Jover [Wed, 17 May 2017 22:00:38 +0000 (18 00:00 +0200)]
test: Enable perlcritic Documentation::RequirePodSections

Declare the minimum required POD sections.

5 years agotest: Enable perlcritic Miscellanea::ProhibitTies
Guillem Jover [Wed, 17 May 2017 21:42:17 +0000 (17 23:42 +0200)]
test: Enable perlcritic Miscellanea::ProhibitTies

5 years agobuild: Install perl man pages in section 3perl
Guillem Jover [Sun, 9 Apr 2017 01:19:25 +0000 (9 03:19 +0200)]
build: Install perl man pages in section 3perl

5 years agobuild: Do not override the default DEPENDENCIES for libdpkg
Guillem Jover [Fri, 31 Mar 2017 03:53:00 +0000 (31 05:53 +0200)]
build: Do not override the default DEPENDENCIES for libdpkg

Extend it instead, to make sure that we preserve the libcompat
dependency generated from LIBADD.

5 years agobuild: Add new gcc-7 warnings
Guillem Jover [Wed, 22 Feb 2017 21:49:18 +0000 (22 22:49 +0100)]
build: Add new gcc-7 warnings

5 years agoDpkg::Util: Remove and replace with core module List::Util
Guillem Jover [Thu, 18 May 2017 04:25:26 +0000 (18 06:25 +0200)]
Dpkg::Util: Remove and replace with core module List::Util

Our current minimal Perl version contains a new enough List::Util module
implementing none and any, and several other functions.

5 years agodoc: Bump minimal Perl version to 5.20.2
Guillem Jover [Thu, 18 May 2017 03:56:23 +0000 (18 05:56 +0200)]
doc: Bump minimal Perl version to 5.20.2

The Perl version in Debian jessie is 5.20.2, which is the release that
will be oldstable once 1.19.x gets uploaded to Debian unstable.

5 years agoRemove accidentially forgotten ,fuzzy
Helge Kreutzmann [Thu, 18 May 2017 16:10:06 +0000 (18 18:10 +0200)]
Remove accidentially forgotten ,fuzzy

5 years agoBump version to 1.19.0
Guillem Jover [Thu, 18 May 2017 03:28:32 +0000 (18 05:28 +0200)]
Bump version to 1.19.0

5 years agoRelease 1.18.241.18.24
Guillem Jover [Wed, 17 May 2017 11:16:31 +0000 (17 13:16 +0200)]
Release 1.18.24

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Wed, 17 May 2017 11:27:04 +0000 (17 13:27 +0200)]
po: Regenerate .pot files and merge .po files with them

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 17 May 2017 18:31:16 +0000 (17 20:31 +0200)]
Update German translation of manual pages

Update to 2841t1f.

5 years agolibdpkg: Improve tar metadata parsing
Guillem Jover [Wed, 11 Jan 2017 22:19:50 +0000 (11 23:19 +0100)]
libdpkg: Improve tar metadata parsing

Make the existing octal parser more robust, by checking for the expected
format of leading zeros or spaces, followed by any ASCII octal characters
(0-7), followed by zero or more space or NULs. Even though POSIX specifies
that numerical fields should end with at least one space or NUL, we still
support this extension which has been present in other implementations
for a long time.

Add support for base-256 encoded numeric fields, to support large
values, for UID/GID, device number, size and even negative timestamps.
This is necessary not only to be able to store larger values, but to
cover packages that can already be generated by dpkg-deb, given that it
uses the system GNU tar when building.

Closes: #850834

5 years agolibdpkg: Do not parse device number for non block nor char tar entry objects
Guillem Jover [Mon, 15 May 2017 04:45:14 +0000 (15 06:45 +0200)]
libdpkg: Do not parse device number for non block nor char tar entry objects

We should not try to parse these fields if the tar entry is neither
a block nor a char device.

On older tar entries these fields will be all NULs, so it would make
a parser expecting a somewhat strictly formatted octal value to error
out.

5 years agolibdpkg: Handle files with non-zero sizes in c-tarextract test code
Guillem Jover [Mon, 15 May 2017 04:43:17 +0000 (15 06:43 +0200)]
libdpkg: Handle files with non-zero sizes in c-tarextract test code

The test suite only handles empty files, so it never had any problem
with not skipping those objects. But when testing it on common data,
and to make the code future-proof, we should just skip the file
objects when parsing them.

5 years agodpkg: Fix digest inference for shared conffiles
Guillem Jover [Wed, 26 Apr 2017 17:11:10 +0000 (26 19:11 +0200)]
dpkg: Fix digest inference for shared conffiles

The code in charge of inferring the digest for a conffile was
checking the owning package status twice, and ignoring conffiles
with a status lower than "unpacked" even if they had been configured
previously and their md5sums were valid.

This was causing bogus takeover unpack errors.

Fixes: commit 05a8ddb482419d110571679a29bcd25e3c2b036d
Closes: #861217
Stable-Candidate: 1.17.x

5 years agodpkg: Fix conffile takeover handling during unpack on --root or diversions
Guillem Jover [Thu, 16 Mar 2017 16:20:13 +0000 (16 17:20 +0100)]
dpkg: Fix conffile takeover handling during unpack on --root or diversions

The current code was trying to stat(2) a conffile without taking into
account a specified root directory, nor any possible diversions.

But the check based on the device and inode was pretty much unnecessary
because a simple string comparison is enough here, which as a bogus
solves both problems by reducing the code size.

Closes: #837051, #858004
Stable-Candidate: 1.17.x

5 years agoDpkg::Source::Package: Ignore debian/files and debian/files.new by default
Guillem Jover [Sat, 29 Apr 2017 21:43:49 +0000 (29 23:43 +0200)]
Dpkg::Source::Package: Ignore debian/files and debian/files.new by default

These are generated files, and these pathnames are part of the external
interface. With the introduction of the buildinfo support, these get
generated even on source builds, which means that it can disrupt
previous workflows based on not cleaning the source tree, because they
assumed that source-only builds did not have filesystem side-effects.

5 years agodpkg-genbuildinfo: Add duplicate prevention code for debian/files
Guillem Jover [Sat, 29 Apr 2017 22:42:17 +0000 (30 00:42 +0200)]
dpkg-genbuildinfo: Add duplicate prevention code for debian/files

We should do something similar to what dpkg-gencontrol is doing, by
preventing duplicated entries for the same file with different versions.

In this case, because the assumption is that there can ever only be one
buildinfo file for a «source» or «all» build, but possibly multiple for
arch-specific builds (from another build driver than dpkg-buildpackage),
we filter based on this.

5 years agodpkg-maintscript-helper: Print all unowned files from a directory
Guillem Jover [Sat, 22 Apr 2017 16:48:10 +0000 (22 18:48 +0200)]
dpkg-maintscript-helper: Print all unowned files from a directory

Add a new internal command that is not part of the public interface,
that takes care of checking whether a pathname is owned by a package.

This internal command has some logic to prevent external abuse, by
checking whether the parent has set a specific environment variable
with a token that changes per release.

The code will list all unowned files because xargs does not short-circuit
on the first command erroring out, as long these do not terminate with an
exit code of 255.

Closes: #813454, #860238
Based-on-patch-by: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
5 years agodpkg-shlibdeps: Preserve the order when scanning symbols/shlibs files
Guillem Jover [Sun, 23 Apr 2017 02:51:58 +0000 (23 04:51 +0200)]
dpkg-shlibdeps: Preserve the order when scanning symbols/shlibs files

The code was getting all the possible shared library pathnames for the
wanted SONAME, but was not preserving the order carefully constructed
in find_library(), so we were overwriting symbols/shlibs information
when parsing multiple entries, and selecting the symbols/shlibs files
randomly based on the perl hash order.

This causes regressions when multiple packages provide the same
SONAME on different directories. An example would be libc6:amd64
and libc6-amd64:i386.

Fixes: commit a927295c93fb7a17742441aa863aaffcf4a351b5
Closes: #860979
Reported-by: Helmut Grohne <helmut@subdivi.de>
5 years agoDpkg::Source::Patch: Indented patch test-case
Guillem Jover [Sun, 19 Mar 2017 18:40:14 +0000 (19 19:40 +0100)]
Dpkg::Source::Patch: Indented patch test-case

POSIX specifies that a diff hunk can be indented by spaces or tabs
(while the original patch(1) by Larry Wall also accepts 'X'), as long
as the amount of spaces is consistent for all subsequent lines. And as
we are not checking for this condition at all, any such indented hunk
can avoid the sanity checks performed by Dpkg::Source::Patch.

On systems using GNU patch >= 2.7.5, this should, in principle, not be
a problem anymore, as that implementation protects against directory
traversal issue. But on other systems where the patch implementation
does not perform such checks (such as the BSDs) this is an issue, so
check for this in the test-suite.

Those are arguably all security issues in these various patch
implementations, but given that we are performing sanity checks and that
those implementations are currently very lax, it seems prudent to do the
heavy lifting ourselves and also take the possible blame too.

Ref: CVE-2017-8283
Stable-Candidate: 1.17.x

5 years agoDpkg::Deps: Bump $VERSION to match the documented CHANGES
Guillem Jover [Fri, 5 May 2017 17:09:07 +0000 (5 19:09 +0200)]
Dpkg::Deps: Bump $VERSION to match the documented CHANGES

The documentation on the CHANGES section did not match the current
$VERSION, bump it so that it does, and document when it was actually
bumped, so that users do not get confused.

Fixes: commit 608f93858f2fc44e86538fbf585d4e0fa9cf7743

5 years agobuild: Detect the required GNU patch
Guillem Jover [Tue, 28 Mar 2017 20:44:36 +0000 (28 22:44 +0200)]
build: Detect the required GNU patch

This makes sure the perl module is using a directory traversal resistant
patch implementation, currently that's only GNU patch.

Fixes: CVE-2017-8283
Stable-Candidate: 1.17.x

5 years agobuild: Detect the required GNU tar
Guillem Jover [Tue, 28 Mar 2017 20:44:36 +0000 (28 22:44 +0200)]
build: Detect the required GNU tar

For now we do require a GNU tar implementation, so let's check this
explicitly in configure, so that downstream packagers do not get
surprised when the code fails at run-time.

In the future this should be lifted once we switch fully to an internal
tar implementation.

5 years agoDpkg::Vendor::Ubuntu: Remove obsolete hardening-wrapper support
Adam Conrad [Wed, 26 Apr 2017 01:09:37 +0000 (26 03:09 +0200)]
Dpkg::Vendor::Ubuntu: Remove obsolete hardening-wrapper support

Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agolibdpkg: Add missing symbols to the map file
Guillem Jover [Fri, 31 Mar 2017 03:51:43 +0000 (31 05:51 +0200)]
libdpkg: Add missing symbols to the map file

This causes build failures when enabling the shared library.

5 years agoarch: Add support for ARM64 ILP32
Guillem Jover [Wed, 15 Mar 2017 18:49:08 +0000 (15 19:49 +0100)]
arch: Add support for ARM64 ILP32

Closes: #824742
Based-on-patch-by: Wookey <wookey@wookware.org>
5 years agobuild: Use libexec variable for auxiliary internal programs
Guillem Jover [Mon, 6 Mar 2017 21:28:45 +0000 (6 22:28 +0100)]
build: Use libexec variable for auxiliary internal programs

Using libdir is wrong, and doubly so when being referred from
architecture independent files such as perl modules. This affects
non-Debian based systems, which might by default use an arch varying
libdir per architecture, for example when using the obsolete multilib
layout.

5 years agobuild: Spell builtin correctly
Guillem Jover [Sun, 2 Apr 2017 17:27:19 +0000 (2 19:27 +0200)]
build: Spell builtin correctly

This has no functional effect, it's just used for output.

5 years agopo: Add missing new lines in Catalan translation
Guillem Jover [Sun, 7 May 2017 14:26:59 +0000 (7 16:26 +0200)]
po: Add missing new lines in Catalan translation

5 years agodebian: Add missing changelog entries
Guillem Jover [Fri, 28 Apr 2017 02:08:08 +0000 (28 04:08 +0200)]
debian: Add missing changelog entries

Entry for Spanish translation update. Multi-maintainer marking in
1.18.23.

5 years agopo: Update Catalan translation
Guillem Jover [Sat, 29 Apr 2017 21:43:11 +0000 (29 23:43 +0200)]
po: Update Catalan translation

5 years agopo: Fix German man page translation
David Rabel [Sat, 11 Mar 2017 11:51:48 +0000 (11 12:51 +0100)]
po: Fix German man page translation

Closes: #857449
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agopo: Unfuzzy strings after spelling fixes
Guillem Jover [Thu, 9 Mar 2017 03:22:24 +0000 (9 04:22 +0100)]
po: Unfuzzy strings after spelling fixes

5 years agodoc: Do not include mispellings in changelogs
Guillem Jover [Tue, 14 Mar 2017 02:15:29 +0000 (14 03:15 +0100)]
doc: Do not include mispellings in changelogs

This makes detecting them more difficult, as they become a bunch of
false-positives to wade through.

5 years agodoc: Spelling fixes
Guillem Jover [Tue, 7 Mar 2017 01:42:18 +0000 (7 02:42 +0100)]
doc: Spelling fixes

Spotted-by: Josh Soref <jsoref@gmail.com>
5 years agodoc: Spelling fixes
Josh Soref [Sun, 26 Feb 2017 22:14:52 +0000 (26 22:14 +0000)]
doc: Spelling fixes

Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agoUpdated Czech translation
Miroslav Kure [Sat, 6 May 2017 11:20:04 +0000 (6 13:20 +0200)]
Updated Czech translation

5 years agoUpdated Spanish translation
Javier Fernandez-Sanguino [Fri, 7 Apr 2017 15:49:46 +0000 (7 17:49 +0200)]
Updated Spanish translation

5 years agoBump version to 1.18.24
Guillem Jover [Mon, 6 Mar 2017 05:52:13 +0000 (6 06:52 +0100)]
Bump version to 1.18.24

5 years agoRelease 1.18.231.18.23
Guillem Jover [Mon, 6 Mar 2017 04:41:23 +0000 (6 05:41 +0100)]
Release 1.18.23

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Mon, 6 Mar 2017 05:27:22 +0000 (6 06:27 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agopo: Update Dutch translations
Frans Spiesschaert [Mon, 6 Mar 2017 04:03:42 +0000 (6 05:03 +0100)]
po: Update Dutch translations

Closes: #856325, #856326
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Mon, 27 Feb 2017 07:58:01 +0000 (27 08:58 +0100)]
Update German translation of manual pages

Update to 2841t1f.

5 years agoUpdate German scripts translation
Helge Kreutzmann [Mon, 27 Feb 2017 07:41:40 +0000 (27 08:41 +0100)]
Update German scripts translation

Update to 589t.

5 years agolibdpkg: Use snprintf() instead of sprintf()
Guillem Jover [Wed, 22 Feb 2017 21:46:56 +0000 (22 22:46 +0100)]
libdpkg: Use snprintf() instead of sprintf()

The field width in a format string does not limit the number of bytes
emitted, so we can overflow, even if we are checking the number of bytes
written. Use snprintf() to limit the amount written.

Warned-by: gcc-7
5 years agodpkg: Add a comment on any switch case that falls through
Guillem Jover [Wed, 22 Feb 2017 21:44:29 +0000 (22 22:44 +0100)]
dpkg: Add a comment on any switch case that falls through

Warned-by: gcc-7
5 years agodselect: Do not depend on cxxabi.h to have declared __cxa_pure_virtual
Jörg Sonnenberger [Wed, 15 Feb 2017 02:42:40 +0000 (15 03:42 +0100)]
dselect: Do not depend on cxxabi.h to have declared __cxa_pure_virtual

The C++ ABI specifies that these functions are within the “__cxxabiv1”
namespace, and that “abi” is an alias to be used by userland. But in
this case as we are replacing the implementation we should also use the
same canonical namespace.

Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agos-s-d: Define _KMEMUSER for NetBSD
Guillem Jover [Sat, 11 Feb 2017 21:40:20 +0000 (11 22:40 +0100)]
s-s-d: Define _KMEMUSER for NetBSD

We need to define this macro to be able to get the declarations for the
struct proc and other struct kproc_info members.

5 years agos-s-d: Use correct struct kinfo_proc ruid submember on NetBSD
Guillem Jover [Sat, 11 Feb 2017 21:39:56 +0000 (11 22:39 +0100)]
s-s-d: Use correct struct kinfo_proc ruid submember on NetBSD

5 years agos-s-d: Use 5-argument kvm_getprocs() call form on OpenBSD
Guillem Jover [Sat, 11 Feb 2017 21:37:52 +0000 (11 22:37 +0100)]
s-s-d: Use 5-argument kvm_getprocs() call form on OpenBSD

5 years agos-s-d: Rename err to ret as the former is a function on BSDs
Guillem Jover [Sat, 11 Feb 2017 19:03:20 +0000 (11 20:03 +0100)]
s-s-d: Rename err to ret as the former is a function on BSDs

Do not shadow the global err() with a local variable.

5 years agotest: Use the detected perl interpreter instead of a random one from PATH
Guillem Jover [Sat, 11 Feb 2017 19:01:14 +0000 (11 20:01 +0100)]
test: Use the detected perl interpreter instead of a random one from PATH

We check for a specific version of perl and store that in the PERL
variable. But the shebangs on several test scripts hardcode a specific
perl that might not be present or might not be recent enough. Always
invoke perl scripts explicitly with PERL, or implicitly by letting the
currently running interpreter use itself.

5 years agobuild: Do not fail on missing compression libraries or headers on check mode
Guillem Jover [Sat, 18 Feb 2017 19:31:49 +0000 (18 20:31 +0100)]
build: Do not fail on missing compression libraries or headers on check mode

This is supposed to be the automatic detection mode, so we should cope
gracefully with any of these being missing.

Regression introduced in commit a166517a6d2f095c96b9661e8f2519470576a513.

5 years agobuild: Handle libmd implementations built into system libc
Guillem Jover [Mon, 13 Feb 2017 05:00:50 +0000 (13 06:00 +0100)]
build: Handle libmd implementations built into system libc

As found on some BSD systems.

5 years agobuild: Check <sys/proc.h> by also including <sys/param.h>
Guillem Jover [Sat, 11 Feb 2017 18:58:09 +0000 (11 19:58 +0100)]
build: Check <sys/proc.h> by also including <sys/param.h>

On several BSD systems the header is not self-contained and requires
<sys/param.h> to compile, add the pre-requisite so that the check
succeeds there.

5 years agolibcompat: Do not redeclare sys_siglist when the system does so
Thomas Klausner [Sat, 11 Feb 2017 18:55:16 +0000 (11 19:55 +0100)]
libcompat: Do not redeclare sys_siglist when the system does so

This can cause issues if the declaration is not exactly the same, and
declaring it when the system already does is bogus no matter what.

Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agoDpkg::Vendor::Debian: Switch PIE handling to have no default (!)
Guillem Jover [Tue, 7 Feb 2017 14:47:23 +0000 (7 15:47 +0100)]
Dpkg::Vendor::Debian: Switch PIE handling to have no default (!)

Delegate the setting to gcc builtin or an explicit request by a user.
This is needed to cope with the general PIE brokenness situation in
Debian, and the current specific brokenness of a Debian gcc patch
mangling the dpkg build flags.

This is wrong in so many levels, as we'll have discrepancies between
architectures, the interface towards maintainers is inconsistent, and
updating the PIE support needs touching and coordinating two places. But
it's certainly the current lesser evil.

Closes: #848129, #845550

5 years agoDpkg::Vendor::Debian: Mark more architectures as having gcc builtin PIE
Guillem Jover [Tue, 7 Feb 2017 00:51:12 +0000 (7 01:51 +0100)]
Dpkg::Vendor::Debian: Mark more architectures as having gcc builtin PIE

Specifically kfreebsd-amd64, kfreebsd-i386, sparc and sparc64.

5 years agoDpkg::Source::Package: Add ‘.mnt-ignore’ to the default ignore lists
Nicolas Boulenguez [Sat, 18 Feb 2017 14:18:54 +0000 (18 15:18 +0100)]
Dpkg::Source::Package: Add ‘.mnt-ignore’ to the default ignore lists

Closes: #855450
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agoDpkg::Shlibs::Objdump: Do not parse bogus ELF binaries in get_format()
Guillem Jover [Sun, 12 Feb 2017 00:31:25 +0000 (12 01:31 +0100)]
Dpkg::Shlibs::Objdump: Do not parse bogus ELF binaries in get_format()

If the ELF class or endianness are unknown or bogus, ignore the file.

Reported-by: Niels Thykier <niels@thykier.net>
5 years agoDpkg::Shlibs::Objdump:Object: Warn for unknown exec formats in analyze()
Guillem Jover [Wed, 8 Feb 2017 05:08:03 +0000 (8 06:08 +0100)]
Dpkg::Shlibs::Objdump:Object: Warn for unknown exec formats in analyze()

Emit an explicit warning whenever we cannot detect the format for
an executable object, instead of delegating this to the subsequent
objdump, and letting it die, which ca be canfusing and is not
future-proof.

Closes: #854536

5 years agoDpkg::Shlibs::Objdump: Fix read() error handling in get_format()
Guillem Jover [Wed, 8 Feb 2017 05:08:03 +0000 (8 06:08 +0100)]
Dpkg::Shlibs::Objdump: Fix read() error handling in get_format()

The rest of the code handles non-binary files (ELF in this case)
gracefully and ignores them, even though not very explicitly, as
objdump will emit a warning that might be difficult to decrypt.

We will still fail for other read failures that are not just
short-reads, as those imply some actual problem with the passed files.

Closes: #854536

5 years agoDpkg::Shlibs::Objdump: Do not special case EM_SPARC32PLUS for NetBSD
Guillem Jover [Wed, 8 Feb 2017 04:04:34 +0000 (8 05:04 +0100)]
Dpkg::Shlibs::Objdump: Do not special case EM_SPARC32PLUS for NetBSD

The affected code in NetBSD was bogus, and has been removed now. So
there is no point in trying to special case the EM_SPARC32PLUS ELF
machine ID depending on the ELF class, for something that should never
happen.

Ref: https//gnats.netbsd.org/51925

5 years agodpkg-genbuildinfo: Declare .buildinfo format as stable with version 1.0
Guillem Jover [Sun, 19 Feb 2017 15:37:20 +0000 (19 16:37 +0100)]
dpkg-genbuildinfo: Declare .buildinfo format as stable with version 1.0

All the currently planned changes have been done, let's bump the format
version to denote a stable format, which will not change in incomatible
changes any more without bumping the major version component.

5 years agodpkg-genbuildinfo: Handle unmatched virtual arch-qualified packages
Guillem Jover [Mon, 6 Feb 2017 02:12:37 +0000 (6 03:12 +0100)]
dpkg-genbuildinfo: Handle unmatched virtual arch-qualified packages

The dependency traversal code is currently broken, and this mostly
papers over the issue. Properly fixing this involves changes all over
the place, which would be too intrusive for this series.

We should handle this gracefully, instead of letting perl die.

Closes: #849944

5 years agodpkg-buildpackage: Document --ignore-builtin-builddeps in --help output
Guillem Jover [Sun, 26 Feb 2017 18:33:32 +0000 (26 19:33 +0100)]
dpkg-buildpackage: Document --ignore-builtin-builddeps in --help output

Missed in commit 98b3341f5f46866208862ff40e4336ff1a7e1cd3.

5 years agodpkg-source: Document --before-build and --after-build in --help output
Guillem Jover [Mon, 13 Feb 2017 04:23:02 +0000 (13 05:23 +0100)]
dpkg-source: Document --before-build and --after-build in --help output

5 years agoman: Clarify the requirements for deb-conffile(5) pathnames
Guillem Jover [Sun, 19 Feb 2017 19:47:33 +0000 (19 20:47 +0100)]
man: Clarify the requirements for deb-conffile(5) pathnames

Closes: #854417
Proposed-by: Dieter Adriaenssens <dieter.adriaenssens@gmail.com>
5 years agoMinor fix
Helge Kreutzmann [Wed, 8 Feb 2017 20:54:20 +0000 (8 21:54 +0100)]
Minor fix

Noted by looking at lintian warning

5 years agoBump version to 1.18.23
Guillem Jover [Wed, 1 Feb 2017 05:28:43 +0000 (1 06:28 +0100)]
Bump version to 1.18.23

5 years agoRelease 1.18.221.18.22
Guillem Jover [Wed, 1 Feb 2017 04:51:06 +0000 (1 05:51 +0100)]
Release 1.18.22

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Wed, 1 Feb 2017 04:48:49 +0000 (1 05:48 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agoDpkg::Shlibs::Objdump: Mask ABI bits in flags for ARM
Guillem Jover [Wed, 1 Feb 2017 04:21:26 +0000 (1 05:21 +0100)]
Dpkg::Shlibs::Objdump: Mask ABI bits in flags for ARM

These are too unreliable for exact matches. There are objects with
EABIv4 in the wild, even when the current is EABIv5. The soft and
hard float flags are not always set on armel and armhf respectively,
although the Tag_ABI_VFP_args attribute in the the ARM attribute
section should always be present on armhf. And there are cases were
both soft and hard float flags are set at the same time(!).

Mask all flags on ARM, so that we get back to the previous behavior
with objdump. We can try to revisit this for a better matching during
the dpkg 1.19.x cycle.

Closes: #853793

5 years agolibdpkg: Turn status file parser errors on field blank lines into warnings
Guillem Jover [Mon, 30 Jan 2017 00:04:31 +0000 (30 01:04 +0100)]
libdpkg: Turn status file parser errors on field blank lines into warnings

Regression introduced in commit e4cb12a710457b103a7544c4de5e9fc1b2bd24d8.

This has caused issues at least on Cydia installations. And it should
have been introduced as a lax parsing error, only failing for new
packages, and warn on already installed ones. Otherwise one cannot
easily recover after upgrading to a new dpkg on an affected system.

Reported-by: Jay Freeman <saurik@saurik.com>
Stable-Candidate: 1.17.x

5 years agopo: Update Turkish programs translations
Mert Dirik [Wed, 1 Feb 2017 04:30:52 +0000 (1 05:30 +0100)]
po: Update Turkish programs translations

Closes: #853202
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agoUpdate German scripts translation
Helge Kreutzmann [Mon, 30 Jan 2017 18:46:04 +0000 (30 19:46 +0100)]
Update German scripts translation

Update to 588t.

5 years agoBump version to 1.18.22
Guillem Jover [Sun, 29 Jan 2017 20:09:15 +0000 (29 21:09 +0100)]
Bump version to 1.18.22

5 years agoRelease 1.18.211.18.21
Guillem Jover [Sun, 29 Jan 2017 19:30:05 +0000 (29 20:30 +0100)]
Release 1.18.21

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Sun, 29 Jan 2017 19:43:52 +0000 (29 20:43 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agoRevert "dpkg-source: Generate Testsuite-Restrictions fields from test restrictions"
Guillem Jover [Sun, 29 Jan 2017 19:28:15 +0000 (29 20:28 +0100)]
Revert "dpkg-source: Generate Testsuite-Restrictions fields from test restrictions"

This reverts commit 9899bdcf9bde76d969b124abf0a898fcbb202c70.

This change is contentious and should have been discussed more widely.
Given that this has been live only for a couple of days, the impact
should be minimal, but still something to take into account once and
if this gets reintroduced, in the same or different form and shape.

Closes: #852820

5 years agoDpkg::Shlibs::Objdump: Map alternative or old ELF machines to canonical ones
Guillem Jover [Sun, 29 Jan 2017 00:07:38 +0000 (29 01:07 +0100)]
Dpkg::Shlibs::Objdump: Map alternative or old ELF machines to canonical ones

Some ELF binaries contain alternative or old ELF machine types, which
should match with their canonical forms. Map those before encoding the
ABI.

We ignore some mappings for things that should certainly never appear
in current systems. Of note are EM_PPC_OLD (17) that conflicts with
EM_VPP550 (17), and EM_PJ_OLD (99) that conflicts with EM_SNP1K (99).

Warned-by: rebootstrap
5 years agoAdd missing markup to option
Helge Kreutzmann [Sat, 28 Jan 2017 10:00:17 +0000 (28 11:00 +0100)]
Add missing markup to option

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sat, 28 Jan 2017 09:47:59 +0000 (28 10:47 +0100)]
Update German translation of manual pages

Update to 2843t1f.

5 years agoBump version to 1.18.21
Guillem Jover [Sat, 28 Jan 2017 06:10:34 +0000 (28 07:10 +0100)]
Bump version to 1.18.21

5 years agoRelease 1.18.201.18.20
Guillem Jover [Sat, 28 Jan 2017 05:32:59 +0000 (28 06:32 +0100)]
Release 1.18.20