Bug#848063: +patch: ri-li FTBFS on single-CPU buildds

Steve Cotton steve at s.cotton.clara.co.uk
Sun Feb 19 17:18:16 UTC 2017


package ri-li
tags 848063 +patch
thanks

On Sun, Feb 19, 2017 at 04:09:56PM +0100, Steve Cotton wrote:
> On Wed, Feb 15, 2017 at 06:26:51PM +0100, Santiago Vila wrote:
> > The following packages FTBFS for me randomly. First column is the bug
> > number, second column is the estimated probability of failure in my
> > build environment, which is described here:
> > 
> > https://people.debian.org/~sanvila/my-building-environment.txt
> 
> For ri-li, and hopefully many of the other bugs on the list, there's a much
> simpler way to replicate the bug in developers' normal dev environments, using
> the taskset command from package util-linux to run the build on CPU #0 only:
> 
> $ taskset --cpu-list 0 dpkg-buildpackage -A

Hi,

The attached patch solves this with taskset, although I haven't tried with a
real single-CPU'd buildd.

It's a one-liner at the start of a resource-generator tool that's only run
during the build, and isn't included in the actual packages.  There are no
calls to SDL_AddTimer, so I think there's no need for SDL_INIT_TIMER, and
removing it avoids some interaction between SDL, xvfb and only having one CPU.

-  if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) {
+  if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) {
     cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<endl;
     exit(-1);

BR,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-sdl-timers-for-makedat.patch
Type: text/x-diff
Size: 972 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170219/4a224f22/attachment.patch>


More information about the Pkg-games-devel mailing list