dpkg/guillem.git
4 years agodpkg-deb: Unset all environment variables for compressor processespu/execvpe
Guillem Jover [Wed, 9 Nov 2011 05:08:03 +0000 (9 06:08 +0100)]
dpkg-deb: Unset all environment variables for compressor processes

4 years agolibdpkg: Add new command_clear_envp() and allow passing environment
Guillem Jover [Wed, 9 Nov 2011 05:07:39 +0000 (9 06:07 +0100)]
libdpkg: Add new command_clear_envp() and allow passing environment

4 years agolibcompat: Simplify execvpe() implementation
Guillem Jover [Mon, 29 Jan 2018 01:37:18 +0000 (29 02:37 +0100)]
libcompat: Simplify execvpe() implementation

FIXME: this uses VLA...

4 years agolibcompat: Add new execvpe()
Guillem Jover [Wed, 9 Nov 2011 05:06:59 +0000 (9 06:06 +0100)]
libcompat: Add new execvpe()

4 years agospec/R³: Declare specification as recommendation, stable
Guillem Jover [Sun, 12 Nov 2017 02:08:49 +0000 (12 03:08 +0100)]
spec/R³: Declare specification as recommendation, stable

4 years agodpkg-buildpackage: Add new --rules-requires-root
Guillem Jover [Sat, 28 Oct 2017 10:56:42 +0000 (28 12:56 +0200)]
dpkg-buildpackage: Add new --rules-requires-root

This new option makes it possible to force falling back to the legacy
behavior of assuming that debian/rules files require root.

4 years agospec/R³: Add new DEB_RULES_REQUIRES_ROOT variable
Guillem Jover [Wed, 3 Jan 2018 01:20:20 +0000 (3 02:20 +0100)]
spec/R³: Add new DEB_RULES_REQUIRES_ROOT variable

This variable is set by the builder to notify debian/rules that it
supports this specification.

Wordsmithing-by: Niels Thykier <niels@thykier.net>
4 years agospec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment
Guillem Jover [Wed, 3 Jan 2018 00:59:17 +0000 (3 01:59 +0100)]
spec/R³: The DEB_GAIN_ROOT_CMD should preserve the environment

Proposed-by: Josh Triplett <josh@joshtriplett.org>
4 years agodpkg-buildpackage: Do not set DEB_GAIN_ROOT_CMD on <implementations-keywords>
Guillem Jover [Wed, 3 Jan 2018 00:57:30 +0000 (3 01:57 +0100)]
dpkg-buildpackage: Do not set DEB_GAIN_ROOT_CMD on <implementations-keywords>

The specification is clear on this, and we should not be setting this
variable when the values are different to "no" and "binary-targets".

4 years agospec/R³: Rename DPKG_GAIN_ROOT_CMD to DEB_GAIN_ROOT_CMD
Guillem Jover [Wed, 3 Jan 2018 00:54:51 +0000 (3 01:54 +0100)]
spec/R³: Rename DPKG_GAIN_ROOT_CMD to DEB_GAIN_ROOT_CMD

This variable should not be dpkg specific, as it is supposed to be set
by any builder driving the package build, and not just dpkg itself.

Introduce ephemereal backwards compatibility by mapping the old name to
the new one, even thught there are no known users.

4 years agodpkg-gensymbols: Print "error" instead of "warning" when these are fatal
Guillem Jover [Sun, 10 Dec 2017 12:36:11 +0000 (10 13:36 +0100)]
dpkg-gensymbols: Print "error" instead of "warning" when these are fatal

It's confusing to emit the compare problems as warnings when they cause
the program to exit with an error exit code.

Closes: #881488

4 years agoDpkg::Vendor::Debian: Mark hurd-i386 as having built-in PIE support
Guillem Jover [Sat, 13 Jan 2018 01:34:46 +0000 (13 02:34 +0100)]
Dpkg::Vendor::Debian: Mark hurd-i386 as having built-in PIE support

