Gergely Nagy <[email protected]> writes:
> Joey Hess <[email protected]> writes:
>
>> I think this should only be done if DEB_BUILD_OPTIONS has parallel=N,
>> and should limit dpkg-deb processes to the N. If someone sends a patch
>> doing that, I'll apply it.
>
> Such a patch (against git) is attached below. I did little testing only:
> it doesn't break building without DEB_BUILD_OPTIONS=parallel=N, and it
> seems to work with parallel=4 too.
Just tested with ghc on my dual-core laptop:
$ time -v dh_builddeb
dpkg-deb: building package `ghc' in `../ghc_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc-prof' in `../ghc-prof_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc-doc' in `../ghc-doc_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc-dynamic' in `../ghc-dynamic_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc-haddock' in `../ghc-haddock_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc6' in `../ghc6_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc6-doc' in `../ghc6-doc_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc6-prof' in `../ghc6-prof_7.0.3-2_all.deb'.
Command being timed: "dh_builddeb"
User time (seconds): 266.86
System time (seconds): 8.34
Percent of CPU this job got: 102%
Elapsed (wall clock) time (h:mm:ss or m:ss): 4:29.57
$ DEB_BUILD_OPTIONS=parallel=2 time -v dh_builddeb
dpkg-deb: building package `ghc-prof' in `../ghc-prof_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc' in `../ghc_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc-doc' in `../ghc-doc_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc-dynamic' in `../ghc-dynamic_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc-haddock' in `../ghc-haddock_7.0.3-2_amd64.deb'.
dpkg-deb: building package `ghc6' in `../ghc6_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc6-doc' in `../ghc6-doc_7.0.3-2_all.deb'.
dpkg-deb: building package `ghc6-prof' in `../ghc6-prof_7.0.3-2_all.deb'.
Command being timed: "dh_builddeb"
User time (seconds): 265.59
System time (seconds): 1.83
Percent of CPU this job got: 193%
Elapsed (wall clock) time (h:mm:ss or m:ss): 2:18.20
--
|8]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]