dpkg/guillem.git
10 years agoRelease 1.16.51.16.5
Guillem Jover [Sat, 30 Jun 2012 02:29:08 +0000 (30 04:29 +0200)]
Release 1.16.5

10 years agoRegenerate .pot files and merge .po files with them
Guillem Jover [Sat, 30 Jun 2012 02:27:01 +0000 (30 04:27 +0200)]
Regenerate .pot files and merge .po files with them

10 years agoSwitch some words to their american spelling
Guillem Jover [Fri, 29 Jun 2012 09:16:16 +0000 (29 11:16 +0200)]
Switch some words to their american spelling

10 years agodpkg-query: Add an Architecture column to --list output
Guillem Jover [Thu, 28 Jun 2012 09:51:16 +0000 (28 11:51 +0200)]
dpkg-query: Add an Architecture column to --list output

Even if the output format is designed to be human readable, and for
machine parseable output «dpkg-query -W» should be used instead, there's
probably scripts in the wild parsing «dpkg-query -l». Thus, the new
column is inserted before the Description column which is unreliable
to parse anyway as its value will always contain spaces, which are the
column separators, and as such should be pretty safe.

The arch-qualified package names will still be printed, as that
allows to copy-and-paste package names as input to dpkg commands w/o
any possibility of ambiguity.

Closes: #673190

Suggested-by: Jonathan Nieder <jnieder@gmail.com>
10 years agodpkg-shlibdeps: Do not use undefined values returned from deps_parse()
Guillem Jover [Fri, 29 Jun 2012 07:25:33 +0000 (29 09:25 +0200)]
dpkg-shlibdeps: Do not use undefined values returned from deps_parse()

When there's a bogus Build-Depends field on the source control file,
and the binary package being built is using a shared library package
that has a Build-Depends-Package field in the symbols file, the
dpkg-shlibdeps code will try to use an undefined value as deps_parse()
failed but the error was not handled before. Instead, error out early.

Closes: #640676

Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoscripts: Accept “:native” arch-qualified Build-Dependencies
Thibaut Girka [Wed, 27 Jun 2012 23:35:13 +0000 (28 01:35 +0200)]
scripts: Accept “:native” arch-qualified Build-Dependencies

Closes: #558095

Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoAdd support for specific arch-qualified dependencies
Thibaut Girka [Wed, 27 Jun 2012 23:11:11 +0000 (28 01:11 +0200)]
Add support for specific arch-qualified dependencies

This allows to use dependencies with arch-qualified package names. For
example:

  Depends: libc6:amd64 (>= 2.14), libgcc1

Closes: #676232

Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoRecognize -? as an alias for --help in all commands
Guillem Jover [Tue, 22 May 2012 18:11:44 +0000 (22 20:11 +0200)]
Recognize -? as an alias for --help in all commands

10 years agodpkg-mergechangelogs: Unify --help output with other commands
Guillem Jover [Wed, 9 May 2012 02:12:47 +0000 (9 04:12 +0200)]
dpkg-mergechangelogs: Unify --help output with other commands

Print short options before long ones.

10 years agoAlign --version with --help on help output
Guillem Jover [Fri, 29 Jun 2012 17:39:07 +0000 (29 19:39 +0200)]
Align --version with --help on help output

10 years agoChange all programs to accept -? instead of -h for help output
Guillem Jover [Tue, 22 May 2012 18:02:12 +0000 (22 20:02 +0200)]
Change all programs to accept -? instead of -h for help output

This switch frees the -h option to be used in the distant future for
other purposes, it also uses a character that does not have any other
obvious meaning for help output, and which is pretty safe to be used
blindly by the user in the same way as --help.

10 years agoAvoid full stop and double newline at the end of errors and warnings
Jonathan Nieder [Fri, 20 Apr 2012 17:08:40 +0000 (20 19:08 +0200)]
Avoid full stop and double newline at the end of errors and warnings

Error messages like "couldn't parse control information from foo.deb"
are not full sentences, so don't punctuate them like one. The main
purpose of this patch is stylistic consistency, but perhaps it can
also make copy-and-paste from messages like

dpkg-query: no path found matching pattern /usr/bin/agrep.

a little easier.

Most actual full sentences should remain untouched. A few full sentences
are error messages at heart, so this patch converts those to lower-case
sentence fragment form, too.

