summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-28perl: Switch from legacy File::Path functions to new onesGuillem Jover5-12/+13
Use make_path() instead of mkpath(), and remove_tree() instead of rmtree().
2015-01-28Dpkg::Shlibs: Prefer multiarch paths to multilib onesHelmut Grohne2-3/+5
Match the ld.so path resolution logic, by preferring multiarch paths over multilib or cross paths. [guillem@debian.org: - Adapt to current code. ] Closes: #772184 Signed-off-by: Guillem Jover <guillem@debian.org>
2015-01-28Dpkg::Shlibs: Split multiarch cross-compilation libraries from toolchain onesGuillem Jover1-1/+5
Split them so that we can mark the toolchain cross-compilation libraries as deprecated, and in the future possibly just hide them by default.
2015-01-28Dpkg::Shlibs: Do not use an intermediate library path variableGuillem Jover1-5/+5
Assign directly to @librarypaths when adding the cross-compilation library paths.
2015-01-28Dpkg::Shlibs: Detangle deprecated multilib paths into their own variablesGuillem Jover1-2/+6
This will allow in the future to hide these by default and avoid polluting the default paths.
2015-01-28Dpkg::Shlibs: Remove support for GCC_TARGET environment variableGuillem Jover2-4/+2
This was a temporary workaround for very old gcc toolchains. See: #453267
2015-01-28Dpkg::Shlibs: Move @librarypaths setup into new setup_library_paths() functionGuillem Jover1-42/+55
This avoids inflicting the cost of the setup on any code loading the module. It also makes it easier to unit test the module.
2015-01-28Dpkg::Shlibs: Rename reset_library_paths() to blank_library_paths()Guillem Jover2-7/+7
This will allow to initialize the library paths to be an empty array, instead of just resetting it after the fact, which means the new name will make more sense.
2015-01-28test: Remove unused @save_paths variableGuillem Jover1-1/+0
2015-01-28Dpkg: Use shift instead of @_ on single argument unpackingGuillem Jover43-125/+135
2015-01-28Dpkg::Arch: Refactor table loading into a common functionGuillem Jover1-49/+25
The loading is always the same, the difference is just in the parsing logic.
2015-01-28Dpkg::Arch: Assume abitable is always presentGuillem Jover3-13/+9
Switch the conditional loading of the abitable to expect it to always exist, and bump libdpkg-perl depends on dpkg to 1.16.3, the version introducing the file. This will allow some refactoring.
2015-01-28test: Move use strict and warnings as the first directivesGuillem Jover10-13/+23
2015-01-28test: Check perl code compilation, warnings and strictnessGuillem Jover4-0/+51
2015-01-28test: Add new common Test::Dpkg moduleGuillem Jover4-7/+45
This will centralize common testsuite functions.
2015-01-28test: Rename TAP test directories from test to tGuillem Jover31-7/+7
2015-01-28test: Fix perlcritic errors in t-tar.tGuillem Jover1-3/+3
Fixes ValuesAndExpressions::RequireQuotedHeredocTerminator and ValuesAndExpressions::ProhibitInterpolationOfLiterals.
2015-01-28build: Rename perl scripts to have a .pl extensionGuillem Jover7-7/+29
This allows to easily replace the shebang at installation time to use the system perl interpreter and will make it easier to analyze all perl scripts in the source tree.
2015-01-28Remove trailing newline from string literal in warning callsGuillem Jover3-2/+3
2015-01-28scripts: Rename and deprecate _g function with g_Guillem Jover66-765/+783
The old function name was inconsistent with the other gettext family of short aliases which has already caused some code typos, and functions starting with underscore are considered by convention private in Perl.
2015-01-28dpkg-gensymbols: Add support for arch-bits and arch-endian tagsGuillem Jover10-102/+331
These allow to tag symbols as being only relevant on architectures with specific bits or endianness. The current supported values are 32 and 64 for arch-bits, and little and big for arch-endian. They can also be combined by using multiple tags on the same symbol. Closes: #630342
2015-01-28Dpkg::Shlibs::Symbol: Use new debarch_is_concerned() instead of Dpkg::DepsGuillem Jover1-6/+2
Stop abusing the Dpkg::Deps object just to get the architecture computation from it.
2015-01-28Dpkg::Arch: Add new debarch_is_concerned()Guillem Jover2-23/+31
Factor out from Dpkg::Deps::Simple::arch_is_concerned().
2015-01-28libdpkg: Remove now unused cistype() functionsGuillem Jover4-29/+0
These have a suboptimal license and implementation. Just get rid of them.
2015-01-28Switch code to use the new C locale character type functionsGuillem Jover23-98/+139
2015-01-28libdpkg: Add new pure ASCII C locale character type functionsGuillem Jover8-0/+429
These do not get affected by the user locale, nor by the character encodings. For dpkg control data, we always want to use ASCII.
2015-01-26Remove unused <ctype.h> includesGuillem Jover9-9/+0
2015-01-26libdpkg: Add missing symbols to the version scriptGuillem Jover1-0/+8
Some of these where accidentally dropped, reinstate them for now.
2015-01-26libdpkg: Change m_calloc() signature to take also a nmemb argumentGuillem Jover3-5/+5
We are using these on arrays, so we end up having to compute the total size from the number of members and the member size. Just delegate the computation to the underlaying call which should ideally also handle overflows and similar. And we can always pass nmemb=1 from the call sites if needed.
2015-01-26debian: Document the postinst triggered invocation in the comment headerGuillem Jover2-0/+5
2015-01-26man: Document dpkg-query --search behaviorGuillem Jover2-3/+14
Add how the pattern is interpreted as a substring match, or as a literal path lookup. And explain how some metacharacters behave. Closes: #775379
2015-01-26dpkg-query: Only trim trailing "/" and "/." from pathnames in --searchGuillem Jover2-14/+11
We should not be trimming those characters from substring matches, or we might get very confusing results. This was actually the intention behind commit af9e264518c4cab8e70788d0724d362ef25534d6, but somehow failed at it.
2015-01-26man: Use “wildcard characters” instead of “wildchars” in dpkg-query(1)Guillem Jover2-2/+3
2015-01-26man: Document that current feature areas only work on Debian and derivativesGuillem Jover2-2/+4
2015-01-26man: Fix and update Arch substvar description in deb-substvars(5)Guillem Jover2-2/+4
2015-01-26man: Improve dpkg-maintscript-helper pkgname argument documentationGuillem Jover2-4/+10
Clarify how the package name gets generated when empty or omitted, and when it sould be arch-qualified or not depending on whether the package is Multi-Arch:same. Closes: #776072
2015-01-26man: Update dpkg --log documentationGuillem Jover2-1/+8
Add missing actions, and describe the startup messages. Closes: #773398
2015-01-17man: Add the version when dpkg-deb --raw-extract was addedGuillem Jover2-1/+2
2015-01-17man: Document versioned ProvidesGuillem Jover2-1/+3
2015-01-17man: Document arch-qualifiers for dependency fieldsGuillem Jover3-7/+32
Closes: #768842 Reported-by: Johannes Schauer <j.schauer@email.de>
2015-01-14Remove references to my @debian.org email addressPeter Krefting8-12/+12
2014-12-28Bump version to 1.18.0Guillem Jover3-2/+8
2014-12-27Release 1.17.23Guillem Jover1-3/+3
2014-12-27Regenerate .pot files and merge .po files with themGuillem Jover81-864/+930
2014-12-27debian: Add versioned Breaks on packages creating trigger cyclesGuillem Jover2-0/+19
There are two groups of packages, ones where the old version of the packages produced trigger cycles as they were using awaiting trigger directives, but are fixed now, which get a << versioned Breaks on the fixed version. And packages that are still not fixed that get a <= versioned Breaks on the broken version.
2014-12-27libdpkg, dpkg: Fix out-of-bounds read accessesGuillem Jover6-53/+63
Limit the buffer accesses to the size of the buffer being accessed. This affects reads done when parsing field and trigger names, or checking the package ownership of conffiles and directories. Use a new length member for struct fieldinfo and nickname to avoid recomputing the same known length over and over again, but use strlen() instead for arbitrary fields, conffiles and directories to avoid increaseing the memory footprint too much. Reported-by: Joshua Rogers <megamansec@gmail.com>
2014-12-27dpkg: Reset trigger cycle tracking on unsatisfied dependencies during trigprocGuillem Jover2-0/+9
If we are not going to process triggers due to an unsatisfied dependency, we should reset the trigger cycle tracking information so that we do not end up reporting bogus cycle errors. Closes: #771730
2014-12-23libdpkg: Skip tar extractor tests if tar is not GNU tar >= 1.27Guillem Jover2-1/+13
This allows building on older systems.
2014-12-23dselect: Use a matching group instead of ${^MATCH} in s///Guillem Jover2-1/+4
It seems that this is not supported or does not work in perl 5.14.0, although it should be since 5.10.0. Switch to a group matching to allow using older perl version from stable.
2014-12-23po: Update Polish dselect translationŁukasz Dulny1-3/+3
Signed-off-by: Guillem Jover <guillem@debian.org>