dpkg/guillem.git
5 years agodpkg-buildpackage: Add new --sign-optionpu/dpkg-buildpackage-signcommand
Guillem Jover [Sun, 4 Dec 2016 22:55:53 +0000 (4 23:55 +0100)]
dpkg-buildpackage: Add new --sign-option

This should allow to pass things such as debrsign or debsign as
--sign-command instead of gpg/gpg2.

FIXME: how do we specify our userid/keyid to those commands?

5 years agodpkg-maintscript-helper: Validate versions in all commands
Guillem Jover [Sun, 18 Dec 2016 11:23:16 +0000 (18 12:23 +0100)]
dpkg-maintscript-helper: Validate versions in all commands

The symlink_to_dir and dir_to_symlink commands were not validating the
versions, be consistent.

5 years agodpkg-maintscript-helper: Handle empty versions as they are optional arguments
Guillem Jover [Sun, 18 Dec 2016 11:23:04 +0000 (18 12:23 +0100)]
dpkg-maintscript-helper: Handle empty versions as they are optional arguments

Regression introduced in commit b51bc4ff0cd540b82e131470053eeed1c3d2f026.

Closes: #848422

5 years agoman: Clarify that dpkg-buildpackage -T does not run dpkg-source --before-build
Guillem Jover [Sat, 17 Dec 2016 15:46:25 +0000 (17 16:46 +0100)]
man: Clarify that dpkg-buildpackage -T does not run dpkg-source --before-build

Closes: #649531

5 years agodebian: Do not insert a perl:Depends for libdpkg-perl
Guillem Jover [Fri, 16 Dec 2016 21:39:25 +0000 (16 22:39 +0100)]
debian: Do not insert a perl:Depends for libdpkg-perl

Because tying the modules to a specific interpreter is wrong.

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sat, 17 Dec 2016 16:08:08 +0000 (17 17:08 +0100)]
Update German translation of manual pages

Update to 2828t1f.

5 years agoFix typo
Helge Kreutzmann [Sat, 17 Dec 2016 15:42:57 +0000 (17 16:42 +0100)]
Fix typo

5 years agoUpdate German scripts translation
Helge Kreutzmann [Sat, 17 Dec 2016 15:39:07 +0000 (17 16:39 +0100)]
Update German scripts translation

Update to 586t.

5 years agodebian: Fix bug closure
Guillem Jover [Sat, 17 Dec 2016 01:48:28 +0000 (17 02:48 +0100)]
debian: Fix bug closure

5 years agoBump version to 1.18.17
Guillem Jover [Sat, 17 Dec 2016 01:42:11 +0000 (17 02:42 +0100)]
Bump version to 1.18.17