[guillem@debian.org:
 - Add missed strings.
 - Minor tweaks to strings. ]

Closes: #624000

Requested-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoSwitch to new notice() output function
Guillem Jover [Fri, 20 Apr 2012 23:36:05 +0000 (21 01:36 +0200)]
Switch to new notice() output function

This switches all ad-hoc stderr printing for error notices to the
notice() function.

10 years agolibdpkg: Switch buffer I/O code to use struct dpkg_error
Guillem Jover [Tue, 10 May 2011 18:02:28 +0000 (10 20:02 +0200)]
libdpkg: Switch buffer I/O code to use struct dpkg_error

As a side effect this mkes the messages more clear as the caller has
more context to describe the error conditions.

Closes: #621763

10 years agolibdpkg: Change pkg_format_parse() to take a dpkg_error argument
Guillem Jover [Sat, 21 Apr 2012 00:14:30 +0000 (21 02:14 +0200)]
libdpkg: Change pkg_format_parse() to take a dpkg_error argument

This fixes two issues at once: the more detailed inner message is
relied back to the more general outter printer which allows a clearer
error message, and it makes the pkg-format module stop printing things
at all which is bad for a library,

10 years agodpkg-deb: Rename string variable from err to errstr
Guillem Jover [Tue, 26 Jun 2012 18:05:59 +0000 (26 20:05 +0200)]
dpkg-deb: Rename string variable from err to errstr

10 years agolibdpkg: Add new notice() output function
Guillem Jover [Fri, 20 Apr 2012 23:36:05 +0000 (21 01:36 +0200)]
libdpkg: Add new notice() output function

10 years agolibdpkg: Move warning functions to a new report module
Guillem Jover [Fri, 20 Apr 2012 17:35:22 +0000 (20 19:35 +0200)]
libdpkg: Move warning functions to a new report module

10 years agou-a: Print master and slave link names
Guillem Jover [Tue, 26 Jun 2012 12:28:36 +0000 (26 14:28 +0200)]
u-a: Print master and slave link names

Change --query output to print the master and slave link names. This
implies switching the Link field to print the alternative link instead
of the alternative name which was passed already as an argument. Add a
new Name field to print the alternative name.

Although, strictly speaking, this is an interface change, the previous
Link field value was wrong and not really useful, because it's already
known by the caller. A check of the whole archive does not reveal any
user of that field, so it seems pretty safe to do this change.

This also modifies the --config output when thre's a single alternative
to print the alternative link.

Closes: #679010

10 years agodpkg-query: Add new --control-list and --control-show commands
Guillem Jover [Fri, 22 Jun 2012 11:07:41 +0000 (22 13:07 +0200)]
dpkg-query: Add new --control-list and --control-show commands

These replace the now deprecated --control-path command, as these do
not rely on any specific database layout.

10 years agodpkg-query: Refactor pkg_infodb_check_filetype() from control_path()
Guillem Jover [Fri, 29 Jun 2012 18:24:09 +0000 (29 20:24 +0200)]
dpkg-query: Refactor pkg_infodb_check_filetype() from control_path()

10 years agodpkg-query: Refactor pkg_infodb_is_internal() from pkg_infodb_print_filename()
Guillem Jover [Fri, 29 Jun 2012 18:20:57 +0000 (29 20:20 +0200)]
dpkg-query: Refactor pkg_infodb_is_internal() from pkg_infodb_print_filename()

10 years agolibdpkg: Add new file_show() function
Guillem Jover [Fri, 22 Jun 2012 11:03:53 +0000 (22 13:03 +0200)]
libdpkg: Add new file_show() function

10 years agodpkg: Switch showdiff() to command_get_pager()
Guillem Jover [Fri, 29 Jun 2012 23:18:32 +0000 (30 01:18 +0200)]
dpkg: Switch showdiff() to command_get_pager()

10 years agolibdpkg: Add new command_get_pager() function
Guillem Jover [Fri, 22 Jun 2012 11:03:53 +0000 (22 13:03 +0200)]
libdpkg: Add new command_get_pager() function

10 years agolibdpkg: Detect ar header fields truncation
Guillem Jover [Mon, 25 Jun 2012 09:24:26 +0000 (25 11:24 +0200)]
libdpkg: Detect ar header fields truncation