Requested-by: Samuel Thibault <sthibault@debian.org>
4 years agoarch: Add support for riscv64 CPU
Manuel A. Fernandez Montecelo [Mon, 15 Jan 2018 23:43:51 +0000 (16 00:43 +0100)]
arch: Add support for riscv64 CPU

[guillem@debian.org:
 - Update unit-tests. ]

Closes: #822914
Stable-Candidate: 1.18.x
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agoscripts: Reject negated values in Architecture field
Guillem Jover [Sun, 10 Dec 2017 11:07:42 +0000 (10 12:07 +0100)]
scripts: Reject negated values in Architecture field

Add new positive options argument to arch validators, as the Architecture
field should not accept negated architectures. We preserve the current
functions default behavior and add a new option to control whether to
reject negated architectures.

Fixes: commit d355b340f3a6cde7fc1cb5649d82fbebd3b97ea1
Stable-Candidate: 1.18.x

4 years agoscripts/mk: Add new buildtools variables
Guillem Jover [Tue, 5 Dec 2017 00:56:15 +0000 (5 01:56 +0100)]
scripts/mk: Add new buildtools variables

This adds support for AS, STRIP, OBJCOPY, OBJDUMP, NM, AR and RANLIB.

Prompted-by: Helmut Grohne <helmut@subdivi.de>
4 years agoDpkg::Shlibs::SymbolFile: Check that $state->{seen} exists instead of $state being...
Dmitry Shachnev [Sun, 3 Dec 2017 02:37:23 +0000 (3 03:37 +0100)]
Dpkg::Shlibs::SymbolFile: Check that $state->{seen} exists instead of $state being defined

Fixes: commit 0d2b3cee25b74dd3fd9ddc3a469b8b144368c963
Closes: #880166
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agotest: Infer automatically the unit test temp directory
Guillem Jover [Sun, 29 Oct 2017 17:40:54 +0000 (29 18:40 +0100)]
test: Infer automatically the unit test temp directory

Add new test_get_temp_path() function, and replace all hardcoded
settings of the temporary directory and its creation.

4 years agotest: Infer automatically the unit test data directory
Guillem Jover [Sun, 29 Oct 2017 17:40:54 +0000 (29 18:40 +0100)]
test: Infer automatically the unit test data directory

We can easily know the name of the calling unit test, and can thus infer
the pathname for the data directory, instead of having to duplicate the
name, and potentially ending with it being out of sync.

4 years agotest: Consider *.PL also to be perl files
Guillem Jover [Sun, 29 Oct 2017 17:18:39 +0000 (29 18:18 +0100)]
test: Consider *.PL also to be perl files

4 years agotest: Check POD in all perl scripts
Guillem Jover [Sun, 29 Oct 2017 17:17:07 +0000 (29 18:17 +0100)]
test: Check POD in all perl scripts

We should check POD syntax in any perl script that contains it, not just
within the Dpkg perl modules.

4 years agobuild: Set distribution tarball format to ustar
Guillem Jover [Sun, 29 Oct 2017 14:37:54 +0000 (29 15:37 +0100)]
build: Set distribution tarball format to ustar

Use it instead of the default v7 format.

4 years agodpkg-deb: Fix directory traversal with --raw-extract
Guillem Jover [Sat, 28 Oct 2017 01:27:46 +0000 (28 03:27 +0200)]
dpkg-deb: Fix directory traversal with --raw-extract

Guarantee that the DEBIAN pathname does not exist.

Closes: #879982
Reported-by: Jakub Wilk <jwilk@jwilk.net>
4 years agoDpkg::Changelog: Print versions for incorrect changelog range warnings
Paul Wise [Mon, 4 Dec 2017 07:12:50 +0000 (4 15:12 +0800)]
Dpkg::Changelog: Print versions for incorrect changelog range warnings

Within scripts operating on lots of different package changelogs,
this can help track down where these warnings come from.

Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agoDpkg::Vendor::Debian: Use proper use_feature key
Guillem Jover [Fri, 27 Oct 2017 20:06:58 +0000 (27 22:06 +0200)]
Dpkg::Vendor::Debian: Use proper use_feature key