5 years agoRelease 1.18.161.18.16
Guillem Jover [Fri, 16 Dec 2016 23:26:04 +0000 (17 00:26 +0100)]
Release 1.18.16

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Fri, 16 Dec 2016 23:38:50 +0000 (17 00:38 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agopo: Update Dutch translations
Frans Spiesschaert [Fri, 16 Dec 2016 23:19:23 +0000 (17 00:19 +0100)]
po: Update Dutch translations

Closes: #848378, #848379
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agopo: Update Simplified Chinese programs translation
Zhou Mo [Fri, 9 Dec 2016 10:58:02 +0000 (9 11:58 +0100)]
po: Update Simplified Chinese programs translation

Closes: #844955
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agopo: Correct spelling mistake in Swedish translation
Martin Bagge [Tue, 6 Dec 2016 15:22:50 +0000 (6 16:22 +0100)]
po: Correct spelling mistake in Swedish translation

Closes: #847220
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agolibdpkg: Add virtual source:Upstream-Version field
Guillem Jover [Fri, 9 Dec 2016 09:36:57 +0000 (9 10:36 +0100)]
libdpkg: Add virtual source:Upstream-Version field

Closes: #844348

5 years agolibdpkg: Add a new source version accessor
Guillem Jover [Fri, 9 Dec 2016 08:10:28 +0000 (9 09:10 +0100)]
libdpkg: Add a new source version accessor

5 years agolibdpkg: Refactor varbuf_add_source_version() out from virt_source_version()
Guillem Jover [Sun, 9 Nov 2014 00:14:07 +0000 (9 01:14 +0100)]
libdpkg: Refactor varbuf_add_source_version() out from virt_source_version()

5 years agodpkg: Allow readlink(2) returning a size smaller than stat(2)
Guillem Jover [Sun, 4 Dec 2016 21:58:45 +0000 (4 22:58 +0100)]
dpkg: Allow readlink(2) returning a size smaller than stat(2)

Some bogus filesystems do not return the actual symlink size in st_size,
which contradicts POSIX. But allowing the case where the returned size
is smaller than the one used to allocate memory is harmless, although
suspect. Let it through, but still print a warning so that users can
install stuff but are reminded they need to get a fixed filesystem in
place.

This has affected at least ecryptfs in the past and now file-based
encryption support in ext4 on Android N.

Reported-by: Jay Freeman <saurik@saurik.com>
5 years agodpkg-maintscript-helper: Use the new --validate-version command
Guillem Jover [Sun, 4 Dec 2016 21:52:42 +0000 (4 22:52 +0100)]
dpkg-maintscript-helper: Use the new --validate-version command

Do not abuse the --compare-versions command to perform version
validation, use the new --validate-version command expressly added
now to perform such task. Because the latter returns appropriate exit
codes, does not print messages in debug mode and is the correct
interface to use.

Closes: #844701

5 years agodpkg: Add new --validate-<thing> commands
Guillem Jover [Sun, 4 Dec 2016 21:51:24 +0000 (4 22:51 +0100)]
dpkg: Add new --validate-<thing> commands

These commands make it possible to test if several of those <thing>s
have a valid syntax. The current list of supported things is «pkgname»,
«trigname», «archname» and «version».

5 years agolibdpkg: Decrease xz encoder threads to not exceed memory limits
Guillem Jover [Sun, 4 Dec 2016 01:35:27 +0000 (4 02:35 +0100)]
libdpkg: Decrease xz encoder threads to not exceed memory limits

Automatically decrease xz encoder threads to try to not exceed available
memory limits. This should alleviated the insane requirements of memory
needed on 32-bit architectures with many cores, which results in more
than the userspace addressable memory, when using settings such as
-z9 and/or -Sextreme in dpkg-deb.

Closes: #846564

5 years agolibdpkg: Use lzma_cputhreads() instead of sysconf(_SC_NPROCESSORS_ONLN)
Guillem Jover [Sun, 4 Dec 2016 01:35:27 +0000 (4 02:35 +0100)]
libdpkg: Use lzma_cputhreads() instead of sysconf(_SC_NPROCESSORS_ONLN)

The former is way more portable than the latter.

5 years agolibdpkg, Dpkg::Version: Reject empty upstream versions
Guillem Jover [Thu, 24 Nov 2016 01:16:15 +0000 (24 02:16 +0100)]
libdpkg, Dpkg::Version: Reject empty upstream versions

These are not permitted by deb-version(5), but the code was letting
those through.

5 years agodpkg: Fix typo in code comment
Guillem Jover [Sun, 27 Nov 2016 18:08:21 +0000 (27 19:08 +0100)]
dpkg: Fix typo in code comment

5 years agodpkg-buildpackage: Add support for multiple targets on -T
Guillem Jover [Fri, 25 Nov 2016 02:09:43 +0000 (25 03:09 +0100)]
dpkg-buildpackage: Add support for multiple targets on -T

This makes it possible to run several desired targets in a single run,
which avoids the overhead of the rest of the steps run. It also makes
it possible to test if packages can be built twice in a row.

Closes: #671074

5 years agoDpkg::Build::Info: Whitelist other DPKG_ namespaced variables
Guillem Jover [Tue, 29 Nov 2016 01:26:11 +0000 (29 02:26 +0100)]
Dpkg::Build::Info: Whitelist other DPKG_ namespaced variables

5 years agobuild: Honor DPKG_DATADIR again in the installed Dpkg modules
Guillem Jover [Sun, 4 Dec 2016 21:55:15 +0000 (4 22:55 +0100)]
build: Honor DPKG_DATADIR again in the installed Dpkg modules

This was an explicit public interface, documented in the man page. It
is also the only way to cleanly override the architecture tables,
which might be needed in certain circumstances. Partially revert the
commit c3a9a82fcf58df34077638cdbfd7bb752624629e, but preserve the code
simplification.

5 years agobuild: Enable compression libs also in automatic check mode
Guillem Jover [Sun, 4 Dec 2016 17:14:20 +0000 (4 18:14 +0100)]
build: Enable compression libs also in automatic check mode

The code setting the compression macros when found was only acting when
explicitly enabling the compression libraries.

5 years agoman: Update dpkg-parsechangelog parser options
Guillem Jover [Thu, 15 Dec 2016 22:14:54 +0000 (15 23:14 +0100)]
man: Update dpkg-parsechangelog parser options

This got missed in commit d1629d0ec1b2619a1f2bd6839f975335e9cb6484.

The options specific to the changelog parser program did not get updated
when the parser got switched to be a perl module.

Closes: #848189

5 years agoman: Fix bogus description of --force-confmiss
Guillem Jover [Sun, 4 Dec 2016 03:52:47 +0000 (4 04:52 +0100)]
man: Fix bogus description of --force-confmiss

This force option is the only one that performs its action independently
of the conffile changing or not in the new package. The description was
bogusly updated when trying to clarify the other conf force options.

Regression introduced in commit 4bcc6b8e0a587b432b145fafa642674607cddddd.

Reported-by: Sven Joachim <svenjoac@gmx.de>
Closes: #846395

5 years agoman: Document DPKG_GENSYMBOLS_CHECK_LEVEL in dpkg-gensymbols(1)
Guillem Jover [Tue, 29 Nov 2016 01:25:11 +0000 (29 02:25 +0100)]
man: Document DPKG_GENSYMBOLS_CHECK_LEVEL in dpkg-gensymbols(1)

5 years agoman: Document the working directory when running dpkg-buildpackage hooks
Guillem Jover [Sun, 27 Nov 2016 03:53:01 +0000 (27 04:53 +0100)]
man: Document the working directory when running dpkg-buildpackage hooks

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 16 Nov 2016 18:00:45 +0000 (16 19:00 +0100)]
Update German translation of manual pages