Do not allow building archives with truncated fields which would not
correspond to the packed member information, either the name being too
long or the size being too large.

Closes: #678933

10 years agobuild: Switch source compression to xz
Guillem Jover [Sun, 17 Jun 2012 09:37:47 +0000 (17 11:37 +0200)]
build: Switch source compression to xz

10 years agos-s-d: Add new --no-close option to disable closing fds on --background
Guillem Jover [Sun, 17 Jun 2012 04:54:40 +0000 (17 06:54 +0200)]
s-s-d: Add new --no-close option to disable closing fds on --background

This enabled the caller to see process messages for debugging purposes,
or to be able to redirect file descriptors to log files, syslog or
similar.

Closes: #627333, #646425

10 years agodeb-src-control(5): Document Private- field prefix
Guillem Jover [Sat, 16 Jun 2012 03:34:49 +0000 (16 05:34 +0200)]
deb-src-control(5): Document Private- field prefix

This prefix avoids getting warnins from dpkg-deb for unknown fields, and
also avoids stomping over the global namespace so that no future
official field will be reused.

10 years agodeb(5): Document in more detail the supported ar archive format
Guillem Jover [Sat, 16 Jun 2012 03:25:19 +0000 (16 05:25 +0200)]
deb(5): Document in more detail the supported ar archive format

Reported-by: Niels Thykier <niels@thykier.net>
10 years agolibcompat: Add a dummy symbol to the empty module
Guillem Jover [Fri, 15 Jun 2012 15:37:18 +0000 (15 17:37 +0200)]
libcompat: Add a dummy symbol to the empty module

This avoids warnings on systems that do not like a completely empty
object file, or an empty output after the preprocessor has run.

10 years agoDpkg::Source::Package: Do not assume $ENV{'HOME'} is defined
Niels Thykier [Fri, 15 Jun 2012 15:11:54 +0000 (15 17:11 +0200)]
Dpkg::Source::Package: Do not assume $ENV{'HOME'} is defined

Closes: #677631

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agodpkg-source: Minimize source architecture list
Guillem Jover [Wed, 13 Jun 2012 13:16:22 +0000 (13 15:16 +0200)]
dpkg-source: Minimize source architecture list

Reduce the source architecture list by removing architectures covered
already by architecture wildcards.

Closes: #675333

10 years agoDpkg::Arch: Add new debarch_is_wildcard function
Guillem Jover [Wed, 13 Jun 2012 13:03:49 +0000 (13 15:03 +0200)]
Dpkg::Arch: Add new debarch_is_wildcard function

10 years agoAdd support for binary-only key-value option in changelogs
Guillem Jover [Wed, 13 Jun 2012 05:52:20 +0000 (13 07:52 +0200)]
Add support for binary-only key-value option in changelogs

This allows to mark changelog entries as being for a binary-only upload,
which implies there cannot be any source produced, and the binary
version is going to be different to the source version.

As such the version substvars will get different values, w/o needing to
hardcode a specific syntax. Although we fallback to the old syntax just
in case, for example to handle possible multiple consecutive binary-only
entries w/o needing to complicate the code too much.

Closes: #440094, #672723

10 years agoDpkg::Changelog::Entry::Debian: Correctly capitalize field names
Guillem Jover [Wed, 13 Jun 2012 05:49:35 +0000 (13 07:49 +0200)]
Dpkg::Changelog::Entry::Debian: Correctly capitalize field names

10 years agoDpkg::Control::Fields: Remove obsolete changelog fields
Guillem Jover [Wed, 13 Jun 2012 05:46:37 +0000 (13 07:46 +0200)]
Dpkg::Control::Fields: Remove obsolete changelog fields

These were made not visible as fields in commit
825656afe3e9856dc846c225df8af73d2376fa3e.

10 years agodpkg-buildflags: Add --status action to describe the flag settings
Bernhard R. Link [Thu, 15 Mar 2012 10:25:39 +0000 (15 11:25 +0100)]
dpkg-buildflags: Add --status action to describe the flag settings

It's hard to see from a build log file what values should have been
used and why. The new --status action added by this patch tries to
output all meaningful information in a way useful for human consumption
and for automatic log parsers.

