]> err.no Git - dpkg/log
dpkg
16 years agoUpdate indentation and coding style to be coherent with the other modules
Raphael Hertzog [Sun, 16 Mar 2008 18:17:03 +0000 (19:17 +0100)]
Update indentation and coding style to be coherent with the other modules

* scripts/Dpkg/Source/Package/V3_0/bzr.pm: Use 4 spaces everywhere
for indentation. Put spaces around " = ".
* scripts/Dpkg/Source/Package/V3_0/git.pm: Same here.

16 years agoUniformize @argv parsing in source package formats
Raphael Hertzog [Sun, 16 Mar 2008 18:03:59 +0000 (19:03 +0100)]
Uniformize @argv parsing in source package formats

* scripts/Dpkg/Source/Package/V2_0.pm: Improve error
message when we have too many arguments.
* scripts/Dpkg/Source/Package/V3_0/bzr.pm: Same here.
* scripts/Dpkg/Source/Package/V3_0/git.pm: Same here.
* scripts/Dpkg/Source/Package/V3_0/native.pm: Add check
of number of arguments.
* scripts/Dpkg/Source/Package/V1_0.pm: Make sure we're
not going to fail when we delegate to do_build() of
V3_0/native.pm.

16 years ago* man/dpkg-source.1: Updated manual page with all changes of the branch
Raphael Hertzog [Sun, 16 Mar 2008 17:52:25 +0000 (18:52 +0100)]
* man/dpkg-source.1: Updated manual page with all changes of the branch

16 years agoNew source package format "3.0 (custom)"
Raphael Hertzog [Sun, 16 Mar 2008 15:13:03 +0000 (16:13 +0100)]
New source package format "3.0 (custom)"

* scripts/Dpkg/Source/Package/V3_0/custom.pm: Module implementing
a fake source package format. It provides a convenient way to generate
a source package containing arbitrary files. It's meant to be used
by helper tools like git-buildpackage or svn-buildpackage.
* scripts/Makefile.am, scripts/po/POTFILES.in: Register the above
file.

16 years agoUse default ignore rules for source package with format >> 1.0
Raphael Hertzog [Sun, 16 Mar 2008 14:29:13 +0000 (15:29 +0100)]
Use default ignore rules for source package with format >> 1.0

* scripts/dpkg-source.pl: Remove default ignore patterns
and move them...
* scripts/Dpkg/Source/Package.pm: ...here. The init_options()
method now will give default values to the corresponding
options.
* scripts/Dpkg/Source/Package/V2_0.pm (init_options): Call
the parent init_options() to get the default ignore rules.
* scripts/Dpkg/Source/Package/V1_0.pm: Don't call the
parent init_options() as we don't want default values
for format 1.0.

16 years agodpkg-source: factorize logic of copy of original tarballs
Raphael Hertzog [Sun, 16 Mar 2008 12:34:46 +0000 (13:34 +0100)]
dpkg-source: factorize logic of copy of original tarballs

* scripts/Dpkg/Source/Package.pm (extract): Now handles copy
of original tarballs and addition of executable right to
debian/rules.
scripts/Dpkg/Source/Package/V1_0.pm (do_extract, parse_cmdline_option):
Don't copy the original tarball as it's already done by extract().
* scripts/dpkg-source.pl: New option --no-copy to not copy
the original tarballs. New option --no-check to not check signature
and checksum. Misc cleanup in the options handling code.

16 years agoAdd bzr-based source package format
Colin Watson [Sun, 16 Mar 2008 10:45:25 +0000 (11:45 +0100)]
Add bzr-based source package format

* scripts/Dpkg/Source/Package/V3_0/bzr.pm: New module handling
the "3.0 (bzr)" source package format. It's based on the git
one.
* scripts/Makefile.am, scripts/po/POTFILES.in: Register the above
file.

16 years agoEach source package format can have its own command line options
Raphael Hertzog [Sat, 15 Mar 2008 22:20:54 +0000 (23:20 +0100)]
Each source package format can have its own command line options

* scripts/Dpkg/Source/Package.pm (init_options): Provide default
values to various options in a format-specific way.
* scripts/Dpkg/Source/Package.pm (parse_cmdline_options,
parse_cmdline_option): New functions to handle command line options.
* scripts/dpkg-source.pl: Forward unknown options to the
source package object. Remove handling of all -s? options
and move it...
* scripts/Dpkg/Source/Package/V1_0.pm: ...here.
* scripts/Dpkg/Source/Package/V2_0.pm: Add support of options
--include-removal and --include-timestamp.
* scripts/Dpkg/Source/Package/V3_0/quilt.pm: Add support of option
--without-quilt.

16 years agoAllow deletion of files by patches in Format: 3.0 (quilt)
Raphael Hertzog [Sat, 15 Mar 2008 14:31:02 +0000 (15:31 +0100)]
Allow deletion of files by patches in Format: 3.0 (quilt)

* scripts/Dpkg/Source/Patch.pm (add_diff_directory): New option to
be able to generate a diff for a removed file (instead of ignoring
its deletion).
* scripts/Dpkg/Source/Patch.pm (apply): New option "add_options" to
add some options to the default set of options.
* scripts/Dpkg/Source/Package/V3_0/quilt.pm: Pass -E option to
patch when applying patches without quilt. This will remove
patched files which end up being empty.