Update to 2820t1f.

5 years agoUpdate German scripts translation
Helge Kreutzmann [Wed, 16 Nov 2016 17:49:27 +0000 (16 18:49 +0100)]
Update German scripts translation

Update to 585t.

5 years agoBump version to 1.18.16
Guillem Jover [Wed, 16 Nov 2016 04:16:50 +0000 (16 05:16 +0100)]
Bump version to 1.18.16

5 years agoRelease 1.18.151.18.15
Guillem Jover [Wed, 16 Nov 2016 02:28:43 +0000 (16 03:28 +0100)]
Release 1.18.15

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Wed, 16 Nov 2016 02:47:38 +0000 (16 03:47 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agolibdpkg: Only preallocate disk size for files bigger than 16 KiB
Guillem Jover [Wed, 16 Nov 2016 02:00:07 +0000 (16 03:00 +0100)]
libdpkg: Only preallocate disk size for files bigger than 16 KiB

Preallocating for very small fails causes some filesystems to degrade
performance. Do so only for "big enough" files.

Closes: #824636

5 years agodpkg-buildpackage: Fallback to one job on unknown number of online processors
Guillem Jover [Mon, 14 Nov 2016 03:07:07 +0000 (14 04:07 +0100)]
dpkg-buildpackage: Fallback to one job on unknown number of online processors

On unsupported or exotic systems where we might be unable to retrieve
the number of online processors and have been requested to infer them
ourselves via the --jobs or --jobs-try “auto” argument, default to
serial execution instead of unlimited jobs, to be on the safe side.

Proposed-by: Simon McVittie <smcv@debian.org>
5 years agodpkg-genbuildinfo: Bump Format to version 0.2
Guillem Jover [Mon, 14 Nov 2016 00:19:09 +0000 (14 01:19 +0100)]
dpkg-genbuildinfo: Bump Format to version 0.2

5 years agodpkg-genbuildinfo: Use deterministic .buildinfo filenames
Guillem Jover [Mon, 14 Nov 2016 00:17:32 +0000 (14 01:17 +0100)]
dpkg-genbuildinfo: Use deterministic .buildinfo filenames

Using undeterministic filenames based on the buildinfo-id produces ugly
looking filenames, which get left behind when rebuilding the same source
multiple times as they vary by date.

There's really no great point in using unique filenames as they will end
up with different contents depending on the builder.

5 years agodpkg-genbuildinfo: Add Build-Date field
Guillem Jover [Sun, 13 Nov 2016 23:51:06 +0000 (14 00:51 +0100)]
dpkg-genbuildinfo: Add Build-Date field

This records the time the build happened. This might be useful when
there is a need to track down problems caused by external time-based
events not visible from inside the build system. Things like hardware,
software deployment or other such failures.

5 years agodpkg-genbuildinfo: On source builds add source to the Architecture field
Guillem Jover [Sun, 13 Nov 2016 23:35:51 +0000 (14 00:35 +0100)]
dpkg-genbuildinfo: On source builds add source to the Architecture field

5 years agoman: Escape dashes in field names in dpkg-buildinfo(1)
Guillem Jover [Sun, 13 Nov 2016 23:51:26 +0000 (14 00:51 +0100)]
man: Escape dashes in field names in dpkg-buildinfo(1)

5 years agoDpkg::Deps: Fix typo in croak()
Guillem Jover [Sun, 13 Nov 2016 17:57:51 +0000 (13 18:57 +0100)]
Dpkg::Deps: Fix typo in croak()

Spotted-by: James Clarke <jrtc27@jrtc27.com>
5 years agoDpkg::Deps: Validate architecture arguments in deps_parse()
Guillem Jover [Sun, 13 Nov 2016 16:54:59 +0000 (13 17:54 +0100)]
Dpkg::Deps: Validate architecture arguments in deps_parse()

This function only works with real and known Debian architectures. It
will not work with wildcards, nor the special architectures 'all' nor
'source'. Validate the arguments and croak early on to spot bogus usage.

Prompted-by: Johannes Schauer <josch@debian.org>
5 years agodata: Do not enable PIE when linking static programs
Guillem Jover [Sat, 12 Nov 2016 13:59:55 +0000 (12 14:59 +0100)]
data: Do not enable PIE when linking static programs

It seems like at least glibc does not support statically linked PIE
programs, and produces random junk. Disable globally for now, if
there's a desire to enable static PIE binaries, which is known to
work on some architectures (such as musl-based ones) we can add
specialized specs files in the future.

Closes: #843714
Proposed-by: Szabolcs Nagy <nsz@port70.net>
5 years agot: Mark partially documented POD modules as TODO
Guillem Jover [Fri, 11 Nov 2016 03:23:23 +0000 (11 04:23 +0100)]
t: Mark partially documented POD modules as TODO

This makes sure we will not forget to get them out of the ignore list
once they get documented.

5 years agoDpkg::Vendor::Debian: Use a hash instead of a long regex
Guillem Jover [Fri, 11 Nov 2016 03:22:52 +0000 (11 04:22 +0100)]
Dpkg::Vendor::Debian: Use a hash instead of a long regex

Addresses RegularExpressions::RequireExtendedFormatting.

Warned-by: perlcritic
5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Fri, 11 Nov 2016 20:54:21 +0000 (11 21:54 +0100)]
Update German translation of manual pages