[guillem@debian.org:
 - Mark dpkg-buildflags as bold in man page and escape dash.
 - Use report("status", string). ]

Closes: #664058

Signed-off-by: Bernhard R. Link <brlink@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agodpkg-buildflags: Coalesce --list and --dump option parsing
Bernhard R. Link [Sun, 17 Jun 2012 07:00:30 +0000 (17 09:00 +0200)]
dpkg-buildflags: Coalesce --list and --dump option parsing

Signed-off-by: Bernhard R. Link <brlink@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoDpkg::BuildFlags: Record environment variables modified by maintainer
Bernhard R. Link [Fri, 16 Mar 2012 10:05:17 +0000 (16 11:05 +0100)]
Dpkg::BuildFlags: Record environment variables modified by maintainer

As flags modified by DEB_*_MAINT_* are not reflected by its origin, add
a new flag to describe flags modified that way.

Signed-off-by: Bernhard R. Link <brlink@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoDpkg::BuildFlags: Record environment variables accessed or modified
Guillem Jover [Fri, 16 Mar 2012 09:23:38 +0000 (16 10:23 +0100)]
Dpkg::BuildFlags: Record environment variables accessed or modified

Record environment variables looked at by Dpkg::BuildFlags and the
vendor hooks and make them available via the new Dpkg::BuildEnv module.

Based-on-patch-by: Bernhard R. Link <brlink@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoDpkg::BuildEnv: New module to track build environment variables
Guillem Jover [Wed, 20 Jun 2012 02:20:26 +0000 (20 04:20 +0200)]
Dpkg::BuildEnv: New module to track build environment variables

10 years agoDpkg::BuildFlags: Add get_feature_areas()
Bernhard R. Link [Fri, 16 Mar 2012 08:56:52 +0000 (16 09:56 +0100)]
Dpkg::BuildFlags: Add get_feature_areas()

Add a way for a caller to enumerate all possible values of get_features().

Signed-off-by: Bernhard R. Link <brlink@debian.org>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agodpkg-source: support new option --no-unapply-patches
Raphaël Hertzog [Fri, 29 Jun 2012 15:15:10 +0000 (29 17:15 +0200)]
dpkg-source: support new option --no-unapply-patches

This option is supported by formats "2.0" and "3.0 (quilt)". It disables
the patch unapplication that can happen in the --after-build hook.

10 years agoExtract Dpkg::Source::Quilt out of Dpkg::Source::Package::V3::quilt
Raphaël Hertzog [Fri, 29 Jun 2012 13:24:28 +0000 (29 15:24 +0200)]
Extract Dpkg::Source::Quilt out of Dpkg::Source::Package::V3::quilt

This new Dpkg::Source::Quilt object handles all the traditional quilt
operations of applying/unapplying patches and the associated handling of
the quilt database (the .pc directory).

This commit should not introduce any user-visible changes.

10 years agoUpdate German translation of manual pages
Helge Kreutzmann [Thu, 28 Jun 2012 19:01:50 +0000 (28 21:01 +0200)]
Update German translation of manual pages

Update to 2097t.

10 years agoUpdate German translation of manual pages
Helge Kreutzmann [Wed, 27 Jun 2012 20:15:11 +0000 (27 22:15 +0200)]
Update German translation of manual pages

Update to 2055t37f4u.

10 years agoUpdate German scripts translation
Helge Kreutzmann [Wed, 27 Jun 2012 20:00:58 +0000 (27 22:00 +0200)]
Update German scripts translation

Update to 533t.

10 years agodpkg-source: enhance --commit to auto-whitelist modified binary files
Raphaël Hertzog [Wed, 27 Jun 2012 13:37:57 +0000 (27 15:37 +0200)]
dpkg-source: enhance --commit to auto-whitelist modified binary files

That way the same command can be used whatever kind of upstream files has
been modified.

Reported-by: Cyril Brulebois <kibi@debian.org>
10 years agoDpkg::Source::Package::V2: refactor the handling of binary files
Raphaël Hertzog [Wed, 27 Jun 2012 13:15:44 +0000 (27 15:15 +0200)]
Dpkg::Source::Package::V2: refactor the handling of binary files

Move the code handling debian/source/include-binaries in a dedicated
object.

