After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697364 - Build system fails on Python multiarch installations
Build system fails on Python multiarch installations
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: python
CVS head
Other Linux
: Normal normal
: 0.98
Assigned To: Hans Breuer
Hans Breuer
: 669882 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-05 14:58 UTC by Robie Basak
Modified: 2013-04-06 09:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix this issue (4.36 KB, patch)
2013-04-05 15:07 UTC, Robie Basak
none Details | Review

Description Robie Basak 2013-04-05 14:58:27 UTC
In the next Ubuntu release, python will be installed with multiarch support,
which breaks the build because assumptions are made about python library
locations which no longer hold true.

Patch attached.

python-config has been supported in upstream Python since 2.6, so use
python-config to determine include file and library locations and names if it
is available. Otherwise fall back to the old behaviour.

This fixes the build in the current development release of Ubuntu, and is a
reasonably generic and cross-platform way to configure the build for Python.
Comment 1 Robie Basak 2013-04-05 15:07:46 UTC
Created attachment 240757 [details] [review]
Patch to fix this issue
Comment 2 Hans Breuer 2013-04-06 09:22:09 UTC
Thanks for the patch. Just pushed to master:
https://git.gnome.org/browse/dia/commit/?id=c66f9543c41008ccc2f093b744da6893c2cb91e9

I've tested the cross-platform-ness of the approach with gentoo/64 and OS X 10.7 and indeed both work fine now ;-)
Comment 3 Hans Breuer 2013-04-06 09:24:17 UTC
*** Bug 669882 has been marked as a duplicate of this bug. ***