Update to 2823t1f.

5 years agoBump version to 1.18.15
Guillem Jover [Fri, 11 Nov 2016 02:40:57 +0000 (11 03:40 +0100)]
Bump version to 1.18.15

5 years agoRelease 1.18.141.18.14
Guillem Jover [Fri, 11 Nov 2016 01:26:15 +0000 (11 02:26 +0100)]
Release 1.18.14

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Fri, 11 Nov 2016 01:45:27 +0000 (11 02:45 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agodebian: List public Dpkg::Control::Tests module in libdpkg-perl description
Guillem Jover [Fri, 11 Nov 2016 01:54:53 +0000 (11 02:54 +0100)]
debian: List public Dpkg::Control::Tests module in libdpkg-perl description

5 years agoman: Clarify how to revert to the serial dpkg-buildpackage behavior
Guillem Jover [Fri, 11 Nov 2016 01:24:24 +0000 (11 02:24 +0100)]
man: Clarify how to revert to the serial dpkg-buildpackage behavior

Explicitly mention in dpkg-buildpackage(1) that setting the number
of parallel jobs to 1, restores the serial behavior.

Prompted-by: Thorsten Glaser <t.glaser@tarent.de>
5 years agoman: Improve the DEB_BUILD_OPTIONS description in dpkg-buildpackage(1)
Guillem Jover [Fri, 11 Nov 2016 00:43:33 +0000 (11 01:43 +0100)]
man: Improve the DEB_BUILD_OPTIONS description in dpkg-buildpackage(1)

Mention that this flag might also affect the beahavior of debian/rules,
and also mention the parallel option.

5 years agoDpkg::Build::Info: New module refactored from dpkg-genbuildinfo
Guillem Jover [Fri, 11 Nov 2016 00:32:37 +0000 (11 01:32 +0100)]
Dpkg::Build::Info: New module refactored from dpkg-genbuildinfo

This will allow other projects to use the same whitelist as dpkg does.

Requested-by: Johannes Schauer <josch@debian.org>
5 years agoDpkg::Changelog::Entry::Debian: Fix parse error message when date is on May
Nishanth Aravamudan [Thu, 10 Nov 2016 23:56:44 +0000 (11 00:56 +0100)]
Dpkg::Changelog::Entry::Debian: Fix parse error message when date is on May

When a broken date is on May the error message ended up being very
confusing as it mentioned that it was using a full instead of an
abbreviated month name, because for May both are the same.

Nest the conditionals to avoid this problem.

Closes: #843829
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agolibdpkg, scripts: Change default color behavior to auto
Guillem Jover [Thu, 10 Nov 2016 23:39:52 +0000 (11 00:39 +0100)]
libdpkg, scripts: Change default color behavior to auto

Our test run with the setting activated by apt, has not shown any signs
of pitch forks nor angry mobs. Let's switch this by default to auto, so
that the more clear but still hopefully unobtrusive colors can help
people deal with interesting messages, warnings or error conditions.

5 years agodpkg: Fix use after free issue on error summary
Guillem Jover [Thu, 10 Nov 2016 15:42:13 +0000 (10 16:42 +0100)]
dpkg: Fix use after free issue on error summary

We are releasing the dpkg database now after running the commands, which
means that the postponed error reporting summary was trying to print
messages that had already been freed from the database memory pool.

Duplicate the passed strings so that we are impervious to the database
life-cycle.

Regression introduced in commit 3404fd24ef8020b4d6dc17adb82d7e6c035d90dc.

Closes: #843874

5 years agodata: Improve PIE handling
Guillem Jover [Thu, 10 Nov 2016 03:55:02 +0000 (10 04:55 +0100)]
data: Improve PIE handling

- Rename the spec name cc1_options to self_spec.
- Do not set PIE options if they have been negated, and do not reset
  them if they have been requested.

Closes: #843791, #843826

5 years agoFix missing markup
Helge Kreutzmann [Wed, 9 Nov 2016 19:21:25 +0000 (9 20:21 +0100)]
Fix missing markup

5 years agobuild: Change DPKG_BUILD_RELEASE_DATE to use perl instead of date(1)
Guillem Jover [Wed, 9 Nov 2016 00:28:07 +0000 (9 01:28 +0100)]
build: Change DPKG_BUILD_RELEASE_DATE to use perl instead of date(1)

As the former is more portable, and we were using GNUisms.

5 years agobuild: Fix DPKG_BUILD_RELEASE_DATE to require DPKG_PROG_PERL
Guillem Jover [Wed, 9 Nov 2016 00:26:48 +0000 (9 01:26 +0100)]
build: Fix DPKG_BUILD_RELEASE_DATE to require DPKG_PROG_PERL

It uses perl.

5 years agobuild: Do not enable compression libraries if the headers are not usable
Guillem Jover [Tue, 8 Nov 2016 02:01:04 +0000 (8 03:01 +0100)]
build: Do not enable compression libraries if the headers are not usable

5 years agobuild: Fix inversion logic in libmd configure check when requested explicitly
Guillem Jover [Tue, 8 Nov 2016 02:01:04 +0000 (8 03:01 +0100)]
build: Fix inversion logic in libmd configure check when requested explicitly

5 years agotest: Do not fail on missing fakeroot just skip them
Guillem Jover [Tue, 8 Nov 2016 01:31:01 +0000 (8 02:31 +0100)]
test: Do not fail on missing fakeroot just skip them

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Mon, 7 Nov 2016 21:08:58 +0000 (7 22:08 +0100)]
Update German translation of manual pages