We need to access the features within the feature area hash now. Missed
in a previous refactoring.

Fixes: commit 2125e8dd7388e2adb9b6c837f4832fe8f0f63b25
Reported-by: Mattia Rizzolo <mattia@debian.org> (on IRC)
Closes: #881051

4 years agolibdpkg: Include <sys/sysmacros.h> for makedev()
Guillem Jover [Sat, 13 Jan 2018 01:35:24 +0000 (13 02:35 +0100)]
libdpkg: Include <sys/sysmacros.h> for makedev()

The glibc implementation provides this macro in <sys/sysmacros.h> and
optionally the BSD variants in <sys/types.h>, although the latter are
being deprecated and emit a warning with newer glibc. Conditionally
include <sys/sysmacros.h> to prepare for the future removal from glibc.

4 years agopo: Update Dutch translations
Frans Spiesschaert [Sun, 3 Dec 2017 02:32:40 +0000 (3 03:32 +0100)]
po: Update Dutch translations

Closes: #881401, #881403
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Update Turkish programs translations
Mert Dirik [Tue, 16 Jan 2018 00:10:55 +0000 (16 01:10 +0100)]
po: Update Turkish programs translations

Closes: #886252
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Update Italian programs translation
Milo Casagrande [Sun, 3 Dec 2017 02:25:06 +0000 (3 03:25 +0100)]
po: Update Italian programs translation

Closes: #883085
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Fix Spanish translation
Guillem Jover [Mon, 20 Nov 2017 14:32:32 +0000 (20 15:32 +0100)]
po: Fix Spanish translation

4 years agoUpdate Spanish translation
Javier Fernandez-Sanguino [Wed, 8 Nov 2017 00:06:25 +0000 (8 01:06 +0100)]
Update Spanish translation

4 years agoUpdate German translation of manual pages
Helge Kreutzmann [Fri, 3 Nov 2017 18:13:24 +0000 (3 19:13 +0100)]
Update German translation of manual pages

Update to 2910t1f.

4 years agoGerman dpkg translation update
Sven Joachim [Fri, 3 Nov 2017 16:10:59 +0000 (3 17:10 +0100)]
German dpkg translation update

Update to 1109t.

4 years agodebian: Bump Standards-Version to 4.1.1 (no changes needed)
Guillem Jover [Sun, 22 Oct 2017 22:58:21 +0000 (23 00:58 +0200)]
debian: Bump Standards-Version to 4.1.1 (no changes needed)

4 years agodebian: Add Breaks dgit << 3.13~ to libdpkg-perl
Guillem Jover [Sun, 22 Oct 2017 21:28:06 +0000 (22 23:28 +0200)]
debian: Add Breaks dgit << 3.13~ to libdpkg-perl

Older dgit versions assumed that Dpkg::Compression::Process was
available, via implicit import from Dpkg::Source::Package.

Reported-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
4 years agodebian: Add Breaks debhelper << 10.10.1~ to dpkg-dev
Guillem Jover [Sun, 22 Oct 2017 21:18:07 +0000 (22 23:18 +0200)]
debian: Add Breaks debhelper << 10.10.1~ to dpkg-dev

We want to make debhelper users that will use R³ support not having to
add a versioned Depends on the relevant dpkg-dev package.

4 years agodpkg-maintscript-helper: Add color support
Guillem Jover [Sun, 22 Oct 2017 15:29:10 +0000 (22 17:29 +0200)]
dpkg-maintscript-helper: Add color support

The initial color support only covered the C and perl programs, and
missed this shell script.

4 years agoman: Document DPKG_NLS environment variable for all programs using it
Guillem Jover [Sun, 22 Oct 2017 17:46:55 +0000 (22 19:46 +0200)]
man: Document DPKG_NLS environment variable for all programs using it

4 years agoman: Document DPKG_COLORS environment variable for all programs using it
Guillem Jover [Sun, 22 Oct 2017 16:51:30 +0000 (22 18:51 +0200)]
man: Document DPKG_COLORS environment variable for all programs using it

