On 13 October 2016 at 19:39, Charles Plessy wrote:
| Le Mon, Jan 25, 2016 at 07:44:16AM +0100, Tobias Frost a écrit :
| > pdebuild --debbuildopts "-I -i -j4 -d"
| > fails, a plain pbdebuild fails NOT...
| Hi Tobias and Dirk,
| the build fails because the "-j4" argument asks to build in parallel with up
| 4 threads, but debian/rules currently does not support parallel build.
| One reason for this is that it attempts to make some targets too early, before
| the configure script has finished to execute.
| The following patch solves this part of the problem:
| --- a/debian/rules
| +++ b/debian/rules
| @@ -294,8 +294,8 @@ configure-stamp:
| touch configure-stamp
| -make-arch: configure make-arch-stamp
| +make-arch: make-arch-stamp
| +make-arch-stamp: configure-stamp
| @echo "*** make-arch ***"
| $(MAKE) CFLAGS="$(cflags)" \
| CXXFLAGS="$(cxxflags)" \
| @@ -346,8 +346,8 @@ make-arch-stamp:
| touch make-arch-stamp
| -make-indep: configure make-indep-stamp
| +make-indep: make-indep-stamp
| +make-indep-stamp: configure-stamp
| @echo "*** make-indep ***"
| ## edd 12 Jan 2004 uncommenting 'make docs' to split binary all/any
| ## now that recommended packages aren't made
| This makes sure that make-arch-stamp and make-indep-stamp are only run after
| the file configure-stamp has been created by the configure target.
I applied that -- configure-stamp is now a pre-condition for
| Unfortunately, there must be a less obvious issue remaining, because
| the build still fails, although at a later stage.
One step at a time...
| PS: because of the uncertainties with cut-and-paste of tab whitespace, I am
| sure if the patch would actually apply, but at least it tells what to change
| Have a nice day,
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org