16 years agoMisc bugfixes
Raphael Hertzog [Fri, 14 Mar 2008 18:35:58 +0000 (19:35 +0100)]
Misc bugfixes

* scripts/Dpkg/Source/Package/V3_0/git.pm (can_build): Add the missing
can_build() function. It checks if the source directory contains a .git
directory.
* scripts/Dpkg/Source/Patch.pm (get_type): Fix format specifier.

16 years agoDpkg::Source::Package::V3_0::quilt: Add fallback when quilt is not available
Raphael Hertzog [Fri, 14 Mar 2008 18:32:04 +0000 (19:32 +0100)]
Dpkg::Source::Package::V3_0::quilt: Add fallback when quilt is not available

* scripts/Dpkg/Source/Package/V3_0/quilt.pm: Check for quilt availability
before using it to apply patches. Otherwise resort to using
Dpkg::Source::Patch to apply patches.

16 years agoMerge branch 'master' into sourcev3
Raphael Hertzog [Fri, 14 Mar 2008 13:03:07 +0000 (14:03 +0100)]
Merge branch 'master' into sourcev3

16 years agoDpkg::Changelog::Debian: Allow capitals in distribution/package names
Raphael Hertzog [Fri, 14 Mar 2008 12:50:08 +0000 (13:50 +0100)]
Dpkg::Changelog::Debian: Allow capitals in distribution/package names

* scripts/Dpkg/Changelog/Debian.pm: Fix regression by re-allowing
capitals (like UNRELEASED!) in the distribution/package name.
* scripts/t/600_Dpkg_Changelog/regressions: Add capitals in the
distribution name as part of the non-regression tests.

16 years ago* scripts/Dpkg/Source/Package/V2_0.pm: Fix info message about unpacking of debian...
Raphael Hertzog [Fri, 14 Mar 2008 11:18:16 +0000 (12:18 +0100)]
* scripts/Dpkg/Source/Package/V2_0.pm: Fix info message about unpacking of debian tarball.

16 years agoDpkg::Source::Package::V3_0::quilt: New source package variant using quilt.
Raphael Hertzog [Wed, 12 Mar 2008 11:02:28 +0000 (12:02 +0100)]
Dpkg::Source::Package::V3_0::quilt: New source package variant using quilt.

* scripts/Dpkg/Source/Package/V3_0/quilt.pm: Implement a new source
package format that uses quilt to apply patches from
debian/patches/series. It is based on the wig&pen class (V2_0.pm).
* scripts/Makefile.am, scripts/po/POTFILES.in: Register the new module.

16 years agoFix minor errors in manpages
Guillem Jover [Fri, 14 Mar 2008 04:32:51 +0000 (06:32 +0200)]
Fix minor errors in manpages

Spotted by Helge Kreutzmann.

16 years agoComplete German man page translation (except dselect) and update add file
Helge Kreutzmann [Thu, 13 Mar 2008 21:33:30 +0000 (22:33 +0100)]
Complete German man page translation (except dselect) and update add file

16 years agoDpkg::Source::Package::V2_0: Misc changes in preparation of a quilt subclass
Raphael Hertzog [Wed, 12 Mar 2008 10:59:04 +0000 (11:59 +0100)]
Dpkg::Source::Package::V2_0: Misc changes in preparation of a quilt subclass

* scripts/Dpkg/Source/Package/V2_0.pm (get_patches): Return patch name
relative to debian/patches/.
* scripts/Dpkg/Source/Package/V2_0.pm (prepare_build): New hook function
used to prepare some options for the creation of the auto_patch.
* scripts/Dpkg/Source/Package/V2_0.pm (do_build): Create the debian/patches
directory if needed.

16 years ago* scripts/Dpkg/Source/Patch.pm: Bugfix: use return instead of next in function.
Raphael Hertzog [Wed, 12 Mar 2008 09:32:20 +0000 (10:32 +0100)]
* scripts/Dpkg/Source/Patch.pm: Bugfix: use return instead of next in function.

16 years agoStart updated of German man page translation
Helge Kreutzmann [Tue, 11 Mar 2008 22:29:18 +0000 (23:29 +0100)]
Start updated of German man page translation

16 years agoMove command line common option utilities to lib/myopt-util.c
Guillem Jover [Tue, 11 Mar 2008 05:01:57 +0000 (07:01 +0200)]
Move command line common option utilities to lib/myopt-util.c

16 years agoMove and replace showcopyright prototype from showcright.c to dpkg.h
Guillem Jover [Tue, 11 Mar 2008 04:31:58 +0000 (06:31 +0200)]
Move and replace showcopyright prototype from showcright.c to dpkg.h

16 years agoMove GNU C attribute definitions to lib/dpkg-def.h
Guillem Jover [Tue, 11 Mar 2008 04:24:12 +0000 (06:24 +0200)]
Move GNU C attribute definitions to lib/dpkg-def.h

16 years agoRefactor fgets checking code into fgets_must and fgets_checked functions
Ian Jackson [Tue, 11 Mar 2008 03:10:53 +0000 (05:10 +0200)]
Refactor fgets checking code into fgets_must and fgets_checked functions