4 years agodoc: Fix typo in a date
Guillem Jover [Sun, 22 Oct 2017 15:28:57 +0000 (22 17:28 +0200)]
doc: Fix typo in a date

4 years agoUpdate German translation of manual pages
Helge Kreutzmann [Sun, 22 Oct 2017 05:01:20 +0000 (22 07:01 +0200)]
Update German translation of manual pages

Update to 2907t1f.

4 years agoDpkg::Source::Package::V1: Check that $tarname is defined before use
Christoph Biedl [Thu, 19 Oct 2017 23:29:48 +0000 (20 01:29 +0200)]
Dpkg::Source::Package::V1: Check that $tarname is defined before use

Closes: #879124
Warned-by: perl
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Remove obsolete FIXME comments in translations
Guillem Jover [Sat, 21 Oct 2017 11:21:45 +0000 (21 13:21 +0200)]
po: Remove obsolete FIXME comments in translations

These have been fixed in the original msgid.

4 years agoman: Add missing dot on the dpkg-buildflags «lfs» paragraph
Guillem Jover [Sat, 21 Oct 2017 11:21:00 +0000 (21 13:21 +0200)]
man: Add missing dot on the dpkg-buildflags «lfs» paragraph

Spotted-by: Helge Kreutzmann <debian@helgefjell.de>
4 years agodselect: Stop marking an untranslatable string as such
Guillem Jover [Sat, 21 Oct 2017 11:17:45 +0000 (21 13:17 +0200)]
dselect: Stop marking an untranslatable string as such

Spotted-by: Santiago Vila <sanvila@debian.org>
4 years agodpkg-buildpackage: Setup and check rootcommand only if needed
Guillem Jover [Wed, 18 Oct 2017 23:39:14 +0000 (19 01:39 +0200)]
dpkg-buildpackage: Setup and check rootcommand only if needed

When building in R³ mode or when the user requested to run a rule as
root we should setup the rootcommand, otherwise we should ignore it.

Reported-by: Niels Thykier <niels@thykier.net>
4 years agodpkg-buildpackage: Run dpkg-source from the current directory
Guillem Jover [Wed, 18 Oct 2017 22:52:32 +0000 (19 00:52 +0200)]
dpkg-buildpackage: Run dpkg-source from the current directory

It used to be the case that dpkg-source did not support running from
the current directory. That got fixed in commit
a7f16be86689ee46f4b2e445e5f08a63f447cdeb. Which means we can simplify
the code.

4 years agodpkg-buildpackage: Pass the debian/control source stanza to R³ parser
Guillem Jover [Wed, 18 Oct 2017 22:51:54 +0000 (19 00:51 +0200)]
dpkg-buildpackage: Pass the debian/control source stanza to R³ parser

This meant the field was being ignored.

4 years agodebian: Disable R³ field until debhelper supports it
Guillem Jover [Wed, 18 Oct 2017 22:51:21 +0000 (19 00:51 +0200)]
debian: Disable R³ field until debhelper supports it

If we use a dpkg that fully supports the field, with a debhelper that
does not, this will produce broken builds. Disable for now, until such
debhelper has been released, and then we'll need to add some kind of
relationship to avoid the problem.

4 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 18 Oct 2017 18:49:41 +0000 (18 20:49 +0200)]
Update German translation of manual pages

Update to 2907t1f.

4 years agodoc: Update gettext minimal version in README
Guillem Jover [Tue, 17 Oct 2017 23:16:43 +0000 (18 01:16 +0200)]
doc: Update gettext minimal version in README

4 years agodpkg-buildpackage: Do not rehash .dsc file when signing binary-only builds
Guillem Jover [Tue, 17 Oct 2017 20:42:16 +0000 (17 22:42 +0200)]
dpkg-buildpackage: Do not rehash .dsc file when signing binary-only builds

Reported-by: Ximin Luo <infinity0@debian.org>
Stable-Candidate: 1.18.x

