LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2014, 05:37 AM   #1
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Rep: Reputation: Disabled
Lightbulb Parallel jobs with dpkg-buildpackage


Attempting to build a deb package with 8 parallel jobs but can only spawn one single job.

I've got the following debian/rules file:

Code:
#!/usr/bin/make -f
export DH_OPTIONS


%:
	dh $@  --with autotools-dev
I tried running:

- dpkg-buildpackage -j8
- setting (and exporting) DEB_BUILD_OPTIONS=parallel=8
- and even setting (and exporting) MAKEFLAGS=-j8

Nothing worked and the build makes use of only one core. What's the correct procedure to spawn a parallel build?


NOTE: source builds using all 8 logical cores if make -j8 is used instead.
 
Old 04-19-2014, 07:36 AM   #2
miguelg
Member
 
Registered: Oct 2009
Location: UK
Distribution: Xubuntu
Posts: 31

Original Poster
Rep: Reputation: Disabled
Found solution to this and it is as simple as appending --parallel to dh in the debian/rules file. So the rules file becomes:

Code:
#!/usr/bin/make -f
export DH_OPTIONS


%:
	dh $@  --with autotools-dev --parallel
dpkg-buildpackage still needs to be invoked with -j<num_threads> though.

Last edited by miguelg; 04-24-2014 at 05:03 PM.
 
  


Reply

Tags
build, deb, dpkg, parallel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dpkg-buildpackage: passing ./configure options? neocookie Debian 3 08-27-2008 09:20 PM
what's this dpkg-buildpackage error mean? lugoteehalt Debian 5 08-06-2007 01:02 PM
dpkg-buildpackage problem... wrongman Ubuntu 2 11-03-2006 03:10 AM
problem with dpkg-buildpackage cottonmouth Debian 0 12-12-2004 02:34 PM
Where can I learn about dpkg-buildpackage? Durham Debian 1 02-29-2004 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration