pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Dmitrijs Ledkovs <dmitrijs.ledkovs@canonical.com>
To: pgsql-bugs@postgresql.org
Subject: Fails to build from source with multiarched python3.3 on Debian-like systems
Date: Thu, 25 Oct 2012 11:45:01 +0100
Message-ID: <5089182D.2050208@canonical.com> (raw )
On debian and ubuntu, python3.3 has two include locations instead of one:
-I/usr/include/<multiarch>/python3.3 -I/usr/include/python3.3
are needed.
Here is patch against postgresql 9.1 to fix fail to build from source
against such pythons.
--
Regards,
Dmitrijs.
Attachments:
fix-ftbfs-python-3.3.patch (text/x-diff, 2.0K) download
Description: detect both python3.3 includes locations
Author: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Forwarded: yes
Last-Update: 2012-10-25
Index: postgresql-9.1-9.1.6/config/python.m4
===================================================================
--- postgresql-9.1-9.1.6.orig/config/python.m4 2012-09-19 22:50:31.000000000 +0100
+++ postgresql-9.1-9.1.6/config/python.m4 2012-10-25 11:08:37.000000000 +0100
@@ -34,6 +34,11 @@
python_version=`${PYTHON} -c "import sys; print(sys.version[[:3]])"`
python_configdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
+python_platincludespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc(plat_specific=True))"`
+if test x"$python_includespec" != x"$python_platincludespec"
+then
+ python_includespec="$python_includespec $python_platincludespec"
+fi
AC_SUBST(python_majorversion)[]dnl
AC_SUBST(python_version)[]dnl
Index: postgresql-9.1-9.1.6/configure
===================================================================
--- postgresql-9.1-9.1.6.orig/configure 2012-09-19 22:50:31.000000000 +0100
+++ postgresql-9.1-9.1.6/configure 2012-10-25 11:09:45.587362563 +0100
@@ -7305,6 +7305,11 @@
python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
python_configdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
+python_platincludespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc(plat_specific=True))"`
+if test x"$python_includespec" != x"$python_platincludespec"
+then
+ python_includespec="$python_includespec $python_platincludespec"
+fi
# This should be enough of a message.
{ $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
signature.asc (application/pgp-signature, 896B) download
Message-ID: <5089182D.2050208@canonical.com>
Permalink: ../5089182D.2050208@canonical.com/
Also on: postgresql.org/message-id/5089182D.2050208@canonical.com
copy link · copy postgr.es · copy git am
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: dmitrijs.ledkovs@canonical.com
Subject: Re: Fails to build from source with multiarched python3.3 on Debian-like systems
In-Reply-To: <5089182D.2050208@canonical.com>
References: <5089182D.2050208@canonical.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox