Age | Commit message (Collapse) | Author | Files | Lines |
|
dh_perl is run for all packages so we cannot expect perl-xs-dev to be installed in the general case.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
When cross building, run Build.PL and Build with host arch Config.pm
(provided by the perl-xs-dev package since perl/5.30.0-7) first on @INC.
We need to set PERL5LIB because Module::Build forks a child process
to sanity check the Config it's seeing, so the modified search
path has to be propagated via the environment.
|
|
When cross building, run Makefile.PL with host arch Config.pm (provided
by the perl-xs-dev package since perl/5.30.0-7) first on @INC.
This is an initial implementation that seems to work for a majority of
simple XS module packages. It's possible that it will need tuning in
the future to accommodate more complex packages.
In particular:
- setting PERL5LIB instead of adding the -I option might be needed
to propagate the modified search path to child processes of Makefile.PL
- the 'make' phase may need modifications to the search path as well
|
|
Since perl/5.30.0-7, the perl-xs-dev package provides the host
architecture Config.pm in /usr/lib/<triplet>/perl/cross-config-<version>
for the benefit of cross builds.
For more information, see the thread around
https://lists.debian.org/debian-perl/2019/10/msg00015.html
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
We do not want to pay a non-trivial cost of loading Dpkg::Deps in
every helper (for cases where that is needed to parse th dh-sequence
clause).
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
build-depends
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Previously, we relied on a command being inserted in the -arch
sequence to be ordered correctly. With this rewrite, a command added
only to the -indep sequence will still appear in the right order.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Disable auto-abbreviation of command-line options in compat 13 and
re-enable dh's optimization for skipping redundant commands when
passed long options.
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Since the beginning, debhelper has accepted abbrevated command line
parameters. Anyone that has been using (e.g.):
dh $@ --sourcedir=foo
To pass --sourcedir to dh_install has *also* implicitly passed it to
the dh_auto_* helpers. Due to auto-abbrevation being enabled, they
have considered it a short form of --sourcedirectory.
This is trivially confirmable by comparing:
dh_auto_configure --bar foo
Unknown option: bar
dh_auto_configure: unknown option or error during option parsing; aborting
with
dh_auto_configure --sourcedir foo
dh_auto_configure: invalid or non-existing path to the source directory: foo
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
target build system
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
This reverts commit dbdc8f0188b26734031c00c8fb227208841dd531.
At least one package uses V in a different way than a simple
boolean-ish variable, and thus causes a build failure. As pointed out
on the bug report, there is no sane way to predict what variables
makefiles are going to use, and it might cause hidden issues and
mis-builds rather than simple build failures.
Closes: Debian#914419
Signed-off-by: Luca Boccassi <bluca@debian.org>
|
|
This make debhelper work when run under nohup(1), which opens stdin
for writing. Trivial to test with:
dpkg-buildpackage [...] 0>/dev/null
(Once you know that you are looking for it).
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Allows a terse build to be quieter, and defaults to a verbose build
as indicated by Debian Policy 4.2.0 (section 4.9).
Signed-off-by: Luca Boccassi <bluca@debian.org>
|
|
The former calls /bin/pwd, while the latter uses the getcwd syscall
directly. This eliminates some forks and execs from every build.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
* Also fix using of the QUIET internal setting in autoconf and cmake
build systems.
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|
|
Signed-off-by: Niels Thykier <niels@thykier.net>
|