Bug#710625: performous: FTBFS: xtime.hh:27:34: error: expected unqualified-id before numeric constant

peter green plugwash at p10link.net
Mon Jun 3 22:57:11 UTC 2013


>
> It's a problem in boost which is fixed in 1.50. TIME_UTC is a C11 macro
> that colides with boost::TIME_UTC. In Boost 1.50, this constant was renamed
> to TIME_UTC_. 
>
> You should update your Build-Depends (upstream has already fixed this).
>   
Unfortunately changing the build-depends to point at boost 1.50 or 1.53 
results in a different error.

In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from /performous-0.7.0.new/game/fs.hh:3,
                 from /performous-0.7.0.new/game/controllers.cc:9:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling 
Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3

So I decided to take a different approach. Rather than trying to move to 
a newer boost I decided to try and deal with the problem with 1.49. It 
seems that the renaming of the enum value has been backported to 1.49 by 
debian but performous doesn't know this. I edited the code to 
unconditionally use the new name

I also changed the build-depends to 1.49 explicitly so the package will 
continue to build after the boost-defaults are changed and versioned the 
build-depends on the version that backported the enum fix.

I will be uploading this fix to Raspbian jessie along with a raspbian 
specific change for an issue that I could not reproduce in debian. I 
have no immediate plans to upload this as a NMU but I may change my mind 
on that later.

Patch (including NMU changelog) is attached.

Note: i'm just a guy who stubled across this bug while working on a 
deriviative, I have no relation to the package.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: performous.debdiff
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20130603/d944098c/attachment.ksh>


More information about the Pkg-games-devel mailing list