French translation update
1854 translated messages, 159 fuzzy translations, 51 untranslated messages.
1854 translated messages, 159 fuzzy translations, 51 untranslated messages.
Update French translation
Update to 1023t
Update to 1023t
Fix typos (children)
Found by Lintian.
Found by Lintian.
libdpkg: Do not dereference NULL pointers on dpkg_arch_remove()
Regression introduced in commit 1c1c2f7dc4b191f665f7cf7d8f70e7b66f942212.
Regression introduced in commit 1c1c2f7dc4b191f665f7cf7d8f70e7b66f942212.
dpkg: Get rid of all remaining deppossi->ed->pkg access
They are replaced with loops using deppossi_pkg_iterator.
Sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
They are replaced with loops using deppossi_pkg_iterator.
Sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
dpkg: Add new deppossi package iterator functions
Since a dependency now points to a pkgset, if you want to find the
correct instance of the package that satisfies the dependency, you
have to take into the account the arch affinity expressed by the
dependency.
The function deppossi_pkg_iter_next() now takes care of this. It
can return multiple packages when the dependency is a wildcard one
(foo:any), you just need to pass the iterator previously created
by deppossi_pkg_iter_new(), and free it with deppossi_pkg_iter_free().
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
Since a dependency now points to a pkgset, if you want to find the
correct instance of the package that satisfies the dependency, you
have to take into the account the arch affinity expressed by the
dependency.
The function deppossi_pkg_iter_next() now takes care of this. It
can return multiple packages when the dependency is a wildcard one
(foo:any), you just need to pass the iterator previously created
by deppossi_pkg_iter_new(), and free it with deppossi_pkg_iter_free().
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
Update German translation of manual pages
Update to 2102t.
Update to 2102t.
s-s-d(8): Document in more detail the implications of matching options
Closes: #367608
Closes: #367608
s-s-d(8): Wrap long lines with a quoted backslash
s-s-d: Do not use a conditional operator when the return value is fine
s-s-d: Rename pidexec to process_name in KVM's pid_is_cmd()
s-s-d: Fix --name matching on GNU/Hurd
The pid_is_cmd() function was not stripping the prefix directories from
the process argv[0] pathname.
The pid_is_cmd() function was not stripping the prefix directories from
the process argv[0] pathname.
s-s-d: Add a fallback pid_is_exec() implementation using pid_is_cmd()
This consolidates the fallback implementation into a single function that
can be modified centrally.
This consolidates the fallback implementation into a single function that
can be modified centrally.
s-s-d: Swap pid_is_cmd() and pid_is_exec() libkvm implementations
pid_is_exec() was checking for the process name while pid_is_cmd() was
checking for the (supposed) executable pathname, so they were performing
each other's task.
pid_is_exec() was checking for the process name while pid_is_cmd() was
checking for the (supposed) executable pathname, so they were performing
each other's task.
Update German translation of manual pages
Update to 2101t.
Update to 2101t.
deb-symbols(5): drop misleading spaces in the format description
Update German translation of manual pages
Update to 2100t0f1u.
Update to 2100t0f1u.
libcompat: Use a different temporary file per process on vsnprintf()
Avoid race conditions from childs after fork(2).
Closes: #655411
Reported-by: Daniel Ruoso <daniel@ruoso.com>
Avoid race conditions from childs after fork(2).
Closes: #655411
Reported-by: Daniel Ruoso <daniel@ruoso.com>
libdpkg: Add virtual source:Package and source:Version fields
Closes: #653575
Closes: #653575
Rename “show:” virtual fields to binary:Summary and db:Status-Abbrev
Use more meaningful namespaces for the fields, matching the existing
convention used in substvars.
Use more meaningful namespaces for the fields, matching the existing
convention used in substvars.
dpkg-query(1): Reduce Tag field description to fit it in one line
dpkg-query(1): Add a new subsection to explain virtual fields
Update German translation of manual pages
Update to 2098t.
Update to 2098t.
deb-control(5): fix Multi-Arch description
The field is allowed in “Architecture: all” packages. And “Multi-Arch:
allowed” does not mean that reverse dependencies can be marked as
_needing_ foreign packages but only that they can be marked as _accepting_
foreign packages to satisfy them.
Reported-by: Jakub Wilk <jwilk@debian.org>
Closes: #654453
The field is allowed in “Architecture: all” packages. And “Multi-Arch:
allowed” does not mean that reverse dependencies can be marked as
_needing_ foreign packages but only that they can be marked as _accepting_
foreign packages to satisfy them.
Reported-by: Jakub Wilk <jwilk@debian.org>
Closes: #654453
libdpkg: Add new package name accessors
Those functions are meant to be used everywhere where we want to print
out a distinguishing package name instead of the currently ambiguous
pkg->set->name.
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
Those functions are meant to be used everywhere where we want to print
out a distinguishing package name instead of the currently ambiguous
pkg->set->name.
Based-on-patch-by: Raphaël Hertzog <hertzog@debian.org>
Patch-sponsored-by: Linaro Limited
Signed-off-by: Guillem Jover <guillem@debian.org>
libdpkg: Pass pkginfo instead of void * to trig_parse_ci callbacks
Use strict types instead of a ‘void *’ pointer.
Use strict types instead of a ‘void *’ pointer.
libdpkg: Make test function static
dselect: Remove dead code after break keyword
The commit d4d3484ac88ca3953fef3cf2c0464cdc776b6574 forgot to remove
this code.
The commit d4d3484ac88ca3953fef3cf2c0464cdc776b6574 forgot to remove
this code.
16 months agoFix translation of -B and -A options of dpkg-buildpackage. Thanks to Vincent Danjean...
Fix translation of -B and -A options of dpkg-buildpackage. Thanks to Vincent Danjean. Closes: #654626
Update German translation of manual pages
Update to 2098t.
Update to 2098t.
German dpkg translation update
Update to 1018t.
Update to 1018t.
dpkg: Add architecture checks to --audit
dpkg: Switch from foreign arch option to add and remove commands
The --foreign-architecture option is not a good interface, the problem
with it comes from the fact that the architectures supported by the
database are not configuration, they are state. This shows up in several
ways.
When a front-end needs to load the list of architectures, it needs to
get someone to parse dpkg.cfg files, this is currently done by dpkg
itself, and the list can be retrieved with --print-foreign-architectures,
the problem appears when wanting a front-end to load them through libdpkg.
Making the latter have to execute «dpkg --print-foreign-architectures»
would be suboptimal, and making libdpkg have to load dpkg.cfg would be
distasteful. Another issue is that if the list of foreign architectures
is on the configuration files it makes it slightly more tricky to
cross-grade dpkg, and it makes it fairly easy to accidentally remove
architectures required by the database.
Replace the option with two new commands --add-architecture and
--remove-architecture which will perform sanity checks and store and
load the architecture list (including the native arch) in an internal
db file under /var/lib/dpkg/.
The --foreign-architecture option is not a good interface, the problem
with it comes from the fact that the architectures supported by the
database are not configuration, they are state. This shows up in several
ways.
When a front-end needs to load the list of architectures, it needs to
get someone to parse dpkg.cfg files, this is currently done by dpkg
itself, and the list can be retrieved with --print-foreign-architectures,
the problem appears when wanting a front-end to load them through libdpkg.
Making the latter have to execute «dpkg --print-foreign-architectures»
would be suboptimal, and making libdpkg have to load dpkg.cfg would be
distasteful. Another issue is that if the list of foreign architectures
is on the configuration files it makes it slightly more tricky to
cross-grade dpkg, and it makes it fairly easy to accidentally remove
architectures required by the database.
Replace the option with two new commands --add-architecture and
--remove-architecture which will perform sanity checks and store and
load the architecture list (including the native arch) in an internal
db file under /var/lib/dpkg/.
libdpkg: Add new dpkg_arch database interface
The arch database will store all known architectures in the file
«/var/lib/dpkg/arch», this includes the native architecture dpkg
was built for, and all registered foreign architectures.
The arch database will store all known architectures in the file
«/var/lib/dpkg/arch», this includes the native architecture dpkg
was built for, and all registered foreign architectures.
Use the new atomic file API instead of ad-hoc code
[hertzog@debian.org:
- Switch dselect method option file. ]
[hertzog@debian.org:
- Switch dselect method option file. ]
libdpkg: New atomic file module
libdpkg: Add missing symbols to the version script
Update German translation of manual pages
Update to 2096t.
Update to 2096t.
Update German scripts translation
Update to 528t.
Update to 528t.
dpkg-buildflags: new --query-features command
Since the logic for having a hardening flag enabled or disabled depends
on the architecture, and since the flags may change over time for each
hardening feature, there needs to be a way to externally query the state
of the hardening features. Specifically, lintian needs this to be able
to figure out if a binary package is missing expected hardening features.
Instead of maintaining multiple hard-coded lists of expected hardening
features, this makes dpkg-buildflags the canonical location of the
information, which can be queried by externally. (See bug 650536.)
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Since the logic for having a hardening flag enabled or disabled depends
on the architecture, and since the flags may change over time for each
hardening feature, there needs to be a way to externally query the state
of the hardening features. Specifically, lintian needs this to be able
to figure out if a binary package is missing expected hardening features.
Instead of maintaining multiple hard-coded lists of expected hardening
features, this makes dpkg-buildflags the canonical location of the
information, which can be queried by externally. (See bug 650536.)
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Dpkg::Vendor::Debian: refactor compiler hardening logic
Refactor the hardened compiler flag logic so the "use_feature" variable ends
up controlling the final stance of each given hardening feature.
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Refactor the hardened compiler flag logic so the "use_feature" variable ends
up controlling the final stance of each given hardening feature.
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
dpkg-buildflags(1): clarify the relationship between relro/bindnow
Clarify the documentation about how bindnow will be forced off if relro
is not enabled or available.
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Clarify the documentation about how bindnow will be forced off if relro
is not enabled or available.
Signed-off-by: Kees Cook <kees@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Update German translation of manual pages
Update to 2091t.
Update to 2091t.
Update German scripts translation
Update to 528t.
Update to 528t.
dpkg-source(1): more explanations for dpkg-source --commit
Clarify the conditions under which it's possible to pass an explicit patch
file to dpkg-source --commit (for "3.0 (quilt)" source packages). This
option has a very narrow purpose: it's mainly to avoid having to
regenerate the patch which can be a costly operation for large packages
and thus assumes several things that one should not forget when using it.
Clarify the conditions under which it's possible to pass an explicit patch
file to dpkg-source --commit (for "3.0 (quilt)" source packages). This
option has a very narrow purpose: it's mainly to avoid having to
regenerate the patch which can be a costly operation for large packages
and thus assumes several things that one should not forget when using it.
dpkg-source: fix issue with relative filename given to --commit
With the “3.0 (quilt)” source format, dpkg-source would happily ignore the
patch-file parameter if it was not found, instead of properly erroring
out. Furthermore a relative filename would also not be found when the
given directory is "." since dpkg-source does a chdir("..") in that case.
Both issues are fixed by this commit.
Closes: #652414
Reported-by: Sam Hartman <hartmans@debian.org>
With the “3.0 (quilt)” source format, dpkg-source would happily ignore the
patch-file parameter if it was not found, instead of properly erroring
out. Furthermore a relative filename would also not be found when the
given directory is "." since dpkg-source does a chdir("..") in that case.
Both issues are fixed by this commit.
Closes: #652414
Reported-by: Sam Hartman <hartmans@debian.org>
Update German translation of manual pages
Update to 2090t.
Update to 2090t.
dpkg-query(1): Escape dash on field name
Regression introduced in commit 255417d2757da6a381b563cab4ae430767e41817.
Regression introduced in commit 255417d2757da6a381b563cab4ae430767e41817.
libdpkg: Add short Description and Status virtual field variants
This adds support for show:Summary and show:Status-Abbrev virtual
output fields. They get namespaced with “show:” to not stomp over
possible fields with the same name coming from binary package or
databases, which would make them inaccessible from dpkg-query.
Closes: #192619, #427945
This adds support for show:Summary and show:Status-Abbrev virtual
output fields. They get namespaced with “show:” to not stomp over
possible fields with the same name coming from binary package or
databases, which would make them inaccessible from dpkg-query.
Closes: #192619, #427945
libdpkg: Add new virtual fields support in package format show
libdpkg: Refactor pkg status to abbreviations mapping into new functions
libdpkg: Refactor field info find into a new function
Update German scripts translation
Update to 527t.
Update to 527t.
dpkg-mergechangelogs: supplementary non-regression test
Add a test that ensures that dpkg-mergechangelogs deals correctly
with invalid versions.
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Add a test that ensures that dpkg-mergechangelogs deals correctly
with invalid versions.
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
dpkg-mergechangelogs: do not error out on invalid versions
The usage of version_compare() has the side effect of erroring out as
soon as you encounter an invalid version. Replacing this call
with a comparison operator invoked on Dpkg::Version objects fixes
the issue.
Closes: #651993
Reported-by: Martin Packman <martin.packman@canonical.com>
The usage of version_compare() has the side effect of erroring out as
soon as you encounter an invalid version. Replacing this call
with a comparison operator invoked on Dpkg::Version objects fixes
the issue.
Closes: #651993
Reported-by: Martin Packman <martin.packman@canonical.com>
Dpkg::Changelog::Entry::Debian: check_header() now validates the version
Dpkg::Version: small documentation fix
Drop a part of a sentence that was incorrectly left in the documentation.
Drop a part of a sentence that was incorrectly left in the documentation.
Dpkg::Source::Package: Add missing parenthesis in find_command() call
Regression introduced in commit 383247f0d2dfbd3d0d6388f87869ac1abaa8b7cd.
Closes: #652113
Reported-by: Vincent Danjean <vdanjean@debian.org>
Regression introduced in commit 383247f0d2dfbd3d0d6388f87869ac1abaa8b7cd.
Closes: #652113
Reported-by: Vincent Danjean <vdanjean@debian.org>
libdpkg: Update reference to struct pkginfo arch member in comment
build: Ship .manpages debian files in the dist tarball
Regression introduced in commit d7c001aa6b3d49f1542df05cde60406be2e981ec.
Regression introduced in commit d7c001aa6b3d49f1542df05cde60406be2e981ec.
libdpkg: Rename version script from libdpkg.Versions to libdpkg.map
libcompat: Add missing ‘*’ in asprintf() and vasprintf() declarations
libcompat: Do not ifdef out compatibility code definitions
The code is already selected (or not) to be included by the Makefile
machinery, there's no need to disabled it too in the actual code, and
not doing so will allow to test it later on.
The code is already selected (or not) to be included by the Makefile
machinery, there's no need to disabled it too in the actual code, and
not doing so will allow to test it later on.
build: Reintroduce objdump pattern and tag test case data files
Generating these at check time causes several problems. It requires a
system supporting versioned symbols and a GNU ld command line compatible
linker. Those are not available for example on Mac OS X.
Using libtool could have been an option to portably build the shared
libraries, although that still does not provide versioned symbols where
they are not available. The problem with libtool is that there's no sane
way to refer to the actual built shared library on the build tree.
Introduce a refresh-test-data target to be able to easily regenerate
those files when needed, e.g. when the test suite changes.
Reported-by: Stuart Ambler <stuart@zulazon.com>
Generating these at check time causes several problems. It requires a
system supporting versioned symbols and a GNU ld command line compatible
linker. Those are not available for example on Mac OS X.
Using libtool could have been an option to portably build the shared
libraries, although that still does not provide versioned symbols where
they are not available. The problem with libtool is that there's no sane
way to refer to the actual built shared library on the build tree.
Introduce a refresh-test-data target to be able to easily regenerate
those files when needed, e.g. when the test suite changes.
Reported-by: Stuart Ambler <stuart@zulazon.com>
build: Unroll shared library building for objdump tests
build: Do not normalize library name for symbol file tests
scripts: Move single space objdump test case into a new data file
This will allow to regenerate the objdump.ls file.
This will allow to regenerate the objdump.ls file.
Do not use absolute paths for programs in perl and shell code
The location of programs on the filesystem is not standardized, and as
such using absolute paths is not a portable assumption to make. This
causes test suite errors on at least Mac OS X.
Use just the program name on perl system() calls, when needing the full
path use Dpkg::Path::find_command() in perl code and “which” in shell
code.
Reported-by: Stuart Ambler <stuart@zulazon.com>
The location of programs on the filesystem is not standardized, and as
such using absolute paths is not a portable assumption to make. This
causes test suite errors on at least Mac OS X.
Use just the program name on perl system() calls, when needing the full
path use Dpkg::Path::find_command() in perl code and “which” in shell
code.
Reported-by: Stuart Ambler <stuart@zulazon.com>
Dutch translation updated
Update to 272t
Update to 272t
Update German translation of manual pages
Update to 2090t.
Update to 2090t.
Stop using brace expansion to install man pages
The reason for using brace expansion in the first place was due to
debhelper starting to abort on empty glob expansion, needed because
translated man pages might not be present if not complete enough.
The installation is now handled by dh_installman which does not abort
on empty glob expansion (and in fairness should have been handling
the installation from the beginning). While the result is clearly a
regression in readability and maintainability it's certainly less ugly
than an executable debhelper config file, it also does not require
bumping debhelper Build-Depends to 8.9.12.
The reason for using brace expansion in the first place was due to
debhelper starting to abort on empty glob expansion, needed because
translated man pages might not be present if not complete enough.
The installation is now handled by dh_installman which does not abort
on empty glob expansion (and in fairness should have been handling
the installation from the beginning). While the result is clearly a
regression in readability and maintainability it's certainly less ugly
than an executable debhelper config file, it also does not require
bumping debhelper Build-Depends to 8.9.12.
libdpkg: Remove unused end pointer argument from pkg_name_is_illegal()
libdpkg: Rename arch_list to arch_head
Make the variable name consistent with other head and tail references.
Make the variable name consistent with other head and tail references.
libdpkg: Use a variable to track the built-in arch list tail
This makes it more difficult to miss updating references to it in the
code when the built-in arch list is modified.
This makes it more difficult to miss updating references to it in the
code when the built-in arch list is modified.
libdpkg: Add new arch_empty special architecture
This will allow to easily distinguish an empty architecture value, while
always having an initialized architecture variable.
This will allow to easily distinguish an empty architecture value, while
always having an initialized architecture variable.
libdpkg: Add new dpkg_arch_get() to retrieve special architectures
Switch dpkg_arch_get_native() to dpkg_arch_get(arch_native), and
dpkg_arch_find() calls to direct dpkg_arch_get() ones.
Switch dpkg_arch_get_native() to dpkg_arch_get(arch_native), and
dpkg_arch_find() calls to direct dpkg_arch_get() ones.
libdpkg: Rename arch_type enum to dpkg_arch_type
dpkg: Change --print-foreign-architectures to print an entry per line
Printing just a line with space separated entries makes both the code
to print and to parse slightly more complicated. The worst part comes
from parsing as the standard stream input operations require delimited
buffers, and as such if those buffers would not be enough truncation
would happen.
Printing just a line with space separated entries makes both the code
to print and to parse slightly more complicated. The worst part comes
from parsing as the standard stream input operations require delimited
buffers, and as such if those buffers would not be enough truncation
would happen.
dselect: Do not treat licensestring as a format string
This was spotted by a run with the clang++ static analyzer.
This was spotted by a run with the clang++ static analyzer.
Minor errors corrected in French manpages translation
dpkg: Error out if a database .list file is not a regular file
LP: #369898
Signed-off-by: Guillem Jover <guillem@debian.org>
LP: #369898
Signed-off-by: Guillem Jover <guillem@debian.org>
dpkg: Initialize all clientdata members in ensure_package_clientdata()
Although all users of replacingfilesandsaid are previously calling
clear_istobes() to make sure it's initialized, doing so when allocating
clientdata is safer from an API point of view.
Signed-off-by: Guillem Jover <guillem@debian.org>
Although all users of replacingfilesandsaid are previously calling
clear_istobes() to make sure it's initialized, doing so when allocating
clientdata is safer from an API point of view.
Signed-off-by: Guillem Jover <guillem@debian.org>
dpkg-query: Use m_calloc() instead of m_malloc() + memset()
libdpkg: Add new m_calloc()
Fix missing dash (avoided by changing word order)
Update Japanese translation of manual pages
Update to 2083t1u.
Update to 2083t1u.
Fix sub optimal translation of package states LP: #368783
Fix typo in dpkg-deb.1:208
Update German translation of manual pages
Update to 2089t.
Update to 2089t.
Update German scripts translation
Update to 526t.
Update to 526t.
Merge commit '1.16.1.2'
Conflicts:
scripts/mk/architecture.mk
Conflicts:
scripts/mk/architecture.mk
Release 1.16.1.2
Update Swedish translation.
po/sv.po: 1033t0f0u.
scripts/po/sv.po: 526t0f0u.
po/sv.po: 1033t0f0u.
scripts/po/sv.po: 526t0f0u.
German dpkg translation update
Update to 1033t.
Update to 1033t.
build: Add lib/dpkg/arch.c to POTFILES.in
Missed in commit 04c0362979a832bc0044d932cd1b705cef7b0d5b.
Missed in commit 04c0362979a832bc0044d932cd1b705cef7b0d5b.
dpkg-deb: Remove undocumented compression long options
At least --compress_type is bogus, and --compression might be confusing.
Remove them for now.
At least --compress_type is bogus, and --compression might be confusing.
Remove them for now.
dpkg-deb: Add compression strategy support
The only currently supported option is “extreme” for xz.
Closes: #647915
The only currently supported option is “extreme” for xz.
Closes: #647915
dpkg-deb: Treat compression levels independently for each backend
Even if the compression level allowed range supported by gzip/zlib
compatible interfaces is almost the same (0-9), its actual meaning
is backend specific, so treat it that way.
This allows to get native meanings for at least level 0, which maps
to 1 for bzip2, and becomes a new allowed level for xz and lzma.
The reason for the previous behaviour regarding level 0 is historic,
due to zlib treating it that way, and was inadvertently carried over
when new compressors were added to libdpkg.
Even if the compression level allowed range supported by gzip/zlib
compatible interfaces is almost the same (0-9), its actual meaning
is backend specific, so treat it that way.
This allows to get native meanings for at least level 0, which maps
to 1 for bzip2, and becomes a new allowed level for xz and lzma.
The reason for the previous behaviour regarding level 0 is historic,
due to zlib treating it that way, and was inadvertently carried over
when new compressors were added to libdpkg.
libdpkg: Switch compressor to take a parameters struct
libdpkg: Constify struct compressor variables
Reduce even more the number of relocations on the shared libdpkg
library.
Reduce even more the number of relocations on the shared libdpkg
library.