Update to 2822t1f.

5 years agoBump version to 1.18.14
Guillem Jover [Mon, 7 Nov 2016 03:16:56 +0000 (7 04:16 +0100)]
Bump version to 1.18.14

5 years agoRelease 1.18.131.18.13
Guillem Jover [Mon, 7 Nov 2016 02:28:47 +0000 (7 03:28 +0100)]
Release 1.18.13

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Mon, 7 Nov 2016 02:39:35 +0000 (7 03:39 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agoDpkg::Vendor::Debian: Improve PIE flags support
Guillem Jover [Wed, 10 Aug 2016 20:51:11 +0000 (10 22:51 +0200)]
Dpkg::Vendor::Debian: Improve PIE flags support

Fix changelog for dpkg 1.18.11 to mention PIE got enabled by default for
all architectures, not just the ones where gcc does that itself.

When emitting PIE flags on architectures where gcc does not inject those
itself, do it via a specs file too, so that maintainers can use them
unconditionally regardless of the object being compiled or linked.

When injecting -no-pie for linking via gcc specs also inject -fno-PIE.

Update the documentation to make the current situation more clear.

5 years agobuild: Use deterministic dates for generated man pages
Reiner Herrmann [Sun, 6 Nov 2016 22:46:12 +0000 (6 23:46 +0100)]
build: Use deterministic dates for generated man pages

Pin the timezone to UTC so that the computed dates are deterministic
and produce deterministic generated man pages.

Closes: #843469
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agodebian: Ship deb-src-files(5) man page in dpkg-dev
Guillem Jover [Mon, 7 Nov 2016 01:55:22 +0000 (7 02:55 +0100)]
debian: Ship deb-src-files(5) man page in dpkg-dev

Missed in commit 10264ea2e5dc7b5df31bffae6fd644638d89ee15.

5 years agodebian: Add missing Breaks on old libdpkg-perl to dpkg
Sven Joachim [Sun, 6 Nov 2016 17:31:44 +0000 (6 18:31 +0100)]
debian: Add missing Breaks on old libdpkg-perl to dpkg

Commit 9d7ba99cc3ff84fc553ed39da9d2e4f4008d35b6 renamed the
triplettable file to tupletable and added the necessary dpkg
dependency to libdpkg-perl, but did not forbid the other now broken
combination of old libdpkg-perl and new dpkg.

Closes: #843429
Signed-off-by: Guillem Jover <guillem@debian.org>
5 years agodebian: Add bug closure for Dpkg::Dist:Files load_dir bug
Guillem Jover [Mon, 7 Nov 2016 01:59:21 +0000 (7 02:59 +0100)]
debian: Add bug closure for Dpkg::Dist:Files load_dir bug

Closes: #843436

5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 6 Nov 2016 08:01:55 +0000 (6 09:01 +0100)]
Update German translation of manual pages