10 years agoDpkg::Source::Functions::is_binary(): localize $_ to avoid side-effects
Raphaël Hertzog [Wed, 27 Jun 2012 13:06:34 +0000 (27 15:06 +0200)]
Dpkg::Source::Functions::is_binary(): localize $_ to avoid side-effects

Without this local($_) the function could modify the $_ variable as used
by the caller.

10 years agoDpkg::Source::Package: enable exit handlers for the commit operation
Raphaël Hertzog [Mon, 25 Jun 2012 19:52:32 +0000 (25 21:52 +0200)]
Dpkg::Source::Package: enable exit handlers for the commit operation

The commit function already uses various exit handlers to clean up in case
of failures. Unfortunately those handlers were never triggered because
there was no global eval intercepting the failures. This commit adds the
required logic.

10 years agoMerge branch 'sid' (through tag '1.16.4.3')
Guillem Jover [Sun, 17 Jun 2012 09:06:00 +0000 (17 11:06 +0200)]
Merge branch 'sid' (through tag '1.16.4.3')

Conflicts:
debian/changelog

10 years agoRelease 1.16.4.31.16.4.3
Guillem Jover [Sun, 17 Jun 2012 08:56:24 +0000 (17 10:56 +0200)]
Release 1.16.4.3

10 years agou-a: Only warn for now on out of range priorities on --install
Guillem Jover [Sun, 10 Jun 2012 21:17:40 +0000 (10 23:17 +0200)]
u-a: Only warn for now on out of range priorities on --install

There seems to be packages using priorities > INT_MAX, which although
bogus as they were previously overflowing the int used to store them,
that would cause installation failures when upgrading from squeeze.

Turn this into a warning for now and clamp the values, which will be
switched back to an error after wheezy, in dpkg 1.17.x.

Closes: #676874

10 years agolibdpkg: Add new clamp macro
Guillem Jover [Sun, 10 Jun 2012 20:34:07 +0000 (10 22:34 +0200)]
libdpkg: Add new clamp macro

10 years agodpkg-source: keep the current patch header when regenerating the automatic patch
Raphaël Hertzog [Wed, 13 Jun 2012 15:01:46 +0000 (13 17:01 +0200)]
dpkg-source: keep the current patch header when regenerating the automatic patch

When dpkg-source regenerates the automatic patch (with formats "2.0" or
"3.0 (quilt)") it will keep the current patch header to avoid losing
changes made by the maintainer.

Reported-by: Cyril Brulebois <kibi@debian.org>
10 years agoDpkg::Source::Patch: let analyze() extract the patch header too
Raphaël Hertzog [Wed, 13 Jun 2012 13:44:02 +0000 (13 15:44 +0200)]
Dpkg::Source::Patch: let analyze() extract the patch header too

10 years agodpkg-source: 3.0 (quilt): restore quilt backup files after a failed patch
Raphaël Hertzog [Tue, 12 Jun 2012 10:28:46 +0000 (12 12:28 +0200)]
dpkg-source: 3.0 (quilt): restore quilt backup files after a failed patch

dpkg-source will now clean up after a failed application of a quilt patch.

This required passing “--reject-file=-” to patch to avoid the creation
of *.rej files that would clutter the source package and intercepting
the failure to restore the files from .pc/$patch/.

dpkg-source will also display a message explaining the most likely cause
of failure (patch applying with fuzz).

Closes: #652970

10 years agoUpdate Swedish translation.
Peter Krefting [Tue, 12 Jun 2012 08:41:42 +0000 (12 09:41 +0100)]
Update Swedish translation.

po/sv.po: 1055t0f0u.
dselect/po/sv.po: 270t0f0u.
man/po/sv.po: 2076t0f0u.

10 years agoMerge branch 'sid' (through tag '1.16.4.2')
Guillem Jover [Sat, 9 Jun 2012 14:33:50 +0000 (9 16:33 +0200)]
Merge branch 'sid' (through tag '1.16.4.2')

Conflicts:
debian/changelog

10 years agoRelease 1.16.4.21.16.4.2
Guillem Jover [Sat, 9 Jun 2012 14:16:29 +0000 (9 16:16 +0200)]
Release 1.16.4.2

10 years agolibdpkg: Check correctly for out of range negative field width values
Guillem Jover [Sat, 9 Jun 2012 14:03:45 +0000 (9 16:03 +0200)]
libdpkg: Check correctly for out of range negative field width values