4 years agodpkg-buildpackage: Fix logic to decide whether to call the build targets
Guillem Jover [Tue, 17 Oct 2017 19:20:53 +0000 (17 21:20 +0200)]
dpkg-buildpackage: Fix logic to decide whether to call the build targets

The build targets never require root, so checking them will always return
false. We need to key on the binary target instead.

This broke tons of packages that are violating Debian policy MUSTs.

Thanks-to: James Clarke <jrtc27@debian.org>
Closes: #878899

4 years agodebian: Add Breaks to libdpkg-perl against pkg-kde-tools
Guillem Jover [Tue, 17 Oct 2017 19:59:17 +0000 (17 21:59 +0200)]
debian: Add Breaks to libdpkg-perl against pkg-kde-tools

That package is using private modules with no API guarantees, and broke
due to recent changes in 1.19.0.

Closes: #878919

4 years agoUpdate German translation of manual pages
Helge Kreutzmann [Tue, 17 Oct 2017 20:01:09 +0000 (17 22:01 +0200)]
Update German translation of manual pages

Update to 2890t12f6u.

4 years agoUpdate German scripts translation
Helge Kreutzmann [Tue, 17 Oct 2017 19:29:59 +0000 (17 21:29 +0200)]
Update German scripts translation

Update to 599t.

4 years agobuild: Cleanup the correct polkit file
Guillem Jover [Tue, 17 Oct 2017 02:58:15 +0000 (17 04:58 +0200)]
build: Cleanup the correct polkit file

Fixes: commit 5757ab6142a3785389bd2cd6375f103a1f626240

4 years agodebian: Install update-alternatives policykit-1 file
Guillem Jover [Tue, 17 Oct 2017 02:43:38 +0000 (17 04:43 +0200)]
debian: Install update-alternatives policykit-1 file

4 years agoscripts/t: Skip Dpkg::OpenPGP test if gpg is not present
Guillem Jover [Tue, 17 Oct 2017 02:07:19 +0000 (17 04:07 +0200)]
scripts/t: Skip Dpkg::OpenPGP test if gpg is not present

4 years agoBump version to 1.19.1
Guillem Jover [Tue, 17 Oct 2017 01:10:58 +0000 (17 03:10 +0200)]
Bump version to 1.19.1

4 years agoRelease 1.19.01.19.0
Guillem Jover [Mon, 16 Oct 2017 23:53:35 +0000 (17 01:53 +0200)]
Release 1.19.0

4 years agopo: Regenerate .pot files and merge .po files with them
Guillem Jover [Tue, 17 Oct 2017 00:09:25 +0000 (17 02:09 +0200)]
po: Regenerate .pot files and merge .po files with them

4 years agopo: Update Portuguese programs translations
Miguel Figueiredo [Mon, 16 Oct 2017 23:09:20 +0000 (17 01:09 +0200)]
po: Update Portuguese programs translations

Closes: #868800
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Fix errors in Simplified Chinese programs translation
Boyuan Yang [Sat, 7 Oct 2017 12:14:19 +0000 (7 20:14 +0800)]
po: Fix errors in Simplified Chinese programs translation

* The word "build" should be translated as "构建" instead of
  "编译", which means "compilation".
* The word "alphanumeric" should be translated as "字母数字的"
  instead of "字母的", which means "alphabetic".

Closes: #877929
Reviewed-by: Zhou Mo <cdluminate@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
4 years agopo: Add Catalan translations for policykit file
Guillem Jover [Mon, 16 Oct 2017 08:30:06 +0000 (16 10:30 +0200)]
po: Add Catalan translations for policykit file

4 years agou-a: Add new policykit file
Guillem Jover [Sun, 20 Aug 2017 00:14:36 +0000 (20 02:14 +0200)]
u-a: Add new policykit file

This makes it possible to use the pkexec tool to execute u-a from GUI
programs.

We need to bump the gettext build-dependency to at least 0.19.7 which is
the first version introducing ITS support and GETTEXTDATADIR variable
support (GETTEXTDATADIRS support was added in 0.19.8).

