[PATCH] Get inkscape to build against recent libsigc++ which requires -std=c++11

Bug #1570007 reported by Shlomi Fish
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Shlomi Fish

Bug Description

The cmake build against recent libsigc++-2.0s which require the -std=c++11 flag was broken again by a recent commit. The attached patch fixes it.

Tags: build cmake
Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :
Revision history for this message
Mc (mc...) wrote :

I don't think it's required : In DefineDependsandFlags:371->374 , pkg-config detects if there is a need for c++11,and basically makes the output of SIGC++_CFLAGS_OTHER either -std=c++11 or nothing, the equivalent of

$ pkg-config sigc++-2.0 --cflags-only-other
-std=c++11

then the flag is added to cmake_cxx_flags in line 378

Did you try a fresh build which failed because of the lack of c++11 ?

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

This is the compressed log of the build. As can be seen, the -std=c++11 flag was not added anywhere, and the build with ninja -j1 fails. I'm on Mageia Linux x86-64 v6.

Revision history for this message
Shlomi Fish (shlomif-gmail) wrote :

And for the record , this is what pkg-config gives me:

shlomif[ink]:$build$ pkg-config sigc++-2.0 --cflags-only-other

shlomif[ink]:$build$ pkg-config sigc++-2.0 --cflags
-I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

@Mc Actually, I think I looked into this before... last time I checked, the pkg-config C++11 flag was added as a downstream patch in Debian, but not in the upstream GNOME development libraries.

In any case, since we will have a hard requirement on C++11 from 0.93 onwards, I think it's OK to patch this now.

Changed in inkscape:
importance: Undecided → High
su_v (suv-lp)
tags: added: build cmake
Revision history for this message
Mc (mc...) wrote :

pushed in 14844

Changed in inkscape:
status: New → Fix Committed
assignee: nobody → Shlomi Fish (shlomif-gmail)
Changed in inkscape:
milestone: none → 0.92
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.