Use INT_MIN instead of INT_MAX when checking for negative out of range
values.

Regression introduced in commit 2bf4b48a9a6f7ddf854179b4b74013534e4594b9.

Closes: #676796

10 years agoMerge branch 'sid' (through tag '1.16.4.1')
Guillem Jover [Fri, 8 Jun 2012 22:13:14 +0000 (9 00:13 +0200)]
Merge branch 'sid' (through tag '1.16.4.1')

Conflicts:
debian/changelog

10 years agoRelease 1.16.4.11.16.4.1
Guillem Jover [Fri, 8 Jun 2012 21:17:20 +0000 (8 23:17 +0200)]
Release 1.16.4.1

10 years agolibdpkg: Fix explicit file trigger activation
Guillem Jover [Fri, 8 Jun 2012 21:05:45 +0000 (8 23:05 +0200)]
libdpkg: Fix explicit file trigger activation

The lex parser passes a pointer to a buffer with the text, and as such
if we just keep a copy of the pointer the contents will change over the
parsing process. Instead copy the contents on trk_file_activate_start(),
and use that copy later on.

Regression introduced in commit 4ce011f68f8e499882db638c065008ce4015cd38.

Closes: #676684

10 years agoFix typos in changelogs
Niels Thykier [Fri, 8 Jun 2012 08:53:57 +0000 (8 10:53 +0200)]
Fix typos in changelogs

Signed-off-by: Niels Thykier <niels@thykier.net>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoBump version to 1.16.5
Guillem Jover [Fri, 8 Jun 2012 07:39:57 +0000 (8 09:39 +0200)]
Bump version to 1.16.5

10 years agoRelease 1.16.41.16.4
Guillem Jover [Thu, 7 Jun 2012 21:46:32 +0000 (7 23:46 +0200)]
Release 1.16.4

10 years agoChangelog police
Guillem Jover [Thu, 7 Jun 2012 21:46:02 +0000 (7 23:46 +0200)]
Changelog police

Spotted-by: Helge Kreutzmann <debian@helgefjell.de>
10 years agodpkg-split: Allow overridding admindir from the environment
Guillem Jover [Thu, 7 Jun 2012 17:02:01 +0000 (7 19:02 +0200)]
dpkg-split: Allow overridding admindir from the environment

This allows to use the correct depotdir whenever dpkg is being called
with --admindir.

10 years agolibdpkg: Defer Multi-Arch field reset to pkg_blank()
Guillem Jover [Thu, 7 Jun 2012 16:35:12 +0000 (7 18:35 +0200)]
libdpkg: Defer Multi-Arch field reset to pkg_blank()

When removing a package pkgbin_blank() is called and an entry written
to the update log, which might make it unparseable if there's other
Multi-Arch instances present for that package.

Closes: #676496

10 years agodpkg: Activate all path components for file triggers
Guillem Jover [Thu, 7 Jun 2012 16:49:33 +0000 (7 18:49 +0200)]
dpkg: Activate all path components for file triggers

File triggers have been activated up to now explicitly whenever seen,
and only the requested pathname. While unpacking or removing, this is
not an issue as dpkg will traverse the hierarchy and trigger parent
directories during the process.

Because conffiles get a two staged installation, first unpacked into
<conffile>.dpkg-new and then installed in place on configure, a trigger
activated only after unpack will not see the <conffile> at its final
location or see it at all if it correctly ignores those file extensions.

This is an issue for conffiles or explicit dpkg-trigger file triggers,
as an interest on parent paths will not activate the trigger as those
parents are not traversed. With the subsequent cause of missed updates
because code has not been run on the actual installation of conffiles.

Closes: #675613, #676061, #676062, #676107, #676118, #676122

10 years agolibdpkg: Use trig_file_activate_byname() instead of ad-hoc code
Guillem Jover [Thu, 7 Jun 2012 16:49:33 +0000 (7 18:49 +0200)]
libdpkg: Use trig_file_activate_byname() instead of ad-hoc code

The trk_file functions were open coding this function, use it instead.

10 years agolibdpkg: Add liblzma compression support
Guillem Jover [Thu, 7 Jun 2012 08:55:59 +0000 (7 10:55 +0200)]
libdpkg: Add liblzma compression support

