summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem
AgeCommit message (Collapse)AuthorFilesLines
2017-08-24Support building on case-insensitive filesystemsGeoffrey Thomas11-1073/+0
Move Debian/ to lib subdirectory to support building on non-case-sensitive filesystems.
2017-07-31Revert "dh_auto_configure: Expand ${prefix} uses"Niels Thykier1-9/+8
This reverts commit eb6e510ef52430c6edb96b28879fa4f64fbcafdb.
2017-07-29cmake: Disable user package registryNiels Thykier1-0/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-29cmake: Pass -DCMAKE_INSTALL_RUNSTATEDIR=/run [c11]Niels Thykier1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-27dh_auto_configure: Expand ${prefix} usesIsaac Jurado1-8/+9
Some configure scripts look like generated by autoconf (e.g. MakeKit) but don't behave exactly the same when expanding the install paths. For example, when dh_auto_configure uses "--includedir=${prefix}/include", the "${prefix}" part is NOT always re-evaluated and, thus, expanded to "/usr". Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-15{autoconf,meson,cmake}: Avoid forking shell via doitNiels Thykier3-5/+5
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-07-03Set Emacs file variables directory-wideSven Joachim11-66/+0
Set the local variables for Emacs in the central placed intended for it, rather than in (currently) 95 individual files. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-29Phase out perl -I. in compat 11Niels Thykier2-4/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-06-07Fix typo in error messageNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-05-06meson: Pass --wrap-mode=nodownloadNiels Thykier1-1/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-05-06makefile: disable parallel during make installNiels Thykier1-0/+4
Apparently, libtool+automake has a race condition in some cases, where automake will try to relink a binary about be installed before the library is installed. The bug is many years old and apparently not a priority, so work around it in debhelper. Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-12autoconf.pm: Pass --runstatedir=/run in compat 11Niels Thykier1-1/+2
Suggested-by: Michael Biebl <biebl@debian.org> Signed-off-by: Niels Thykier <niels@thykier.net>
2017-04-04Add support for Meson build systemMichael Biebl2-0/+162
Meson is a new build system which is supposed to be extremly fast and, even more importantly, as user friendly as possible. It uses Ninja as backend to manage the actual build process. Closes: #795253 Signed-off-by: Michael Biebl <biebl@debian.org>
2017-03-04dh_auto_configure: wrong CMAKE_SYSTEM_NAME for kfreebsd cross-buildsSteven Chamberlain1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-02-18makefile.pm: Disable stripping via INSTALL in compat 11Niels Thykier1-1/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-02-18Set PKG_CONFIG for makefile buildsystemsNiels Thykier1-2/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-03fix autoconf/cross regression from #836988Helmut Grohne1-9/+5
When adding the makefile buildsystem cross variables, the intention was that it would not affect non-makefile buildsystems (in particular no downstream buildsystems). However, the decision which buildsystem to use is done on a per-target basis. Thus a typical autoconf package will use the autoconf buildsystem for configure and test, but fall back to the makefile buildsystem for clean and build. Thus the cross variables were added for autoconf build as well, which broke the cross build of icu. The solution chosen here is to have autoconf take over build and clean from makefile as well by inheriting its methods. Thus the semantics stay unchanged with the exception of not adding the cross variables for build. All other children of the makefile buildsystem (including mkcmake) already take over all targets, so this issue really only affects autoconf. Fixes: 7ea67c9aace4 ("makefile.pm: Set CC+CXX to the host compilers when cross-building") Signed-off-by: Helmut Grohne <helmut@subdivi.de> Signed-off-by: Niels Thykier <niels@thykier.net>
2016-10-01cmake.pm: Dump CMakeOutput and CMakeError on cmake errorsNiels Thykier1-0/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-09-18makefile.pm: Set CC+CXX to the host compilers when cross-buildingNiels Thykier1-1/+15
Co-Author: Helmut Grohne <helmut@subdivi.de> Signed-off-by: Niels Thykier <niels@thykier.net>
2016-09-18cmake.pm: Set pkg-config and LIBDIR when cross-buildingJulian Andres Klode1-0/+2
Co-Author: Helmut Grohne <helmut@subdivi.de> Signed-off-by: Niels Thykier <niels@thykier.net>
2016-07-31Invoke Makefile.PL and Build.PL with perl -I. as part of the fixes for ↵Dominic Hargreaves2-2/+2
CVE-2016-1238 Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-30ant.pm: Reproducible username for Ant buildsEmmanuel Bourg1-0/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2016-05-01Prefer 3-arg open in Debhelper librariesNiels Thykier1-4/+4
There are a few instances that have not been fixed yet. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-22cross cmake should specify existing compilersHelmut Grohne1-2/+2
It seems that cross symlinks for $triplet-cc and $triplet-c++ are no longer generated in the gcc-defaults. Thus switch to the canonical gcc compiler names. Signed-off-by: Niels Thykier <niels@thykier.net>
2016-02-22dh_auto_test: Add VERBOSE=1 when using autoconfGergely Nagy1-0/+10
When the build system is autoconf, assume that one also uses automake, and pass VERBOSE=1 to make check too. Without VERBOSE=1, newer automake-generated makefiles will not display the actual test errors, but store them in a file. This makes build logs considerably less useful when it comes to discovering test failures. With VERBOSE=1 set, test failures are displayed. It should have no ill effects when used with a non-automake makefile + autoconf combination. The test suite was updated to reflect the changes, and new tests were added to verify the new functionality. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org> Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06qmake.pm: mkdir builddir before starting to configureSergio Durigan Junior1-0/+1
Closes: #800738 Signed-off-by: Niels Thykier <niels@thykier.net>
2015-11-06Don't swallow $@ when configure() fails, for accurate error reporting.Jonathan Hall1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-13cmake.pm: Set SYSCONFDIF and LOCALESTATEDIRNiels Thykier1-5/+9
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-08-12Add cross-compile support to the cmake build systemHelmut Grohne1-1/+27
[nthykier: Minor style changes/refactoring] Signed-off-by: Niels Thykier <niels@thykier.net>
2015-07-01Migrate to use warnings and use parentNiels Thykier9-9/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-07configure gets --*-silent-rules depending on DH_QUIETBernhard R. Link1-1/+3
If DH_QUIET is set, give configure a --enable-silent-rules. If it is not set, always give --disable-silent-rules (Closing #551463 for good).
2015-01-07debhelper: Please make Perl tests verbosegregor herrmann2-1/+7
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-03The ant buildsystem now loads d/ant.propertiesNiels Thykier1-2/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-01-01Add editor hints to the end of all perl modules and scriptsNiels Thykier9-0/+54
Signed-off-by: Niels Thykier <niels@thykier.net>
2014-06-13Pass --disable-silent-rules in dh_auto_configure if DH_VERBOSE is set.Joey Hess1-0/+3
2014-02-04Use realclean instead of distclean on perl_build buildsystem.gregor herrmann1-1/+1
Switch from `Build distclean' to `Build realclean' in the clean action of the perl_build buildsystem. 'distclean' is not specified in the CPAN::API::BuildPL specification, and therefor not implemented in Module::Build::Tiny (and other future implementations). Besides that, the dist* actions are meant for upstream authors.
2013-12-05cmake: Configure with -DCMAKE_BUILD_TYPE=None Closes: #701233Joey Hess1-1/+1
2013-11-05Fix (horrible) make output parsing code to work with make 4.0. Closes: ↵Joey Hess1-1/+1
#728800 Thanks, Julien Pinon
2013-08-20makefile buildsystem: Tighten heuristic to detect if makefile target exists. ↵Joey Hess1-1/+1
An error message that some other target does not exist just means the makefile spaghetti has problems later on when run with -n, but not that the called target didn't exist. Closes: #718121
2013-08-15dh_install, dh_installdocs, dh_clean: Fix uses of find -exec which cause it ↵Joey Hess1-1/+1
to ignore exit status of the commands run.
2013-08-09Fix typo for propagateGuillem Jover1-1/+1
2013-06-30perl_build: Use -- long option names, for compatability with ↵Joey Hess1-5/+5
Module::Build::Tiny. Closes: #714544 (Thanks, gregor herrmann)
2013-06-24makefile buildsystem: Added heuristic to catch false positive in makefile ↵Joey Hess1-7/+42
target detection code. Closes: #713257 Nasty make ... why won't it tell us what's in its pocketses?
2013-06-04Correct broken patch for #706923. Closes: #707481Joey Hess1-1/+2
2013-05-16Revert unsetting INSTALL_BASE. Closes: #708452 Reopens: #705141Joey Hess1-1/+1
2013-05-07Revert python2.X-minimal fix, because it was buggy. Closes: #707111 (Reopens ↵Joey Hess1-8/+1
#683557)
2013-05-06makefile buildsystem: Pass any parameters specified after -- when running ↵Joey Hess1-2/+2
make -n to test for the existance of targets. In some makefiles, the parameters may be necessary to enable a target. Closes: #706923
2013-05-05perl_makemaker: Unset INSTALL_BASE in case the user has it set. Closes: #705141Joey Hess1-1/+1
2013-02-24cmake: Configure with -DCMAKE_BUILD_TYPE=RelWithDebInfo Closes: #701233Joey Hess1-0/+1
I'm told this only avoids building with -O3 -DNDEBUG, a change which should have no potential for breaking anything.
2012-10-22adjust other fixJoey Hess1-1/+8
This is really atrocious, but IIRC the order pythons are run in matters, so the earlier mangling of @python_requested must remain, and so unmangle it here.