Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Enable parallel builds.
· cde6d94c
Bas Couwenberg
authored
May 04, 2018
cde6d94c
Don't use parallel for doc & man-install targets.
· e63ce423
Bas Couwenberg
authored
May 04, 2018
e63ce423
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
e63ce423
...
...
@@ -3,6 +3,8 @@ postgis (2.4.4+dfsg-2) UNRELEASED; urgency=medium
* Re-enable SFCGAL support, FTBFS with CGAL 4.11 is fixed.
* Drop unnecessary get-orig-source target from rules file.
* Bump Standards-Version to 4.1.4, changes: get-orig-source target.
* Enable parallel builds.
* Don't use parallel for doc & man-install targets.
-- Bas Couwenberg <sebastic@debian.org> Fri, 06 Apr 2018 16:39:56 +0200
...
...
debian/rules
View file @
e63ce423
...
...
@@ -107,8 +107,13 @@ COMMON_CONFIGURE_ARGS = --host=$(DEB_HOST_GNU_TYPE) \
--without-interrupt-tests
\
--with-gui
NJOBS
:=
-j1
ifneq
(,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
NJOBS
:=
-j
$(
subst
parallel
=
,,
$(
filter
parallel
=
%,
$(
subst
$(
COMMA
)
, ,
$(
DEB_BUILD_OPTIONS
))))
endif
%
:
dh
$@
--with
autoreconf
dh
$@
--with
autoreconf
--parallel
override_dh_autoreconf
:
dh_autoreconf ./autogen.sh
...
...
@@ -123,8 +128,8 @@ override_dh_auto_clean: debian/control
rm
-rf
$(CURDIR)/debian/build-$$PGVER;
\
done)
[
!
-f
GNUmakefile
]
||
$(MAKE)
distclean
||
true
[
!
-f
GNUmakefile
]
||
$(MAKE)
-C
doc
images-clean
||
true
[
!
-f
GNUmakefile
]
||
$(MAKE)
$(NJOBS)
distclean
||
true
[
!
-f
GNUmakefile
]
||
$(MAKE)
$(NJOBS)
-C
doc
images-clean
||
true
# Cleanup after the Makefile
rm
-f
postgis/postgis_upgrade_20_minor.sql.in
\
...
...
@@ -169,30 +174,30 @@ override_dh_auto_configure:
override_dh_auto_build-arch
:
build-arch-stamp
build-arch-stamp
:
# Build against the newest Postgres version
$(MAKE)
$(MAKE)
-C
doc
$(MAKE)
$(NJOBS)
$(MAKE)
$(NJOBS)
-C
doc
# Build against all other Postgres versions
(set
-e;
\
for
PGVER
in
$(OTHER_POSTGRES_VERSIONS);
do
\
$(MAKE)
-C
$(CURDIR)/debian/build-$$PGVER;
\
$(MAKE)
$(NJOBS)
-C
$(CURDIR)/debian/build-$$PGVER;
\
done)
touch
$@
override_dh_auto_build-indep
:
build-arch-stamp
# Let PostGIS create a perl script from postgis_restore.pl.in
$(MAKE)
-C
utils
$(MAKE)
$(NJOBS)
-C
utils
# Create a few SQL scripts that the Makefiles are not clever enough
# to resolve, when building arch-indep only.
$(MAKE)
-C
postgis
postgis.sql
postgis_upgrade.sql
$(MAKE)
-C
raster/rt_pg
rtpostgis.sql
rtpostgis_upgrade.sql
$(MAKE)
-C
topology
topology.sql
topology_upgrade.sql
$(MAKE)
$(NJOBS)
-C
postgis
postgis.sql
postgis_upgrade.sql
$(MAKE)
$(NJOBS)
-C
raster/rt_pg
rtpostgis.sql
rtpostgis_upgrade.sql
$(MAKE)
$(NJOBS)
-C
topology
topology.sql
topology_upgrade.sql
# This creates the required SQL scripts. Again, the Makefile is not
# clever enough to run this before 'install'.
$(MAKE)
-C
extensions
$(MAKE)
$(NJOBS)
-C
extensions
override_dh_auto_test
:
# Run unit tests (against the newest Postgres version, first)
...
...
@@ -232,17 +237,17 @@ override_dh_auto_install-indep:
# install only utils and extensions. However, there are sql scripts
# in postgis, raster and topology as well, which need to be
# installed for the -scripts package(s).
$(MAKE)
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
$(MAKE)
$(NJOBS)
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
# Install all older Postgres versions.
(set
-e;
\
for
PGVER
in
$(OTHER_POSTGRES_VERSIONS);
do
\
$(MAKE)
-C
$(CURDIR)/debian/build-$$PGVER
\
$(MAKE)
$(NJOBS)
-C
$(CURDIR)/debian/build-$$PGVER
\
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
;
\
done
)
# Compile and install docs
$(MAKE)
-C
doc
docs-install
\
$(MAKE)
$(NJOBS)
-C
doc
docs-install
\
DESTDIR
=
$(
CURDIR
)
/debian/tmp
\
PGSQL_DOCDIR
=
/usr/share/doc
...
...
@@ -266,12 +271,12 @@ override_dh_install-indep:
override_dh_auto_install-arch
:
# Install the extension for the most recent Postgres verison
$(MAKE)
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
$(MAKE)
$(NJOBS)
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
# Install the extensions for the older Postgres versions
(set
-e;
\
for
PGVER
in
$(OTHER_POSTGRES_VERSIONS);
do
\
$(MAKE)
-C
$(CURDIR)/debian/build-$$PGVER
\
$(MAKE)
$(NJOBS)
-C
$(CURDIR)/debian/build-$$PGVER
\
install
DESTDIR
=
$(
CURDIR
)
/debian/tmp
;
\
done
)
...
...