po: Update French translations

Closes: #767918, #767934
Signed-off-by: Guillem Jover <guillem@debian.org>
po: Update Simplified Chinese translation

Closes: #770280
Signed-off-by: Guillem Jover <guillem@debian.org>
po: Add new Simplified Chinese man pages translation

[guillem@debian.org:
 - Add build infrastructure. ]

Closes: #767573
Signed-off-by: Guillem Jover <guillem@debian.org>
man: Add when dpkg-deb --ctrl-tarfile got introduced

Missed in commit 03c0873bd720a4f93db0cc4764fa98d3dbcadede.
man: Bump minimal version for dir_to_symlink and symlink_to_dir commands

The minimal version for dir_to_symlink with all current features is
1.17.13, and for symlink_to_dir is 1.17.14. But to make it simpler,
let's just say the latter. This also avoids unnecessary translator
work.

Missed in commits 7fe9dcdd57c083180a7994957d1e5217d28e970a and
a92a3ac5056363e9c21c48187f6ff965481742f4.

Closes: #769843
debian: Reintroduce u-a, dpkg-divert and dpkg-statoverride compat symlinks

There are still packages using those paths, but the relevant lintian
check did not list any, so these got removed prematurely.
debian: Add Breaks on man-db, fontconfig and readahead-fedora

The old versions of these packages produced trigger cycles as they
were using awaiting trigger directives.

Closes: #768599
libdpkg: Escape package and architecture on control file parsing warning

The package and architecture names are injected into a variable that is
used as a format string. Because these are user controlled, we need to
format-escape them so that they become inert.

Regression introduced in commmit 3be2cf607868adb9a2c0e5af06f20168a072eeb6.

Fixes: CVE-2014-8625
Closes: #768485
Reporteb-by: Joshua Rogers <megamansec@gmail.com>
libdpkg: Do not match partial field names in control files

There is currently no instance of any misspelled field names known to
dpkg in Debian. Only known field names are possibly affected.

Regression introduced in commit 864e230e90de1cef94c81f10582e6d99717d593b.

Closes: #769119
libdpkg: Fix fd_allocate_size() function to build on Mac OS X

Add missing semicolons to fcntl() call, and rename fs_preallocate_setup()
call sites to fd_preallocate_setup() on Mac OS X codepath.

Regression introduced in commit 87b0b20b86407baf1deb4e91b3fd839e01228ac8.

Reported-by: Dominyk Tiller <dominyktiller@gmail.com>
libdpkg, dpkg: Normalize tar entry uid and gid only in dpkg unpack

The tar extractor should be independent from the current system, so that
testing it can be made reproducible.

Move the preference over the system user and group names to the actual
dpkg unpack code.

Regression introduced in commit f71e02c8e913884bfbf9d97b58ded4591b823cdb.

Closes: #769211
dpkg: Restore multiple processing checks for packages and archives

The notices about duplicate entries not being processed got suppressed
when the requeueing insertion protection got enabled. Add a new variable
to track when packages or archives have been processed more than once.

Regression introduced in commit ce27f5dc0c3dc6ed7656d09784ea461407765d7d.
dpkg: Fail on trigger processing when it is required to progress

Trigger processing is sometimes required and sometimes opportunistic.
When trying to make progress on the packages queue, we need to consider
it an error if the dependencies cannot be satisfied in this run. But if
we are running the deferred trigger processing, then we should not fail,
as that's just opportunistic.

Closes: #768852
dpkg: Do not ignore trigger cycles for direct dependencies

These are just normal trigger cycles, and as such should not be special
cased. And a strict reading of the triggers spec does not allow them
either. It might make sense to allow self-cycles, but avoiding cycles
from direct dependencies does not make much sense.
libdpkg: Register all pending triggers for deferred processing

Trigger processing on the deferred stage is just opportunistic, but
we enqueue all currently pending triggers that might have been
activated on a previous unpack run, only when being called as
«dpkg --configure pkgname…».

This is a mostly conformant workaround for frontends like apt that do
not correctly call «dpkg --configure -a» or «dpkg --triggers-only -a»
after their normal runs, and leave packages in triggers-pending and
triggers-awaited states.

Closes: #766758
Regenerate .pot files and merge .po files with them