Proposed-by: Boyuan Yang <073plan@gmail.com>
4 years agodpkg-deb: Fix capitalization of Debian in output messages
Guillem Jover [Sun, 22 Jan 2017 19:09:24 +0000 (22 20:09 +0100)]
dpkg-deb: Fix capitalization of Debian in output messages

Here Debian refers to the distribution and in English this needs to be
capitalized. No translation will be unfuzzed, as the capitalization
rules change among locales.

Warned-by: spellintian
4 years agoDpkg::Getopt: Do not normalize args past a passthrough stop word
Guillem Jover [Sat, 16 Sep 2017 11:43:52 +0000 (16 13:43 +0200)]
Dpkg::Getopt: Do not normalize args past a passthrough stop word

Some commands pass some arguments through to another command, and those
must not be normalized as that might break their invocation.

Reported-by: Helmut Grohne <helmut@subdivi.de>
Stable-Candidate: 1.17.x 1.18.x

4 years agoDpkg::Deps: Do not unnecessarily require setting the host_arch
Guillem Jover [Sun, 9 Apr 2017 01:17:26 +0000 (9 03:17 +0200)]
Dpkg::Deps: Do not unnecessarily require setting the host_arch

If we are not reducing the architectures, or we are not going to use the
known facts, we do not need to know and set the host architecture, which
relies on gcc being present.

Closes: #856396

4 years agoDpkg::Arch: Do not emit a perl warning if gcc or dpkg is not found
Guillem Jover [Sun, 9 Apr 2017 01:16:40 +0000 (9 03:16 +0200)]
Dpkg::Arch: Do not emit a perl warning if gcc or dpkg is not found

We are emitting options or errors elsewhere.

4 years agodpkg: Print the package name on maintainter script errors
Guillem Jover [Mon, 9 Oct 2017 06:15:25 +0000 (9 08:15 +0200)]
dpkg: Print the package name on maintainter script errors

When processing an archive or a package, we can call maintainer script
for other packages. Not printing the package name for the script that
failed means we can get very confusing output.

Closes: #877521

4 years agoDpkg::ErrorHandling: Unify subprocess errors with the ones from libdpkg
Guillem Jover [Mon, 16 Oct 2017 22:46:38 +0000 (17 00:46 +0200)]
Dpkg::ErrorHandling: Unify subprocess errors with the ones from libdpkg

4 years agolibdpkg: Clarify subprocess error message by shuffling it around
Guillem Jover [Mon, 16 Oct 2017 19:37:42 +0000 (16 21:37 +0200)]
libdpkg: Clarify subprocess error message by shuffling it around

For command-names the current message was more or less fine. But for
command descriptions the message made little sense.

4 years agodebian: Add git and bzr to Suggests for libdpkg-perl
Guillem Jover [Fri, 6 Oct 2017 01:35:40 +0000 (6 03:35 +0200)]
debian: Add git and bzr to Suggests for libdpkg-perl

The Dpkg::Source::Package::V3 source formats can use them.

Closes: #877688

4 years agoDpkg::Source::Package: Call source format prerequisites method if present
Guillem Jover [Sat, 7 Oct 2017 01:41:55 +0000 (7 03:41 +0200)]
Dpkg::Source::Package: Call source format prerequisites method if present

We want to be able to check for prerequisites when loading the source
format module. That function used to be called import, which is a
misnomer here, and was not being invoked.

Rename it to the more appropriate prerequisites() and call it if it's
present from the module loading code.

Addresses: #877688

4 years agoDpkg::Source::Package::V3: Use find_command() instead of ad-hoc code
Guillem Jover [Fri, 6 Oct 2017 07:39:07 +0000 (6 09:39 +0200)]
Dpkg::Source::Package::V3: Use find_command() instead of ad-hoc code

4 years agoDpkg::Source::Package: Auto-convert binary signatures to OpenPGP ASCII Armor
Guillem Jover [Sun, 20 Aug 2017 00:22:16 +0000 (20 02:22 +0200)]
Dpkg::Source::Package: Auto-convert binary signatures to OpenPGP ASCII Armor

