Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This allows to accept «-ovalue», «-o value», «--option=value» and
«--option value», which are the common option formats people expect.
|
|
|
|
Because the code did not state that the DEB_TARGET_ARCH requires the
DEB_HOST_ARCH variable to be set, it was getting undefined values.
Just initialize to the host value w/o assuming it has already been set.
|
|
The latter is an old name for the architecture wildcards.
|
|
This allows to select specific subsets of all valid known architectures,
matching by wildcard (-W), endianness (-E) or bits (-B). The restricting
options can be combined, or omitted altogether.
Closes: #762635
|
|
We can do this now that the variables initialized are performed on
demand, so that we can request no variables at all. This makes the
code more consistent on when to act on the given commands.
|
|
|
|
Stating that these handle the “current” architecture makes no sense, and
it's not more clear. Just say clearly what they work with.
|
|
This adds support for the DEB_TARGET_ family of variables, which denote
the machine the compiler should be building for.
If the user did not specify them on the command line they will default
to the host architecture.
|
|
|
|
In these cases we are not interested if the variables are defined, but
if they have actual content.
|
|
These have better runtime performance, not that it matters in many of
the instances here though.
Addresses RegularExpressions::ProhibitUnusedCapture.
Warned-by: perlcritic
|
|
Fixes Variables::ProhibitMatchVars.
Warned-by: perlcritic
|
|
The -L argument is not an option, it's a full blown command.
|
|
|
|
|
|
Rename, uppercase and do not export new variables by default, to avoid
cluttering the caller namespace, and to give them consistent names. We'll
keep the old variables for a while, to not break uses from external
modules.
Addresses Variables::ProhibitPackageVars.
|
|
Using double-quotes imposes a small performance penalty as the perl
parser needs to check if any interpolation is needed. Use double-quotes
only when the string contains single-quotes. Ideally we'd use
double-quotes too for escaped meta-characters that might otherwise be
confusing to immediately see if they need interpolation or not, but the
policy does not (currently) allow to ignore these.
Fixes ValuesAndExpressions::ProhibitInterpolationOfLiterals.
Warned-by: perlcritic
|
|
Do not quote the keys for any hash which will always use simple
identifiers, as that is taken care of by the => operator. So this does
not apply to overload pragmas, version operators, field names, substvars,
command line options or filenames.
Addresses ValuesAndExpressions::ProhibitInterpolationOfLiterals.
Warned-by: perlcritic
|
|
|
|
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.
|
|
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>
|
|
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.
|
|
|
|
|
|
Having to keep this information twice is error-prone as it easily gets
out of sync. Having to translate it is bothersome. It's not consistent
across dpkg tools, some do print it some don't. It's currently not
accurate, as the output would need to include the holders for all files
that end up being part of the binary. And listing it in the --versions
output is visually annoying and the wrong place.
Just keep this where it belongs, at the file comment headers, above the
license information.
|
|
The way to avoid the warning when cross-building is to set a correct
CC environment variable.
|
|
This has the following consequences:
- Fixes the bootstrapping problem, as the dpkg build system only needs
the host architecture, for which dpkg itself is not required.
- Reduces the amount of work performed, including loading and parsing
unnecessary table files or calling either of gcc or dpkg programs.
It has the additional side-effect that some sanity checks are not
performed over the host specified variables, but as we are not going
to use them, even if they would give warnings, that is ok.
|
|
This gives unified error messages.
|
|
This will make it easier to conditionally set them, and makes the code
clearer.
|
|
Add new variables that return the "ideal" GNU triplet for each architecture
which should be used as the path component for library installation.
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
The variables are set initially once, and then possibly overriden by the
user supplied arguments. Rearrange the code to set these only once.
|
|
This removes almost duplicate strings for translation.
|
|
Use “use warnings” instead of passing “-w”. Remove “--” parameters.
Remove shebangs from perl modules. Remove spaces after “#!”.
|
|
Use the <http://www.gnu.org/licenses/> URL, instead of in most cases
the outdated FSF address, which is way more stable, as the latter has
changed several times in the past.
|
|
Enhanced cputable to describe the new columns.
Let dpkg-dev depend on dpkg (>= 1.15.4) to ensure that we have an updated
cputable (and so that a versioned build-dependency on dpkg-dev is enough to use
this new feature).
Document the new variables in the manual page dpkg-architecture(1).
|
|
Add new DEB_(HOST|BUILD)_ARCH_(BITS|ENDIANNESS) variables to ease work
for porters.
|
|
|
|
The remaining non exported functions and variables need to, either
disappear, move to some better place, be renamed, or for variables
to get hidden through a getter/setter.
|
|
|
|
All scripts calling get_host_arch are expected to support getting the
value overriden by the environment when cross building. Except for
dpkg-architecture, which needs more fine grained control, and calls
directly the get_raw_ functions.
|
|
Reduce the code by using a hash to store the build and host architecture
values, and the values of @ordered as keys.
|
|
|
|
|
|
|
|
To preserve the same behaviour move the initialization of host and build
variables after the argument processing loop.
|
|
|
|
|
|
|