Use liblzma if available instead of external commands to handle .xz
and .lzma compressed files.

Among other things, this means the xz-utils package no longer has to
be part of the base system.

Based-on-patch-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agoscripts: Slice --help output strings
Guillem Jover [Thu, 7 Jun 2012 08:51:41 +0000 (7 10:51 +0200)]
scripts: Slice --help output strings

Use to opportunity that the strings have been modified in previous
commits to slice them, which should make translation a slightly more
manageable work in the future. It should also get identical strings
coalesced so that there's less to translate.

10 years agodpkg-gensymbols: Pack --help output
Guillem Jover [Wed, 9 May 2012 02:53:13 +0000 (9 04:53 +0200)]
dpkg-gensymbols: Pack --help output

Reduce the amount of vertical lines produced by the --help output.

10 years agodpkg-buildpackage: Improve, split and group --help output
Guillem Jover [Wed, 9 May 2012 02:43:11 +0000 (9 04:43 +0200)]
dpkg-buildpackage: Improve, split and group --help output

Improve some option descriptions and add missing ones, mark some
options as the default behaviour, group related options together,
and split pass-through options into separate sections.

10 years agodselect: On --help print action names from the menuentries table
Guillem Jover [Thu, 7 Jun 2012 08:31:28 +0000 (7 10:31 +0200)]
dselect: On --help print action names from the menuentries table

This unmarks those strings for translation, as they should not get
translated anyway, makes sure all actions will always be listed and
those will not get out of sync.

10 years agoscripts: Unify “<option>...” --help output
Guillem Jover [Wed, 9 May 2012 02:09:56 +0000 (9 04:09 +0200)]
scripts: Unify “<option>...” --help output

10 years agoscripts: Hyphenate option arguments
Guillem Jover [Thu, 7 Jun 2012 08:09:04 +0000 (7 10:09 +0200)]
scripts: Hyphenate option arguments

Missed in commit 36a5005fcaa9b69efb2e9b08c0efe0f88042c5b3.

10 years agoUpdate mailmap
Guillem Jover [Wed, 6 Jun 2012 02:39:45 +0000 (6 04:39 +0200)]
Update mailmap

10 years agobuild: Add new run-script to run local scripts
Guillem Jover [Wed, 6 Jun 2012 02:38:49 +0000 (6 04:38 +0200)]
build: Add new run-script to run local scripts

This sets up the environment to be able to run the local scripts using
local modules and data files.

10 years agou-a: Remove unreachable code at the end of alternative_select_choice()
Guillem Jover [Tue, 5 Jun 2012 05:49:49 +0000 (5 07:49 +0200)]
u-a: Remove unreachable code at the end of alternative_select_choice()

The function contains an infinite loop that does not break out.

10 years agodpkg: Add missing space before && operand
Guillem Jover [Tue, 5 Jun 2012 05:47:38 +0000 (5 07:47 +0200)]
dpkg: Add missing space before && operand

10 years agodpkg: Remove unneeded showdiff() forward declaration
Guillem Jover [Tue, 5 Jun 2012 05:47:07 +0000 (5 07:47 +0200)]
dpkg: Remove unneeded showdiff() forward declaration

10 years agodpkg-divert: Do not warn on missing db .list file for never installed packages
Guillem Jover [Tue, 5 Jun 2012 05:36:41 +0000 (5 07:36 +0200)]
dpkg-divert: Do not warn on missing db .list file for never installed packages

When the package has never been installed before, and the unpack has not
yet finished, the package will be present on the database but the files
list file will not, which would produce a bogus warning. Check if the
package has ever been configured, before printing the warning.

Closes: #673518

10 years agoDpkg::Control::Fields: Put an & before field_capitalize() calls
Guillem Jover [Tue, 5 Jun 2012 19:12:07 +0000 (5 21:12 +0200)]
Dpkg::Control::Fields: Put an & before field_capitalize() calls

The definition of the function appears later on, and perl 5.16 gives
warnings about usage before declaration.

Closes: #676262

10 years agoDpkg::File: Demote libfile-fcntllock-perl Depends to a Recommends
Guillem Jover [Tue, 5 Jun 2012 05:00:26 +0000 (5 07:00 +0200)]
Dpkg::File: Demote libfile-fcntllock-perl Depends to a Recommends