When we are building a source package, if we find a binary signature in
the form of a .sig file, we should try to auto-convert it to the format
that we expect to include in the source package, which is an OpenPGP
ASCII Armor.

4 years agoDpkg::Control::HashCore: Optimize field/value parsing in parse()
Guillem Jover [Thu, 28 Sep 2017 07:28:24 +0000 (28 09:28 +0200)]
Dpkg::Control::HashCore: Optimize field/value parsing in parse()

We switch from a capturing regex to split() plus a checking regex.

4 years agoDpkg::Control::HashCore: Optimize first character matching in parse()
Guillem Jover [Thu, 28 Sep 2017 07:28:24 +0000 (28 09:28 +0200)]
Dpkg::Control::HashCore: Optimize first character matching in parse()

We store the first character in a variable.

4 years agoDpkg::Control::HashCore: Optimize trailing space trimming in parse()
Guillem Jover [Thu, 28 Sep 2017 00:52:12 +0000 (28 02:52 +0200)]
Dpkg::Control::HashCore: Optimize trailing space trimming in parse()

We should only apply the "costly" substitution when there is at least
one whitespace.

4 years agoDpkg::Control::HashCore: Optimize trailing space matching on parse()
Guillem Jover [Wed, 27 Sep 2017 00:10:07 +0000 (27 02:10 +0200)]
Dpkg::Control::HashCore: Optimize trailing space matching on parse()

We remove the trailing space after the chomp, so that we cover the
common case of a single \n with chomp, and do not need to check for
trailing spaces more than once while parsing.

We preserve the chomp'ed string to be used for the Armor Header checks,
which have a different set of allowed whitespace, than what \s covers.

4 years agoDpkg::Control::HashCore: Expect stanza delimiters more often than Armor Headers
Guillem Jover [Tue, 26 Sep 2017 23:59:22 +0000 (27 01:59 +0200)]
Dpkg::Control::HashCore: Expect stanza delimiters more often than Armor Headers

Usually we will just have Armor Headers at the beginning and end of the
data, so it's more common to find stanza delimiter lines. Optimize for
that.

4 years agoDpkg::Control::HashCore: Do not use an intermediate variable in STORE method
Guillem Jover [Tue, 26 Sep 2017 03:09:43 +0000 (26 05:09 +0200)]
Dpkg::Control::HashCore: Do not use an intermediate variable in STORE method

4 years agodpkg-deb: Make --uniform-compression the new default behavior
Guillem Jover [Tue, 26 Sep 2017 01:32:42 +0000 (26 03:32 +0200)]
dpkg-deb: Make --uniform-compression the new default behavior

Add support for negating the option via --no-uniform-compression.

4 years agot-func: Use UTC0 when setting TZ
Guillem Jover [Tue, 26 Sep 2017 00:38:25 +0000 (26 02:38 +0200)]
t-func: Use UTC0 when setting TZ

4 years agoscripts/mk: Add new buildtools.mk support
Guillem Jover [Mon, 2 Mar 2015 22:56:08 +0000 (2 23:56 +0100)]
scripts/mk: Add new buildtools.mk support

This make fragment contains setup for build tool variables for both TOOL
and TOOL_FOR_BUILD. It does not get included by default from default.mk

4 years agodpkg-buildflags: Add support for new future feature area
Guillem Jover [Mon, 18 Sep 2017 01:02:58 +0000 (18 03:02 +0200)]
dpkg-buildflags: Add support for new future feature area

This new area includes an lfs feature, to be used instead of the
getconf(1) interfaces which cannot support cross-building.

4 years agoDpkg::Arch: Add new debarch_to_cpubits() function
Guillem Jover [Mon, 25 Sep 2017 01:14:51 +0000 (25 03:14 +0200)]
Dpkg::Arch: Add new debarch_to_cpubits() function

