Re: Fwd: [pkg-kolab] Bug#710568: libkolabxml: FTBFS on powerpc: corrupt php_kolabformat.h (race?)

Jeroen van Meeuwen <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <2514670.WJlWkCYWjE__11772.7818819278$1370962498$gmane$org@albert.kolabsys.com>
On Tuesday, June 11, 2013 12:17:44 AM Paul Klos wrote:
> After libkolabxml was uploaded to the Debian build server I got this error,
> a potential race condition when building for powerpc.
> 
> Today I had a closer look at the cmake files for libkolabxml, and it seems
> possible that the building of the generated php bindings starts before the
> generation is complete, so this error may be plausible.
> 
> The building does depend on the generated php_kolabformat_wrapper.cpp, but a
> header file php_kolabformat.h is also generated, and it is not listed as a
> dependency, only:
> 
> add_custom_target(generate_php_bindings ALL DEPENDS
> ${KOLAB_SWIG_PHP_SOURCE_FILE})
> 
> Is it possible that under circumstances this could indeed cause the building
> to go ahead before the header file is fully generated and cause the error
> below?
> 
> If so, what would be a solution?
> 

I reckon adding php_kolabformat.h as a dependency to the custom target of 
"generate_php_bindings" would satisfy what is probably caused by a proverbial 
"make -j$x", where $x > 1.

Kind regards,

Jeroen van Meeuwen

-- 
Systems Architect, Kolab Systems AG

e: vanmeeuwen at kolabsys.com
m: +44 74 2516 3817
w: http://www.kolabsys.com

pgp: 9342 BF08
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.