Age | Commit message (Collapse) | Author | Files | Lines |
|
This variable should not be dpkg specific, as it is supposed to be set
by any builder driving the package build, and not just dpkg itself.
Introduce ephemereal backwards compatibility by mapping the old name to
the new one, even thught there are no known users.
|
|
It's confusing to emit the compare problems as warnings when they cause
the program to exit with an error exit code.
Closes: #881488
|
|
Requested-by: Samuel Thibault <sthibault@debian.org>
|
|
[guillem@debian.org:
- Update unit-tests. ]
Closes: #822914
Stable-Candidate: 1.18.x
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
Add new positive options argument to arch validators, as the Architecture
field should not accept negated architectures. We preserve the current
functions default behavior and add a new option to control whether to
reject negated architectures.
Fixes: commit d355b340f3a6cde7fc1cb5649d82fbebd3b97ea1
Stable-Candidate: 1.18.x
|
|
This adds support for AS, STRIP, OBJCOPY, OBJDUMP, NM, AR and RANLIB.
Prompted-by: Helmut Grohne <helmut@subdivi.de>
|
|
being defined
Fixes: commit 0d2b3cee25b74dd3fd9ddc3a469b8b144368c963
Closes: #880166
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
Add new test_get_temp_path() function, and replace all hardcoded
settings of the temporary directory and its creation.
|
|
We can easily know the name of the calling unit test, and can thus infer
the pathname for the data directory, instead of having to duplicate the
name, and potentially ending with it being out of sync.
|
|
|
|
Within scripts operating on lots of different package changelogs,
this can help track down where these warnings come from.
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
We need to access the features within the feature area hash now. Missed
in a previous refactoring.
Fixes: commit 2125e8dd7388e2adb9b6c837f4832fe8f0f63b25
Reported-by: Mattia Rizzolo <mattia@debian.org> (on IRC)
Closes: #881051
|
|
|
|
|
|
The initial color support only covered the C and perl programs, and
missed this shell script.
|
|
Closes: #879124
Warned-by: perl
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
When building in R³ mode or when the user requested to run a rule as
root we should setup the rootcommand, otherwise we should ignore it.
Reported-by: Niels Thykier <niels@thykier.net>
|
|
It used to be the case that dpkg-source did not support running from
the current directory. That got fixed in commit
a7f16be86689ee46f4b2e445e5f08a63f447cdeb. Which means we can simplify
the code.
|
|
This meant the field was being ignored.
|
|
Reported-by: Ximin Luo <infinity0@debian.org>
Stable-Candidate: 1.18.x
|
|
The build targets never require root, so checking them will always return
false. We need to key on the binary target instead.
This broke tons of packages that are violating Debian policy MUSTs.
Thanks-to: James Clarke <jrtc27@debian.org>
Closes: #878899
|
|
Update to 599t.
|
|
|
|
|
|
Some commands pass some arguments through to another command, and those
must not be normalized as that might break their invocation.
Reported-by: Helmut Grohne <helmut@subdivi.de>
Stable-Candidate: 1.17.x 1.18.x
|
|
If we are not reducing the architectures, or we are not going to use the
known facts, we do not need to know and set the host architecture, which
relies on gcc being present.
Closes: #856396
|
|
We are emitting options or errors elsewhere.
|
|
|
|
We want to be able to check for prerequisites when loading the source
format module. That function used to be called import, which is a
misnomer here, and was not being invoked.
Rename it to the more appropriate prerequisites() and call it if it's
present from the module loading code.
Addresses: #877688
|
|
|
|
When we are building a source package, if we find a binary signature in
the form of a .sig file, we should try to auto-convert it to the format
that we expect to include in the source package, which is an OpenPGP
ASCII Armor.
|
|
We switch from a capturing regex to split() plus a checking regex.
|
|
We store the first character in a variable.
|
|
We should only apply the "costly" substitution when there is at least
one whitespace.
|
|
We remove the trailing space after the chomp, so that we cover the
common case of a single \n with chomp, and do not need to check for
trailing spaces more than once while parsing.
We preserve the chomp'ed string to be used for the Armor Header checks,
which have a different set of allowed whitespace, than what \s covers.
|
|
Usually we will just have Armor Headers at the beginning and end of the
data, so it's more common to find stanza delimiter lines. Optimize for
that.
|
|
|
|
This make fragment contains setup for build tool variables for both TOOL
and TOOL_FOR_BUILD. It does not get included by default from default.mk
|
|
This new area includes an lfs feature, to be used instead of the
getconf(1) interfaces which cannot support cross-building.
|
|
|
|
|
|
This reduces code redundancy, and makes it possible to reuse common code
for various feature areas.
|
|
We support a new source package Description field in debian/control
that will be copied into the .dsc file. The field will also be used
to initialize the new source:Synopsis and source:Extended-Description
substvars that will be available when generating the DEBIAN/control
and .changes files.
Closes: #555743
|
|
This field can have substvars applied in the binary package, so it is a
safe replacement compared to all other output fields. More so with the
newly introduced S:<source-field> style automatic substvars.
Closes: #856547
|
|
|
|
Packages intended to be built in a generic way must never rely on the
currently running kernel on the build system (an exception could be an
optimization rebuild using the current system as the reference baseline).
But to be able to detect when a package might not be reproducible due to
varying kernel information it is still useful to be able to record this
information. Although that information can be very sensitive.
When the builder has explicitly enabled the Build-Kernel-Version field
with the new dpkg-genbuildinfo --always-include-kernel option, it will
get included in the generated .buildinfo file.
Closes: #873937
|
|
Update to 594t.
|
|
|
|
This command is equivalent to --status but in deb822 format.
|
|
Implement the rootless-builds specification, by honoring the
Rules-Requires-Root (R³) field.
|