Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRKw3-0004rb-OQ for pgsql-bugs@postgresql.org; Thu, 25 Oct 2012 10:45:11 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRKvw-00054w-Bh for pgsql-bugs@postgresql.org; Thu, 25 Oct 2012 10:45:10 +0000 Received: from cpc4-slam5-2-0-cust14.2-4.cable.virginmedia.com ([86.26.160.15] helo=[192.168.0.7]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1TRKvv-0002ij-0n for pgsql-bugs@postgresql.org; Thu, 25 Oct 2012 10:45:03 +0000 Message-ID: <5089182D.2050208@canonical.com> Date: Thu, 25 Oct 2012 11:45:01 +0100 From: Dmitrijs Ledkovs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Fails to build from source with multiarched python3.3 on Debian-like systems X-Enigmail-Version: 1.4.5 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig82B3AF6F5C2F9779D134254F" X-Pg-Spam-Score: -3.3 (---) X-Archive-Number: 201210/224 X-Sequence-Number: 34524 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig82B3AF6F5C2F9779D134254F Content-Type: multipart/mixed; boundary="------------080304080403050804090707" This is a multi-part message in MIME format. --------------080304080403050804090707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On debian and ubuntu, python3.3 has two include locations instead of one:= -I/usr/include//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. --=20 Regards, Dmitrijs. --------------080304080403050804090707 Content-Type: text/x-diff; name="fix-ftbfs-python-3.3.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fix-ftbfs-python-3.3.patch" Description: detect both python3.3 includes locations Author: Dmitrijs Ledkovs Forwarded: yes Last-Update: 2012-10-25 Index: postgresql-9.1-9.1.6/config/python.m4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- postgresql-9.1-9.1.6.orig/config/python.m4 2012-09-19 22:50:31.000000= 000 +0100 +++ postgresql-9.1-9.1.6/config/python.m4 2012-10-25 11:08:37.000000000 += 0100 @@ -34,6 +34,11 @@ python_version=3D`${PYTHON} -c "import sys; print(sys.version[[:3]])"` python_configdir=3D`${PYTHON} -c "import distutils.sysconfig,string; pri= nt(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`= python_includespec=3D`${PYTHON} -c "import distutils.sysconfig; print('-= I'+distutils.sysconfig.get_python_inc())"` +python_platincludespec=3D`${PYTHON} -c "import distutils.sysconfig; prin= t('-I'+distutils.sysconfig.get_python_inc(plat_specific=3DTrue))"` +if test x"$python_includespec" !=3D x"$python_platincludespec" +then + python_includespec=3D"$python_includespec $python_platincludespec" +fi =20 AC_SUBST(python_majorversion)[]dnl AC_SUBST(python_version)[]dnl Index: postgresql-9.1-9.1.6/configure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- postgresql-9.1-9.1.6.orig/configure 2012-09-19 22:50:31.000000000 +01= 00 +++ postgresql-9.1-9.1.6/configure 2012-10-25 11:09:45.587362563 +0100 @@ -7305,6 +7305,11 @@ python_version=3D`${PYTHON} -c "import sys; print(sys.version[:3])"` python_configdir=3D`${PYTHON} -c "import distutils.sysconfig,string; pri= nt(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`= python_includespec=3D`${PYTHON} -c "import distutils.sysconfig; print('-= I'+distutils.sysconfig.get_python_inc())"` +python_platincludespec=3D`${PYTHON} -c "import distutils.sysconfig; prin= t('-I'+distutils.sysconfig.get_python_inc(plat_specific=3DTrue))"` +if test x"$python_includespec" !=3D x"$python_platincludespec" +then + python_includespec=3D"$python_includespec $python_platincludespec" +fi =20 # This should be enough of a message. { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5 --------------080304080403050804090707-- --------------enig82B3AF6F5C2F9779D134254F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBCAAGBQJQiRgtAAoJEIh7YGGLPBauCbAQAKqLFuWzwuxTeonLUkiYd/bK P1uGFk6JoZK2mxgENL7rw8ktt/ddqh7oiUOP0ykdptcZxebkfhK4Fon3mjLoG3Db TN4K3OqeJKHudkfMHBvZi+yfDelJpg9XxK3eiIGMbNUKOocFUClXATYd4FWtZN++ BWkNjmWLHIngNZCbm5lQ8L4SYH6SC9K2SMsF78ae1tz70P+Xvbb7T6GxvQWZTkEG TaoEnZQVn4lCGHFeaPUscRBDdbGwKNjUgQQ/qzvO9TQhYX2Q0y1WCZT44IxkvpiX rlYeorpToM8jU89NhO9IduoqxLJhg1LK41Dc+nXoQFM/ZvoZHnbfZFJlr3S2cdU4 fHOF8EnHZtUW6rU+h07Afgc+CimWWqAJNpijeh1ObdyVzBhOFRQqge85a0Yi2Rwf jWivvdV7Rtyoov8mJ/VY8GA5EpLp63S9wD5ywOvS8MuVA5CYXX57pzWPyXVSV5W2 Fmy0txEgJ3NHR9dmIWEY5Y6JOoZvTJEM2GR7iZ3LThyUqxc++MsBWIWlEqE4uVYI 2jlhDzW640Uh3wuB7bYkOuAsWpsiU7zq4ZGnir/srTIAKjG2TH1o+EOnV3QUuiWi HMELJcli510FhmG1jojEgzb6Hx7yRJI+KJUjd5ZPgXyFsJUHDvSLD/+twMPJuMGn rMWbfuws9T3yrHXaedH1 =Mmu6 -----END PGP SIGNATURE----- --------------enig82B3AF6F5C2F9779D134254F--