[Build-common-hackers] Bug#620350: Bug#620350: cdbs fails when building in parallel

rosea.grammostola rosea.grammostola at gmail.com
Sat Apr 2 23:09:09 UTC 2011


On 04/02/2011 05:21 PM, Jonas Smedegaard wrote:
> On Fri, Apr 01, 2011 at 12:41:25PM +0200, rosea.grammostola wrote:
>
>> When building cdbs on the opensuse buildservice (obs), cdbs fails. 
>> Obs uses parallel building by default.
>
> I believe this can only happen if obs plays tricks to enforce parallel 
> building - e.g. directly sets make option -j - which is unsupported.
>
> Obs should follow Debian Policy §4.9.1 and only _request_ the use of 
> parallel building with DEB_BUILD_OPTIONS=parallel=n.
>
> I am therefore closing this as a non-bug.  You are quite welcome to 
> continue posting to this bugreport (closed does not mean closed for 
> debate), to try convince us that this is in fact a bug in this 
> package, not in your build environment.
>
>
>> A small verification with osc build -j 1 shows that once more, debian 
>> stuff just does not work properly in parallel builds...
>
> ...or it simply shows that obs is failing in its attempts to outsmart 
> explicitly documented behaviour of Debian.
>
>
>> And what would the packager do to enable parallel builds ?
>> He would do some bash scripting in the rules file to get the # of 
>> parallel builds to from the DEB_BUILD_OPTIONS env variable and then 
>> calls make with the parsed argument which is butt ugly to say it 
>> politely.
>
> This is butt ugly?:
>
> DEB_BUILD_PARALLEL=yes
>
> Please note that above deliberately was _not_ added to the CDBS 
> packaging, because we - the package maintainers of CDBS - did not feel 
> that "the package build times are long enough and the package build 
> system is robust enough to make supporting parallel builds worthwhile" 
> as it is phrased in Debian Policy §4.9.1.
>
>
>> IMHO the debian way plain sucks
>
> Plonk!
>
> If Debian is so crappy, then don't bother recompiling it! :-P
>
> If you try rephrase in a more friendly tone, then perhaps an 
> explanation on the sanity of the Debian approach might be provided.
>
>
> Have a nice day,
>
>  - Jonas
>
They think the Debian package is ok, but there is a bug in cdbs:

"The packages source_is_  broken cause it can't be built
in parallel. So their (debian) packaging is fine but the packages (cdbs´)
build scripts contain a bug that screw you over if you build it in parallel.

Simply fix that and send the patch upstream."







More information about the Build-common-hackers mailing list