Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2019 07:08:36 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r505546 - branches/2019Q2/lang/python35
Message-ID:  <201907010708.x6178as3059385@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Jul  1 07:08:36 2019
New Revision: 505546
URL: https://svnweb.freebsd.org/changeset/ports/505546

Log:
  MFH: r505210 lang/python35: Use -std=c99
  
  Python 3.5 is currently failing to build the pickle module on GCC-based
  architectures, with the following (several) errors:
  
    error: 'for' loop initial declaration used outside C99 mode
  
  This causes packaging to fail, as the pickle module filename changes on
  failure to build, so the plist ends up incorrect
  
  Python 3.6+ switched to using -std=c99 [1][2], but the changes were not
  backported to 3.5
  
  [1] https://bugs.python.org/issue28017
  [2] https://hg.python.org/cpython/rev/b5b2bb56d303
  [3] https://hg.python.org/cpython/rev/91017e2202ae
  
  PR: 238821
  Reviewed by: koobs (python)
  Approved by: koobs (python), mat (mentor)
  Differential Revision:  https://reviews.freebsd.org/D20778
  
  Approved by:	ports-secteam (blanket: build fix)

Modified:
  branches/2019Q2/lang/python35/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/lang/python35/Makefile
==============================================================================
--- branches/2019Q2/lang/python35/Makefile	Mon Jul  1 07:02:26 2019	(r505545)
+++ branches/2019Q2/lang/python35/Makefile	Mon Jul  1 07:08:36 2019	(r505546)
@@ -16,6 +16,7 @@ COMMENT=	Interpreted object-oriented programming langu
 LICENSE=	PSFL
 
 USES=		cpe ncurses pathfix pkgconfig readline:port shebangfix ssl tar:xz
+USE_CSTD=	c99
 PATHFIX_MAKEFILEIN=	Makefile.pre.in
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes



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