Update to 2822t1f.

5 years agoUnify translation between man pages and scripts
Helge Kreutzmann [Sun, 6 Nov 2016 07:40:47 +0000 (6 08:40 +0100)]
Unify translation between man pages and scripts

5 years agoDpkg::Dist::Files: Do not try to load non-files in load_dir method
Guillem Jover [Sun, 6 Nov 2016 06:42:11 +0000 (6 07:42 +0100)]
Dpkg::Dist::Files: Do not try to load non-files in load_dir method

Non-Linux systems allow to open directories, which return their
contents, this makes the load method fail with parsing errors. Make
the code only try to ever load regular files.

5 years agoBump version to 1.18.13
Guillem Jover [Sun, 6 Nov 2016 05:28:25 +0000 (6 06:28 +0100)]
Bump version to 1.18.13

5 years agoRelease 1.18.121.18.12
Guillem Jover [Sun, 6 Nov 2016 04:11:53 +0000 (6 05:11 +0100)]
Release 1.18.12

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Sun, 6 Nov 2016 05:07:07 +0000 (6 06:07 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agodoc: Add missing comma between optional and author
Guillem Jover [Sun, 6 Nov 2016 04:35:09 +0000 (6 05:35 +0100)]
doc: Add missing comma between optional and author

5 years agoman: Document environment variables used by source format modules
Guillem Jover [Sun, 6 Nov 2016 04:34:29 +0000 (6 05:34 +0100)]
man: Document environment variables used by source format modules

5 years agoman: Use %VERSION% in dpkg-statoverride(1) source item .TH macro
Guillem Jover [Sun, 6 Nov 2016 04:24:45 +0000 (6 05:24 +0100)]
man: Use %VERSION% in dpkg-statoverride(1) source item .TH macro

5 years agoman: Use "dpkg suite" as the manual item in .TH macro
Guillem Jover [Sun, 6 Nov 2016 04:23:20 +0000 (6 05:23 +0100)]
man: Use "dpkg suite" as the manual item in .TH macro

5 years agoman: Rename FILE FORMATS section to FILES
Guillem Jover [Sun, 6 Nov 2016 04:17:01 +0000 (6 05:17 +0100)]
man: Rename FILE FORMATS section to FILES

5 years agobuild: Set umask to 0022 for functional test suite
Guillem Jover [Sun, 6 Nov 2016 04:08:40 +0000 (6 05:08 +0100)]
build: Set umask to 0022 for functional test suite

5 years agoBump version to 1.18.12
Guillem Jover [Sun, 6 Nov 2016 04:03:54 +0000 (6 05:03 +0100)]
Bump version to 1.18.12

5 years agoRelease 1.18.111.18.11
Guillem Jover [Sun, 6 Nov 2016 02:09:08 +0000 (6 03:09 +0100)]
Release 1.18.11

5 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Sun, 6 Nov 2016 02:32:12 +0000 (6 03:32 +0100)]
po: Regenerate .pot files and merge .po files with them

