chiark / gitweb /
Summary: Make the build not run in parallel (fixes: #991133)
authorMatthew Vernon <matthew@debian.org>
Mon, 19 Jul 2021 10:24:03 +0000 (11:24 +0100)
committerMatthew Vernon <matthew@debian.org>
Mon, 19 Jul 2021 10:24:03 +0000 (11:24 +0100)
The changes from Helmut to make cross-building work moved us from
non-parallel to parallel builds. Unfortunately, the build system isn't
parallel-build-safe (see, for example, the calls of make from within
the Makefile), and this meant that in some circumstances the
concordance file ended up empty.

This package is very quick to build, so tell dh_auto_build to not
attempt parallel building.

debian/rules

index bdde4683cd2abd6206f169b4bc28a8d818726196..64fdebbda86332cbcc33c09da799646683e7863b 100755 (executable)
@@ -20,9 +20,9 @@ package=bible-kjv
 
 build:
        $(checkdir)
-       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- bible-index.c bible.data bible.data.conc 'LD=$$(CC)'
+       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build --no-parallel -- bible-index.c bible.data bible.data.conc 'LD=$$(CC)'
        rm -f *.o
-       dh_auto_build -- bible 'LD=$$(CC)'
+       dh_auto_build --no-parallel -- bible 'LD=$$(CC)'
        cd debian && $(CC) -g -O2 -o randverse randverse.c
        touch build