4 years agoscripts: Rename debarch_to_cpuattrs() to debarch_to_abiattrs()
Guillem Jover [Mon, 25 Sep 2017 01:09:15 +0000 (25 03:09 +0200)]
scripts: Rename debarch_to_cpuattrs() to debarch_to_abiattrs()

4 years agoDpkg::Vendor::Debian: Merge build flag methods into a single private method
Guillem Jover [Sun, 17 Sep 2017 22:54:25 +0000 (18 00:54 +0200)]
Dpkg::Vendor::Debian: Merge build flag methods into a single private method

This reduces code redundancy, and makes it possible to reuse common code
for various feature areas.

4 years agoscripts: Add support for source package Description and substvars
Guillem Jover [Sun, 9 Apr 2017 13:44:41 +0000 (9 15:44 +0200)]
scripts: Add support for source package Description and substvars

We support a new source package Description field in debian/control
that will be copied into the .dsc file. The field will also be used
to initialize the new source:Synopsis and source:Extended-Description
substvars that will be available when generating the DEBIAN/control
and .changes files.

Closes: #555743

4 years agodpkg-genchanges: Honor substvars in Description field
Guillem Jover [Sun, 9 Apr 2017 02:15:11 +0000 (9 04:15 +0200)]
dpkg-genchanges: Honor substvars in Description field

This field can have substvars applied in the binary package, so it is a
safe replacement compared to all other output fields. More so with the
newly introduced S:<source-field> style automatic substvars.

Closes: #856547

4 years agoDpkg::Vendor::Debian: Mark powerpc as having builtin PIE
Guillem Jover [Wed, 12 Jul 2017 00:14:18 +0000 (12 02:14 +0200)]
Dpkg::Vendor::Debian: Mark powerpc as having builtin PIE

4 years agodpkg-genbuildinfo: Add support for new Build-Kernel-Version field
Guillem Jover [Sun, 10 Sep 2017 14:18:15 +0000 (10 16:18 +0200)]
dpkg-genbuildinfo: Add support for new Build-Kernel-Version field

Packages intended to be built in a generic way must never rely on the
currently running kernel on the build system (an exception could be an
optimization rebuild using the current system as the reference baseline).

But to be able to detect when a package might not be reproducible due to
varying kernel information it is still useful to be able to record this
information. Although that information can be very sensitive.

When the builder has explicitly enabled the Build-Kernel-Version field
with the new dpkg-genbuildinfo --always-include-kernel option, it will
get included in the generated .buildinfo file.

Closes: #873937

4 years agodselect: Remove traces of non-US support from methods
Guillem Jover [Tue, 28 Feb 2017 14:01:21 +0000 (28 15:01 +0100)]
dselect: Remove traces of non-US support from methods

This has been obsoleted long ago.

4 years agodselect: Remove long obsolete floppy method
Guillem Jover [Tue, 28 Feb 2017 03:50:54 +0000 (28 04:50 +0100)]
dselect: Remove long obsolete floppy method

4 years agoUpdate German translation of manual pages
Helge Kreutzmann [Mon, 25 Sep 2017 19:14:26 +0000 (25 21:14 +0200)]
Update German translation of manual pages

Update to 2892t1f.

4 years agoUpdate German scripts translation
Helge Kreutzmann [Mon, 25 Sep 2017 17:04:21 +0000 (25 19:04 +0200)]
Update German scripts translation

Update to 594t.

4 years agoGerman dpkg translation update
Sven Joachim [Sun, 24 Sep 2017 20:02:31 +0000 (24 22:02 +0200)]
German dpkg translation update

Update to 1105t.

4 years agodebian: Add support for DPKG_ROOT in dpkg maintainer scripts
Guillem Jover [Sun, 24 Sep 2017 19:00:06 +0000 (24 21:00 +0200)]
debian: Add support for DPKG_ROOT in dpkg maintainer scripts

4 years agodebian: Remove alternative logs when purging dpkg (!?)
Guillem Jover [Sun, 24 Sep 2017 18:57:22 +0000 (24 20:57 +0200)]
debian: Remove alternative logs when purging dpkg (!?)