Fallback to use flock based locking, because libfile-fcntllock-perl
being an XS module makes building a new perl package bumping the perl
ABI impossible, as both packages become uninstallable.

Closes: #675947

Based-on-patch-by: Dominic Hargreaves <dom@earth.li>
10 years agoDpkg::File: Refactor file locking logic into this new module
Guillem Jover [Tue, 5 Jun 2012 04:44:30 +0000 (5 06:44 +0200)]
Dpkg::File: Refactor file locking logic into this new module

Move libfile-fcntllock-perl dependency from dpkg-dev to libdpkg-perl.

10 years agodpkg: Use enum dep_check values instead of literal strings
Guillem Jover [Sun, 27 May 2012 18:02:25 +0000 (27 20:02 +0200)]
dpkg: Use enum dep_check values instead of literal strings

10 years agos-s-d: Do not follow symlinks when creating pidfiles
Carsten Hey [Mon, 4 Jun 2012 07:27:01 +0000 (4 09:27 +0200)]
s-s-d: Do not follow symlinks when creating pidfiles

[guillem@debian.org:
 - Change mode to 0666. ]

Closes: #675918

Signed-off-by: Guillem Jover <guillem@debian.org>
10 years agolibcompat: Add compat symbol for O_NOFOLLOW
Guillem Jover [Tue, 5 Jun 2012 02:11:32 +0000 (5 04:11 +0200)]
libcompat: Add compat symbol for O_NOFOLLOW

This symbol was only standardized in POSIX.1-2008, which is too recent.
Although it has been available on at least FreeBSD and Linux systems
before that, but dpkg supports other systems which might not have it.

10 years agodpkg(1): Clarify valid filenames for dpkg.cfg.d/ fragment files
Guillem Jover [Tue, 5 Jun 2012 03:10:09 +0000 (5 05:10 +0200)]
dpkg(1): Clarify valid filenames for dpkg.cfg.d/ fragment files

This information is already present in dpkg.cfg(5), but it might not be
obvious one has to look there, so add it too to the main dpkg(1) where
that directory is referenced and a new entry in the FILES section.

Closes: #674674

10 years agodpkg(1): Clarify that the «dpkg -l» example only lists installed packages
Guillem Jover [Fri, 18 May 2012 02:24:12 +0000 (18 04:24 +0200)]
dpkg(1): Clarify that the «dpkg -l» example only lists installed packages

Also add a reference to «dpkg-query --load-avail» as a way to list
available packages.

Closes: #673305

10 years agodpkg-deb: Add support for “none” as a valid compression strategy value
Guillem Jover [Sat, 26 May 2012 23:52:42 +0000 (27 01:52 +0200)]
dpkg-deb: Add support for “none” as a valid compression strategy value

This is needed to be able to reset the compression strategy if one had
been specified before, otherwise a different compressor would error out
on compressor specific invalid values.

Closes: #674711

10 years agolibdpkg: Switch compression strategy code from strings to enums
Guillem Jover [Mon, 28 May 2012 17:03:08 +0000 (28 19:03 +0200)]
libdpkg: Switch compression strategy code from strings to enums

Make those values global, because they could be shared by different
compressors, because for validation purposes there's no point in making
them compressor specific as that's too late in case the compressor has
not been specified yet. And finally using enums instead of strings
allows to more easily handle the different strategy values.

10 years agolibdpkg: Add more test cases for version module
Guillem Jover [Mon, 28 May 2012 16:24:39 +0000 (28 18:24 +0200)]
libdpkg: Add more test cases for version module

This covers dpkg_version_blank(), dpkg_version_is_informative(),
branches for different numerical and alphabetical version and revision
part in dpkg_version_compare() comparison, and dpkg_version_relate().

10 years agolibdpkg: Add test cases for eflags manipulators
Guillem Jover [Mon, 28 May 2012 16:23:11 +0000 (28 18:23 +0200)]
libdpkg: Add test cases for eflags manipulators

10 years agolibdpkg: Add more test cases for path module
Guillem Jover [Mon, 28 May 2012 16:22:36 +0000 (28 18:22 +0200)]
libdpkg: Add more test cases for path module