Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 2013 21:08:23 -0700 (PDT)
From:      "Pedro F. Giffuni" <giffunip@tutopia.com>
To:        python@FreeBSD.org
Subject:   Python 2.7.4 Released (but I had touble updating the port)
Message-ID:  <1365394103.76019.YahooMailMobile@web162103.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello guys;=0A=0AThere is a new bugfix release in the 27 series with hundre=
ds of =0Abugfixes:=0Ahttp://hg.python.org/cpython/file/9290822f2280/Misc/NE=
WS=0A=0AI gave a try at updating the python27 port and it was rather easy t=
o =0Aget started (almost all patches apply cleanly) but I get this problem=
=0A when building:=0A=0A...=0Acc -c -fno-strict-aliasing -O2 -fno-strict-al=
iasing -pipe -march=3Dnocona =0A-DNDEBUG -O2 -fno-strict-aliasing -pipe -ma=
rch=3Dnocona  -I. -IInclude =0A-I./../Include -fPIC -DPy_BUILD_CORE -o Pyth=
on/Python-ast.o =0APython/Python-ast.c=0Acc: Python/Python-ast.c: No such f=
ile or directory=0Acc: No input files specified=0A*** [Python/Python-ast.o]=
 Error code 1=0A=0AThe file actually exists.=0A=0AI went ahead and reported=
 the issue upstream (Issue17649) but it is=0Airreproducible in their buildb=
ot and the problem is not really theirs:=0Ait looks like the hacks that we =
do to stop some modules from building=0Aand the environment used to build t=
he code out-of-tree don&#x27;t get along=0Avery well.=0A=0APerhaps someone =
here knows the port well enough to provide a fix?=0AI guess it should be po=
ssible to modify the makefile to skip generating=0Athat file since it exist=
s already but that&#x27;s not very clean ;).=0A=0ARegards,=0A=0APedro.
From owner-freebsd-python@FreeBSD.ORG  Mon Apr  8 04:58:08 2013
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@FreeBSD.org
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
 by hub.freebsd.org (Postfix) with ESMTP id CE786F3F
 for <python@FreeBSD.org>; Mon,  8 Apr 2013 04:58:08 +0000 (UTC)
 (envelope-from mva@FreeBSD.org)
Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de
 [80.67.31.104]) by mx1.freebsd.org (Postfix) with ESMTP id 8EBBCD5
 for <python@FreeBSD.org>; Mon,  8 Apr 2013 04:58:08 +0000 (UTC)
Received: from [89.182.31.83] (helo=localhost)
 by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256)
 (Exim 4.68) (envelope-from <mva@FreeBSD.org>)
 id 1UP43N-0002sV-Q2; Mon, 08 Apr 2013 06:51:38 +0200
Date: Mon, 8 Apr 2013 06:51:37 +0200
From: Marcus von Appen <mva@FreeBSD.org>
To: python@FreeBSD.org, "Pedro F. Giffuni" <giffunip@tutopia.com>
Subject: Re: Python 2.7.4 Released (but I had touble updating the port)
Message-ID: <20130408045137.GA1230@medusa.sysfault.org>
Mail-Followup-To: python@FreeBSD.org, "Pedro F. Giffuni" <giffunip@tutopia.com>
References: <1365394103.76019.YahooMailMobile@web162103.mail.bf1.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="EuxKj2iCbKjpUGkD"
Content-Disposition: inline
In-Reply-To: <1365394103.76019.YahooMailMobile@web162103.mail.bf1.yahoo.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Df-Sender: MTEyNTc0Mg==
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Marcus von Appen <mva@FreeBSD.org>
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python>;
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Apr 2013 04:58:08 -0000


--EuxKj2iCbKjpUGkD
Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL"
Content-Disposition: inline


--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On, Mon Apr 08, 2013, Pedro F. Giffuni wrote:

> Hello guys;
>
> There is a new bugfix release in the 27 series with hundreds of
> bugfixes:
> http://hg.python.org/cpython/file/9290822f2280/Misc/NEWS
>
> I gave a try at updating the python27 port and it was rather easy to
> get started (almost all patches apply cleanly) but I get this problem
>  when building:
>
> ...
> cc -c -fno-strict-aliasing -O2 -fno-strict-aliasing -pipe -march=nocona
> -DNDEBUG -O2 -fno-strict-aliasing -pipe -march=nocona  -I. -IInclude
> -I./../Include -fPIC -DPy_BUILD_CORE -o Python/Python-ast.o
> Python/Python-ast.c
> cc: Python/Python-ast.c: No such file or directory
> cc: No input files specified
> *** [Python/Python-ast.o] Error code 1
>
> The file actually exists.
>
> I went ahead and reported the issue upstream (Issue17649) but it is
> irreproducible in their buildbot and the problem is not really theirs:
> it looks like the hacks that we do to stop some modules from building
> and the environment used to build the code out-of-tree don&#x27;t get along
> very well.

Right, as they changed Makefile.pre.in in a way that stops out-of-tree
builds. Attached is a simple patch for it. Just copy the file into
lang/python27/files.
I did not test anything else yet, but at least the build runs.


Cheers
Marcus

--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-Makefile.pre.in"
Content-Transfer-Encoding: quoted-printable

--- Makefile.pre.in.orig	2013-04-08 06:45:53.000000000 +0200
+++ Makefile.pre.in	2013-04-08 06:46:14.000000000 +0200
@@ -283,7 +283,7 @@
 # AST
 AST_H_DIR=3D	Include
 AST_H=3D		$(AST_H_DIR)/Python-ast.h
-AST_C_DIR=3D	Python
+AST_C_DIR=3D	$(srcdir)/Python
 AST_C=3D		$(AST_C_DIR)/Python-ast.c
 AST_ASDL=3D	$(srcdir)/Parser/Python.asdl
=20

--vtzGhvizbBRQ85DL--

--EuxKj2iCbKjpUGkD
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlFiTNkACgkQi68/ErJnpkeTkACfRnEf9STrqF1eoAsPe9aHD1rV
YU0An2vO95AKUOiKSNyn2Tf67yOYScvC
=I4Hc
-----END PGP SIGNATURE-----

--EuxKj2iCbKjpUGkD--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1365394103.76019.YahooMailMobile>