5 years agobuild: Distribute missing test files
Guillem Jover [Sun, 6 Nov 2016 02:21:28 +0000 (6 03:21 +0100)]
build: Distribute missing test files

5 years agodebian: Add perl:Depends substvar to dpkg-dev package Depends
Guillem Jover [Sat, 5 Nov 2016 22:56:42 +0000 (5 23:56 +0100)]
debian: Add perl:Depends substvar to dpkg-dev package Depends

The scripts use modules not present in perl-base, so to be entirely
correct we require the perl package, even though it gets pulled anyway
by the libdpkg-perl package.

Warned-by: dpkg-gencontrol
5 years agoDpkg::Vendor::Debian: Handle PIE enabled by default in gcc
Guillem Jover [Thu, 20 Oct 2016 22:18:55 +0000 (21 00:18 +0200)]
Dpkg::Vendor::Debian: Handle PIE enabled by default in gcc

Add support for compiler built-in features, so that we do not set
them when enabled and set negated flags when disabled.

We use gcc spec files to set these flags so that we avoid any conflict
with other incompatible flags that would make the build fail.

Closes: #835149
Based-on-patch-by: Bálint Réczey <balint@balintreczey.hu>
5 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sat, 5 Nov 2016 19:57:36 +0000 (5 20:57 +0100)]
Update German translation of manual pages

Update to 2790t17f10u.

5 years agoUpdate German scripts translation
Helge Kreutzmann [Sat, 5 Nov 2016 17:10:07 +0000 (5 18:10 +0100)]
Update German scripts translation

Update to 586t.

5 years agoDpkg::Changelog: Cope gracefully with a missing trailer timestamp
Guillem Jover [Sat, 5 Nov 2016 18:55:42 +0000 (5 19:55 +0100)]
Dpkg::Changelog: Cope gracefully with a missing trailer timestamp

The get_timepiece methods might return an undef value if there was no
timestamp in the trailer. Do not call the Time::Piece epoch method in
that case, as that causes a perl error.

Regression introduced in commit ea22158eb8b0dcaf42b0cdacd5b4560764f353c8.

Closes: #843248
Based-on-patch-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
5 years agodpkg: Do not fail when removing non-existent files on read-only filesystems
Guillem Jover [Fri, 4 Nov 2016 04:28:26 +0000 (4 05:28 +0100)]
dpkg: Do not fail when removing non-existent files on read-only filesystems

Trying to rmdir(2) or unlink(2) a non-existent pathname on at least
Linux returns with EROFS. Handle this case specifically to check if
the pathname exists with access(2).

Closes: #838877

5 years agodpkg-buildpackage: Enable -Jauto by default
Guillem Jover [Fri, 4 Nov 2016 03:11:59 +0000 (4 04:11 +0100)]
dpkg-buildpackage: Enable -Jauto by default

The Debian build daemons have already been enabling parallel builds for
a some time now. This has the advantage that it should make the builds
faster, and that it gives similar conditions to local builders to the
ones on build daemon networks, helping to catch problems with parallel
build support in packages before the upload.

Closes: #842845
Suggested-by: Simon McVittie <smcv@debian.org>