On Sun, Aug 27, 2017 at 3:14 PM, Roger Shimizu <rogershim...@gmail.com> wrote:
On Mon, Aug 28, 2017 at 1:09 AM, Debian Bug Tracking System <ow...@bugs.debian.org> wrote: > ---------- Forwarded message ---------- > From: Roger Shimizu <rogershim...@gmail.com> > To: Debian Bug Tracking System <sub...@bugs.debian.org> > Cc: > Bcc: > Date: Sun, 27 Aug 2017 15:14:17 +0900 > Subject: parallel building of kernel package seems broken > Package: src:linux > Version: 4.9.30-2+deb9u3 > Severity: normal > > Dear Maintainer, > > In d/changelog, I read there's support for "DEB_BUILD_OPTIONS=parallel=N", > but this setting seems broken. No actual parallel compiling is proceeded, > as I spotted by running "uptime" command several times during building. > > Is anything else need to be set, or parallel building is turned off > because some other bugs? > > ---------- Forwarded message ---------- > From: Ben Hutchings <b...@decadent.org.uk> > To: 873373-d...@bugs.debian.org > Cc: > Bcc: > Date: Sun, 27 Aug 2017 17:07:12 +0100 > Subject: Re: Bug#873373: parallel building of kernel package seems broken > On Sun, 2017-08-27 at 15:14 +0900, Roger Shimizu wrote: >> Package: src:linux >> Version: 4.9.30-2+deb9u3 >> Severity: normal >> >> Dear Maintainer, >> >> In d/changelog, I read there's support for "DEB_BUILD_OPTIONS=parallel=N", >> but this setting seems broken. No actual parallel compiling is proceeded, >> as I spotted by running "uptime" command several times during building. >> >> Is anything else need to be set, or parallel building is turned off >> because some other bugs? > > It works for me and it looks like it works on the buildds. > > I use the dpkg-buildpackage -j option rather than directly setting an > environment variable. It might be that the way you start the build > replaces or deletes this variable. Thanks for this hint! Looked up manpage of dpkg-buildpackage, I find option "-j" equals adding: - DEB_BUILD_OPTIONS - MAKEFLAGS After adding MAKEFLAGS option, my script works as expected. [0] Thanks again! [0] https://wiki.debian.org/HowToCrossBuildAnOfficialDebianKernelPackage?action=diff&rev2=13&rev1=12 PS. Maybe you can also add this to the kernel handbook. Cheers, -- Roger Shimizu, GMT +9 Tokyo PGP/GPG: 4096R/6C6ACD6417B3ACB1