16 years agoUpdate Polish translations and fix po4a errors in other languages' translations
Robert Luberda [Sun, 9 Mar 2008 16:15:14 +0000 (17:15 +0100)]
Update Polish translations and fix po4a errors in other languages' translations

* po/pl.po: Apply some fixes suggested by Wiktor Wandachowicz.
* */pl.po: Consistently use Polish quotation marks in translations.
* man/{de.po, hu.po, sv.po}: Fix a few broken messages, that caused the
newest po4a to die with the `Unknown '<' or '>' sequence' error.

16 years agoFix erroneous description of Breaks in dselect
Ian Jackson [Thu, 1 Nov 2007 20:00:54 +0000 (20:00 +0000)]
Fix erroneous description of Breaks in dselect

The description should be 'breaks' as in 'A breaks B' rather than
'A breaks with B' since it is B that is broken by A and not vice versa.

16 years agoImplement 'Breaks' properly in dselect
Ian Jackson [Thu, 1 Nov 2007 20:00:04 +0000 (20:00 +0000)]
Implement 'Breaks' properly in dselect

It works just like Conflicts. This is correct since dselect only deals
with packages being installed, removed or placed on hold.

16 years agoCorrect broken dselect logic for self-conflicting packages
Ian Jackson [Thu, 1 Nov 2007 19:57:26 +0000 (19:57 +0000)]
Correct broken dselect logic for self-conflicting packages

The previous code seems to have had some confusion over the precedence
of '&&' vs ':'. The new rule is that a Conflicts is violated if the
target package is installed or to be error-preserved ie
would_like_to_install() != 0 - except that we disregard packages which
directly Conflict with themselves.

16 years agoDpkg::Fields::Object: Import Dpkg::Gettext
Raphael Hertzog [Fri, 7 Mar 2008 14:15:45 +0000 (15:15 +0100)]
Dpkg::Fields::Object: Import Dpkg::Gettext

* scripts/Dpkg/Fields.pm: Import Dpkg::Gettext since the output() method
uses _g().

16 years agoRename DSP::V1_0::native to DSP::V3_0::native
Raphael Hertzog [Wed, 5 Mar 2008 23:09:08 +0000 (00:09 +0100)]
Rename DSP::V1_0::native to DSP::V3_0::native

* scripts/Dpkg/Source/Package/V1_0/native.pm: This file got
renamed into...
* scripts/Dpkg/Source/Package/V3_0/native.pm: The goal is to
not pollute the namespace of versions 1.0 and 2.0. The usage
of the format specifier between parenthesis is thus limited
to version 3.0.
* scripts/dpkg-source.pl: Updated to take into account the
previous renaming.
* scripts/Dpkg/Source/Package/V1_0.pm: Adapt to the name change
and two small bug fixes that affect building of native packages.
* scripts/Makefile.am, scripts/po/POTFILES.in: Register the new
file and remove the old one.

16 years agoFix small memory leaks
Sean Finney [Sat, 1 Mar 2008 08:44:09 +0000 (09:44 +0100)]
Fix small memory leaks

16 years agoRestore eddyp's cedilla again
Christian Perrier [Tue, 4 Mar 2008 18:34:57 +0000 (19:34 +0100)]
Restore eddyp's cedilla again

16 years agoUpdated Thai translation. Closes: #468916
Christian Perrier [Mon, 3 Mar 2008 18:44:14 +0000 (19:44 +0100)]
Updated Thai translation. Closes: #468916

16 years agoPreserve the order of dependencies and build-dependencies
Raphael Hertzog [Sun, 2 Mar 2008 15:37:27 +0000 (16:37 +0100)]
Preserve the order of dependencies and build-dependencies

* scripts/dpkg-gencontrol.pl, scripts/dpkg-source.pl:
Do not sort the dependency fields as order matters given
the greedy algorithm that APT uses when trying to resolve
dependencies. See discussion on debian-devel:
http://lists.debian.org/debian-devel/2008/02/msg00893.html
* man/dpkg-gencontrol.1: Document the above changes.

* scripts/Dpkg/Deps.pm (simplify_deps): Tries to respect order put
by the maintainer when simplifying dependencies.
* scripts/t/400_Dpkg_Deps.t: Add a test-case to ensure that
further changes respect this constraint.

* scripts/dpkg-shlibdeps.pl: Sort generated dependencies to
have a deterministic output.

16 years agoMiscellaneous fixes
Raphael Hertzog [Sun, 2 Mar 2008 13:08:55 +0000 (14:08 +0100)]
Miscellaneous fixes

* scripts/Dpkg/Source/Package/V1_0.pm: Remove properly the
temporary file used for creating diff.gz file in case of
failure during its generation.
* scripts/Dpkg/Source/Patch.pm: The bad file was analyzed and
lead to failure of the stat call.
* scripts/Makefile.am: Add the new V3_0/git.pm file and
remove the old VCS/git.pm.

16 years agoCreate Dpkg::Source::Package::V1_0::native
Raphael Hertzog [Fri, 29 Feb 2008 22:27:30 +0000 (23:27 +0100)]
Create Dpkg::Source::Package::V1_0::native

* scripts/Dpkg/Source/Package/V1_0/native.pm: New module that
handles native source packages with any compression.
* scripts/Dpkg/Source/Package/V1_0.pm: Adjusted to use the previous
module when it comes to handle native packages. Simplified
several other code paths.
* scripts/Makefile.am, scripts/po/POTFILES.in: Add the new module.
* scripts/dpkg-source.pl: Add the new format as fallback to try
when building a source package. It will likely only be selected
when non-gzip compression has been requested.

16 years agodpkg-source: use a list of possible format for building a source package
Raphael Hertzog [Fri, 29 Feb 2008 20:24:14 +0000 (21:24 +0100)]
dpkg-source: use a list of possible format for building a source package

* scripts/dpkg-source.pl: Define a list of formats that can be used
to build a source package and use the first one that is able to build
a source package. Let the user add formats to try at the beginning of that
list with the --format=<format> command-line option.
* scripts/Dpkg/Source/Package/V1_0.pm (can_build): Only accept to build a
source package is the compression option is gzip.
* scripts/Dpkg/Source/Package.pm (can_build): Return a proper error
message.
* scripts/dpkg-source.pl: Use the info() function to report progress.

16 years agoDpkg::Source::Package::V2_0: removes conflicting subdirectories
Raphael Hertzog [Fri, 29 Feb 2008 20:01:56 +0000 (21:01 +0100)]
Dpkg::Source::Package::V2_0: removes conflicting subdirectories

* scripts/Dpkg/Source/Package/V2_0.pm: When extracting additional
tarballs, removes the destination directory in case it existed in
the main tarball. Same goes for the debian subdirectory.
* scripts/Makefile.am: Add the module above.

16 years agoActually close the bug
Frank Lichtenheld [Fri, 29 Feb 2008 23:18:01 +0000 (00:18 +0100)]
Actually close the bug

16 years agoAdd the ::Package modules
Frank Lichtenheld [Fri, 29 Feb 2008 23:09:05 +0000 (00:09 +0100)]
Add the ::Package modules

16 years agoUse the new Dpkg::ErrorHandling::info() function
Frank Lichtenheld [Fri, 29 Feb 2008 23:00:10 +0000 (00:00 +0100)]
Use the new Dpkg::ErrorHandling::info() function

16 years agoDpkg::Errorhandling: Add info function
Frank Lichtenheld [Fri, 29 Feb 2008 22:45:40 +0000 (23:45 +0100)]
Dpkg::Errorhandling: Add info function

* scripts/Dpkg/ErrorHandling.pm (info): New
function that outputs to stdout.

16 years agoAdd support for v3.0 (git) package
Frank Lichtenheld [Fri, 29 Feb 2008 22:09:43 +0000 (23:09 +0100)]
Add support for v3.0 (git) package

* scripts/Dpkg/Source/VCS/git.pm: Move this to...
* scripts/Dpkg/Source/Package/V3_0/git.pm: ...here,
and port to new API.

16 years agoDpkg::Source::Package: Fix some errors in error messages
Frank Lichtenheld [Tue, 26 Feb 2008 14:22:36 +0000 (15:22 +0100)]
Dpkg::Source::Package: Fix some errors in error messages

16 years agoDpkg::Changelog::Debian: Fix regression in header parsing
Frank Lichtenheld [Fri, 29 Feb 2008 17:35:41 +0000 (18:35 +0100)]
Dpkg::Changelog::Debian: Fix regression in header parsing

* scripts/Dpkg/Changelog/Debian.pm (parse):
One patch against the old parser that allowed
chars '+' and '.' in distribution names was
not forward ported into the new parser. Do
this now.
* scripts/t/600_Dpkg_Changelog/regression:
Add testcase for this regression.

16 years agoChangeLog whitespace police
Frank Lichtenheld [Tue, 26 Feb 2008 13:15:16 +0000 (14:15 +0100)]
ChangeLog whitespace police

16 years agoGive Eddy back his cedilla which was eaten by my bloody emacs
Christian Perrier [Fri, 29 Feb 2008 07:42:18 +0000 (08:42 +0100)]
Give Eddy back his cedilla which was eaten by my bloody emacs

16 years agoAdd bug closure fo the Basque update to dselect
Christian Perrier [Fri, 29 Feb 2008 06:52:25 +0000 (07:52 +0100)]
Add bug closure fo the Basque update to dselect

16 years agoAdd support of wig&pen source package
Raphael Hertzog [Thu, 28 Feb 2008 22:11:11 +0000 (23:11 +0100)]
Add support of wig&pen source package

* scripts/Dpkg/Source/Package/V2_0.pm: New module to support "Format: 2.0"
source packages. Various method are overridables so that it's easy
to create an (upcoming) "Format: 2.0 (quilt)" variant. Native packages
(i.e. without orig.tar and with a single tarball) are not yet supported.

16 years ago* scripts/dpkg-source.pl: remove trailing slash on user-supplied directories
Raphael Hertzog [Thu, 28 Feb 2008 22:07:46 +0000 (23:07 +0100)]
* scripts/dpkg-source.pl: remove trailing slash on user-supplied directories

16 years agoDpkg::Source::Package: Fix extract() and build() to clean up by default
Raphael Hertzog [Thu, 28 Feb 2008 22:04:22 +0000 (23:04 +0100)]
Dpkg::Source::Package: Fix extract() and build() to clean up by default

* scripts/Dpkg/Source/Package.pm (extract, build): Change those methods
to delegate the real work to do_extract() and do_build() and catch
critical failures to clean up any temporary files/directories before
re-raising the error.
* scripts/Dpkg/Source/Package/V1_0.pm: Rename build() into do_build()
and extract() into do_extract().

16 years agoDpkg::Source::Archive/Package: misc fixes and changes
Raphael Hertzog [Thu, 28 Feb 2008 20:20:46 +0000 (21:20 +0100)]
Dpkg::Source::Archive/Package: misc fixes and changes

* scripts/Dpkg/Source/Archive.pm: Replace unsafe rmtree() by
the safer erasedir() function.
* scripts/Dpkg/Source/Archive.pm (add_file, add_directory): Prefix
filename with chdir when the directory of the tar process isn't
the current directory.

* scripts/Dpkg/Source/Package.pm (find_original_tarballs): New
function to find original tarballs possibly associated to the current
source package.
* scripts/Dpkg/Source/Package.pm (add_file): Support adding file
who are not stored in the current directory (or who are prefixed with
"./").
* scripts/Dpkg/Source/Package.pm (can_build): New function to check
if a source package build is likely to succeed given the constraints
of a particular source package format. Will be used by dpkg-source to
find an appropriate format.

16 years ago* scripts/Dpkg/Source/Package/V1_0.pm: Cleanup and removal of unused code
Raphael Hertzog [Thu, 28 Feb 2008 20:01:11 +0000 (21:01 +0100)]
* scripts/Dpkg/Source/Package/V1_0.pm: Cleanup and removal of unused code

16 years agoRecoded Swedish PO files to UTF-8.
Peter Karlsson [Tue, 26 Feb 2008 21:02:51 +0000 (22:02 +0100)]
Recoded Swedish PO files to UTF-8.

16 years agoUpdated Swedish translations.
Peter Karlsson [Tue, 26 Feb 2008 20:57:36 +0000 (21:57 +0100)]
Updated Swedish translations.

man/po/sv.po: Updated to 1461t0f0u.
po/sv.po: Regenerated and updated to 921t0f0u.
scripts/po/sv.po: Regenerated and updated to 489t0f0u.

16 years agoMerge branch 'master' into sourcev3
Raphael Hertzog [Sun, 24 Feb 2008 21:43:23 +0000 (22:43 +0100)]
Merge branch 'master' into sourcev3

16 years agodpkg-source: use the new Dpkg::Source::Package object
Raphael Hertzog [Sun, 24 Feb 2008 21:16:30 +0000 (22:16 +0100)]
dpkg-source: use the new Dpkg::Source::Package object

* scripts/dpkg-source.pl: Major restructuring of the script. It's
now based on the Dpkg::Source::Package object and its derived
classes. This was the last big step of cleanup. The script is now less
than 500 lines compared to more than 1300 not so long ago...

16 years agoDpkg::Source::Package and Dpkg::Source::Package:V1_0: new modules
Raphael Hertzog [Sun, 24 Feb 2008 21:11:46 +0000 (22:11 +0100)]
Dpkg::Source::Package and Dpkg::Source::Package:V1_0: new modules

* scripts/Dpkg/Source/Package.pm: New module that represents a source
package. It provides some common functions and is the base class
from which real format of source packages must derive. The two main
functions that subclass must implement are build($dir) and extract($dir).

* scripts/Dpkg/Source/Package/V1_0.pm: Implementation of the Debian
source package version 1.0, the current version in wide-spread use.

16 years agoAlways include everything below /usr/share/perl5/Dpkg into dpkg-dev
Raphael Hertzog [Sun, 24 Feb 2008 20:59:39 +0000 (21:59 +0100)]
Always include everything below /usr/share/perl5/Dpkg into dpkg-dev

* debian/dpkg-dev.install: Include everything below /usr/share/perl5/Dpkg
except...
* debian/rules: ... Dpkg/Gettext.pm (-X option of dh_install).

16 years agoDpkg::Exit and Dpkg::Source::Functions: two new modules
Raphael Hertzog [Sun, 24 Feb 2008 20:56:16 +0000 (21:56 +0100)]
Dpkg::Exit and Dpkg::Source::Functions: two new modules

* scripts/Dpkg/Exit.pm: Enable to register some exit handlers that
are called when a script is interrupted by a signal.
* scripts/Dpkg/Source/Functions.pm: Contains some generic functions
used by other Dpkg::Source::* modules. Only erasedir() for now.

16 years agoDpkg::Source::Archive/Patch: small tweaks
Raphael Hertzog [Sun, 24 Feb 2008 20:48:34 +0000 (21:48 +0100)]
Dpkg::Source::Archive/Patch: small tweaks

* scripts/Dpkg/Source/Archive.pm (create): Offer possibility to chdir
before calling tar. This is required to create tar achives that do not
encode the full path to the location of the directory that we want to
integrate.
* scripts/Dpkg/Source/Patch.pm (apply): Make sure to remove
POSIXLY_CORRECT while calling patch to avoid unexpected changes
in his behaviour.

16 years agoDpkg::IPC: new option to clean the environment
Raphael Hertzog [Sun, 24 Feb 2008 20:46:13 +0000 (21:46 +0100)]
Dpkg::IPC: new option to clean the environment

* scripts/Dpkg/IPC.pm (fork_and_exec): New delete_env option
that allows to remove environment variable within the child
process.

16 years agoUpdated Polish translation of man pages.
Robert Luberda [Sun, 24 Feb 2008 20:33:06 +0000 (21:33 +0100)]
Updated Polish translation of man pages.

16 years agoUpdated Polish translation.
Robert Luberda [Sun, 24 Feb 2008 14:12:57 +0000 (15:12 +0100)]
Updated Polish translation.

16 years agoRename Dpkg::Source::Archiver to Dpkg::Source::Archive
Raphael Hertzog [Fri, 22 Feb 2008 18:16:26 +0000 (19:16 +0100)]
Rename Dpkg::Source::Archiver to Dpkg::Source::Archive

16 years agoDpkg::Source::Patch gains last features from dpkg-source
Raphael Hertzog [Fri, 22 Feb 2008 18:07:11 +0000 (19:07 +0100)]
Dpkg::Source::Patch gains last features from dpkg-source

* scripts/Dpkg/Source/Patch.pm: New analyze() function that
replaces dpkg-source's checkdiff(). Check sanity of patch,
and reports directories to create and list of patched files.
* scripts/Dpkg/Source/Patch.pm (apply): Create required
directories on the fly and adjust timestamp of patched
files. This behaviour is configurable.
* scripts/dpkg-source.pl: Adjust accordingly.
* scripts/Dpkg/Source/Patch.pm (add_diff_file): Support
new option include_timestamp.

16 years agoDpkg::Source::Archiver/Patch: Rename close() methods into finish()
Raphael Hertzog [Fri, 22 Feb 2008 16:47:54 +0000 (17:47 +0100)]
Dpkg::Source::Archiver/Patch: Rename close() methods into finish()

* scripts/Dpkg/Source/Archiver.pm: Rename close() method into finish()
to avoid ambiguity with CORE::close().
* scripts/Dpkg/Source/Patch.pm: Same.
* scripts/dpkg-source.pl: Updated accordingly.

16 years agoCleanup of some maintainer scripts
Raphael Hertzog [Fri, 22 Feb 2008 11:17:26 +0000 (12:17 +0100)]
Cleanup of some maintainer scripts

* debian/dpkg.postinst, debian/dpkg.preinst: Remove old
code that handles upgrading from version older than the
one in olstable (1.10.28).

16 years agoFix groff in some manual pages
Raphael Hertzog [Fri, 22 Feb 2008 10:33:55 +0000 (11:33 +0100)]
Fix groff in some manual pages

* man/dpkg-gensymbols.1: Fix some groff errors detected by lintian.
* man/dpkg-query.1: Same.

16 years agoFix usage of hyphens in some manual pages
Raphael Hertzog [Fri, 22 Feb 2008 10:17:44 +0000 (11:17 +0100)]
Fix usage of hyphens in some manual pages

* man/deb-symbols.5: Escape some hyphens so that they
are not used as minus sign.
* man/dpkg-architecture.1: Same.
* man/dpkg-shlibdeps.1: Same.
* man/start-stop-daemon.8: Same.

16 years ago* debian/*.lintian-overrides: Add some new overrides, drop unused ones
Raphael Hertzog [Fri, 22 Feb 2008 10:06:36 +0000 (11:06 +0100)]
* debian/*.lintian-overrides: Add some new overrides, drop unused ones

16 years ago* man/po/po4a.cfg: Also translate deb-symbols.5
Raphael Hertzog [Fri, 22 Feb 2008 10:02:21 +0000 (11:02 +0100)]
* man/po/po4a.cfg: Also translate deb-symbols.5

16 years agoFix make check to work on systems without dpkg in the standard PATH
Raphael Hertzog [Fri, 22 Feb 2008 07:42:04 +0000 (08:42 +0100)]
Fix make check to work on systems without dpkg in the standard PATH

* scripts/Makefile.am: Modify PATH to include build directories
containing the dpkg binary and the related scripts. That way
the tests work even if dpkg is not yet available. Thanks to
Mike Frysinger <vapier@gentoo.org> who noticed that.

16 years agoDpkg::Source::Patch: New module to generate and apply patches
Raphael Hertzog [Fri, 22 Feb 2008 00:25:38 +0000 (01:25 +0100)]
Dpkg::Source::Patch: New module to generate and apply patches

* scripts/Dpkg/Source/Patch.pm: New module that is able to
generate patches (between files or between directories). It's
also able to apply patches. Built on CompressedFile, it
handles compression/decompression of patches files on the fly.
It still lack some functionalities of dpkg-source (patch
analysis and pre-creation of new directories before patch
application).
* scripts/dpkg-source.pl: Replaced big chunks of the code by
some usage of Dpkg::Source::Patch. More to come later.
* scripts/Makefile.am, scripts/po/POTFILES.in: Register the new
module file.

16 years agodpkg-source: more cleanup
Raphael Hertzog [Thu, 21 Feb 2008 00:52:49 +0000 (01:52 +0100)]
dpkg-source: more cleanup

* scripts/dpkg-source.pl: Replace several implicit fork made with
open() by fork_and_exec().
* scripts/dpkg-source.pl: Remove another chunk of unused code.

16 years agoDpkg::IPC: Add nocheck option to wait_child()
Raphael Hertzog [Thu, 21 Feb 2008 00:45:47 +0000 (01:45 +0100)]
Dpkg::IPC: Add nocheck option to wait_child()

* scripts/Dpkg/IPC.pm (wait_child): Add nocheck option to not
check the return status of the child process.

16 years agoMerge branch 'master' into sourcev3
Raphael Hertzog [Thu, 21 Feb 2008 00:44:38 +0000 (01:44 +0100)]
Merge branch 'master' into sourcev3

16 years agoAdjust Dpkg::Changelog::parse_changelog() search list of parser
Raphael Hertzog [Wed, 20 Feb 2008 23:28:10 +0000 (00:28 +0100)]
Adjust Dpkg::Changelog::parse_changelog() search list of parser

* scripts/Dpkg/Changelog.pm (parse_changelog): Fallback
into /usr/lib/dpkg/parsechangelog to find a changelog parser
in case $dpkglibdir points to another directory (for example
when DPKG_DATADIR is manually set).

16 years agoCreate Dpkg::Source::CompressedFile as spinoff of Dpkg::Source::Compressor
Raphael Hertzog [Wed, 20 Feb 2008 23:12:40 +0000 (00:12 +0100)]
Create Dpkg::Source::CompressedFile as spinoff of Dpkg::Source::Compressor

* scripts/Dpkg/Source/Compressor.pm: Drom from this object
all filename related code and move it ...
* scripts/Dpkg/Source/CompressedFile.pm: ...here. This
object is a named file and it handles either explicit
compression (call to set_compression()) or implicit compression
(compression type is guessed from the filename). It offers
open_for_write() and open_for_read() to write into/read from
a data stream that is compressed/uncompressed on the fly.
* scripts/Dpkg/Source/Archiver.pm: Make it based on
CompressedFile and simplify code.
* scripts/dpkg-source.pl: Adapt code to the new interface of
the Compressor object.
* scripts/Makefile.am, scripts/po/POTFILES.in: register new
file CompressedFile.pm.

16 years agoDpkg::Source: don't handle the compression level explicitely
Raphael Hertzog [Wed, 20 Feb 2008 19:55:19 +0000 (20:55 +0100)]
Dpkg::Source: don't handle the compression level explicitely

* scripts/Dpkg/Source/Archiver.pm: Drop set_compression_level() and always
use the default compression level (from Dpkg::Source::Compressor).
* scripts/Dpkg/Source/Compressor.pm: New set_default_compression() and
set_default_compression_level() to change the default values of those
parameters.
* scripts/dpkg-source.pl: Change the default compression and the default
compression level globally. Replace forkgzipread(), forkgzipwrite() and
reapgzip() by direct usage of Dpkg::Source::Compressor in a way that it
inherits the compression level automatically. Also simplify some
subprocess execution by using Dpkg::IPC::fork_and_exec().

16 years agoDpkg::IPC: Modify fork_and_exec() to handle environment variables
Raphael Hertzog [Wed, 20 Feb 2008 17:09:26 +0000 (18:09 +0100)]
Dpkg::IPC: Modify fork_and_exec() to handle environment variables

* scripts/Dpkg/IPC.pm (fork_and_exec): Add a new "env" option
that enables setting environment variables in the child process.

16 years agoLink dselect against libncursesw
Frank Lichtenheld [Tue, 19 Feb 2008 21:46:36 +0000 (22:46 +0100)]
Link dselect against libncursesw

* m4/libs.m4 (DPKG_LIB_CURSES): Use libncursesw if available.
* debian/control: Change build-dependency from libncurses5-dev
to libncursesw5-dev.

16 years agodpkg-source.1: Fix description of -sk and -sp
Frank Lichtenheld [Tue, 19 Feb 2008 00:21:03 +0000 (01:21 +0100)]
dpkg-source.1: Fix description of -sk and -sp

* man/dpkg-source.1: Fix documentation of -sk and -sp.
The directory with the unpacked original source will
be removed, not the tarball.

Just goes to show how much all these options are actually
used...

16 years agoMerge commit 'origin/master' into sourcev3
Frank Lichtenheld [Sun, 17 Feb 2008 20:38:51 +0000 (21:38 +0100)]
Merge commit 'origin/master' into sourcev3

Conflicts:

scripts/dpkg-source.pl

16 years agoAdd changelog entries for Dpkg::Checksums
Frank Lichtenheld [Sun, 17 Feb 2008 20:28:31 +0000 (21:28 +0100)]
Add changelog entries for Dpkg::Checksums

Lost during a botched git rebase -i.

16 years agoAllow overriding $pkgdatadir in Dpkg
Frank Lichtenheld [Sun, 17 Feb 2008 20:24:39 +0000 (21:24 +0100)]
Allow overriding $pkgdatadir in Dpkg

* scripts/Dpkg.pm: Allow overriding $pkgdatadir
with $ENV{DPKG_DATADIR}.
* scripts/Makefile.am (check): Use DPKG_DATADIR.
* debian/rules: Remove hack to copy data files
to build directory.

16 years agodpkg-architecture.1: Document needed data files
Frank Lichtenheld [Sun, 17 Feb 2008 20:20:39 +0000 (21:20 +0100)]
dpkg-architecture.1: Document needed data files

16 years agoman/po: Regenerate .pot file and merge .po files with it
Frank Lichtenheld [Sun, 17 Feb 2008 17:23:23 +0000 (18:23 +0100)]
man/po: Regenerate .pot file and merge .po files with it

16 years agodpkg-buildpackage: Set a set of compiler flags for a build
Frank Lichtenheld [Mon, 11 Feb 2008 22:30:29 +0000 (23:30 +0100)]
dpkg-buildpackage: Set a set of compiler flags for a build

* scripts/dpkg-buildpackage.pl: Set a set of environment variables
for setting compiler and linker options, unless already set in the
environment. See https://wiki.ubuntu.com/DistCompilerFlags for
background information.
* man/dpkg-buildpackage.pl: Document the new behaviour.

Based on a patch by Matthias Klose <doko@cs.tu-berlin.de>

16 years agoman/po: Regenerate .pot files and merge .po files with them
Frank Lichtenheld [Sun, 17 Feb 2008 16:41:03 +0000 (17:41 +0100)]
man/po: Regenerate .pot files and merge .po files with them

16 years agodeb-shlibs.5: Be a little more elaborate and helpful
Zack Weinberg [Sun, 17 Feb 2008 16:33:07 +0000 (17:33 +0100)]
deb-shlibs.5: Be a little more elaborate and helpful

[Committed the original patch with some formatting changes
-- Frank Lichtenheld]

16 years agodpkg.cfg: Reintroduce 'no-debsig' option
Guillem Jover [Sun, 17 Feb 2008 04:34:41 +0000 (06:34 +0200)]
dpkg.cfg: Reintroduce 'no-debsig' option

This avoids failing to install any package when debsig-verify is installed,
as distributions do not use embedded signatures in packages. Closes: #311843

16 years agoFix some whitespace oddities in the new modules
Frank Lichtenheld [Sat, 16 Feb 2008 22:29:49 +0000 (23:29 +0100)]
Fix some whitespace oddities in the new modules

16 years agoHandling of compression level in dpkg-source
Raphael Hertzog [Sat, 16 Feb 2008 22:20:35 +0000 (23:20 +0100)]
Handling of compression level in dpkg-source

* scripts/Dpkg/Source/Archiver.pm (create): Forward properly the
compression level.
* scripts/Dpkg/Source/Archiver.pm (extract): Correct parameters in
an error message.
* scripts/dpkg-source.pl: Take into account the compression level
when generating a new tarball.

16 years agoDpkg::Source::Archiver: new module to work with tar archives
Raphael Hertzog [Sat, 16 Feb 2008 19:20:36 +0000 (20:20 +0100)]
Dpkg::Source::Archiver: new module to work with tar archives

* scripts/Dpkg/Source/Archive.pm: New module handling tar
archive creation and extraction.
* scripts/dpkg-source.pl: Updated and simplified to use the new module.
* scripts/Makefile.am: Add new modules to dist tarball.
* scripts/po/POTFILES.in: Add new module in list of files to scan for
translations.

16 years agoDpkg::Sourse::Compressor: add copyright notice
Raphael Hertzog [Sat, 16 Feb 2008 19:19:04 +0000 (20:19 +0100)]
Dpkg::Sourse::Compressor: add copyright notice

16 years agoDpkg::Compression: add get_compression_from_filename()
Raphael Hertzog [Sat, 16 Feb 2008 17:52:00 +0000 (18:52 +0100)]
Dpkg::Compression: add get_compression_from_filename()

* scripts/Dpkg/Compression.pm: Add function
get_compression_from_filename() to identify the compression
type from the file extension. Returns undef in case of failure.
* scripts/Dpkg/Source/Compressor.pm: Simplify some code
by using the new get_compression_from_filename().

16 years agoContinued work on German scripts translation
Helge Kreutzmann [Sat, 16 Feb 2008 16:10:46 +0000 (17:10 +0100)]
Continued work on German scripts translation

16 years agoDpkg::IPC: Add chdir option
Raphael Hertzog [Sat, 16 Feb 2008 15:18:24 +0000 (16:18 +0100)]
Dpkg::IPC: Add chdir option

* scripts/Dpkg/IPC.pm (fork_and_exec): Add chdir option to
change the current directory of the child process before
calling exec.

16 years agoDpkg::IPC: Add a sanitiy_check for options of fork_and_exec
Frank Lichtenheld [Fri, 15 Feb 2008 21:58:26 +0000 (22:58 +0100)]
Dpkg::IPC: Add a sanitiy_check for options of fork_and_exec

* scripts/Dpkg/IPC.pm (_sanity_check_opts): Check for some
probable errors in options.
(fork_and_exec): Apply _sanity_check_opts to the options to
catch some errors that might go unnoticed otherwise and to
error out early for some other errors.