From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 14 00:30:04 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16D981065670 for ; Fri, 14 Oct 2011 00:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E56B58FC12 for ; Fri, 14 Oct 2011 00:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9E0U33I092753 for ; Fri, 14 Oct 2011 00:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9E0U3bj092748; Fri, 14 Oct 2011 00:30:03 GMT (envelope-from gnats) Resent-Date: Fri, 14 Oct 2011 00:30:03 GMT Resent-Message-Id: <201110140030.p9E0U3bj092748@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nali Toja Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB3261065676 for ; Fri, 14 Oct 2011 00:23:21 +0000 (UTC) (envelope-from nalitoja@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 55DF28FC0A for ; Fri, 14 Oct 2011 00:23:20 +0000 (UTC) Received: by wyj26 with SMTP id 26so3496010wyj.13 for ; Thu, 13 Oct 2011 17:23:20 -0700 (PDT) Received: by 10.216.14.83 with SMTP id c61mr792714wec.4.1318551800157; Thu, 13 Oct 2011 17:23:20 -0700 (PDT) Received: from nil (tor-exit-router36-readme.formlessnetworking.net. [199.48.147.36]) by mx.google.com with ESMTPS id l9sm10559507wba.5.2011.10.13.17.23.16 (version=SSLv3 cipher=OTHER); Thu, 13 Oct 2011 17:23:19 -0700 (PDT) Message-Id: <86hb3cifq2.fsf@gmail.com> Date: Fri, 14 Oct 2011 00:23:01 +0000 From: Nali Toja To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/161564: [patch] lang/python27: prune __wchar_t define from CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2011 00:30:04 -0000 >Number: 161564 >Category: ports >Synopsis: [patch] lang/python27: prune __wchar_t define from CFLAGS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 14 00:30:03 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Nali Toja >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: Many ports py- ports fail to build with clang because python-config has -D__wchar_t=wchar_t in CFLAGS that's also defined in . Added by perky@ in lang/python24 (2.4.2) to workaround curses.h configure check, the fix was merged into 2.4 branch several months later (before 2.4.3). http://bugs.python.org/issue1244610 >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/py27-pcapy-0.10.5.log $ cd net/py-pcapy; make ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ===> Extracting for py27-pcapy-0.10.5 => SHA256 Checksum OK for pcapy-0.10.5.tar.gz. ===> Patching for py27-pcapy-0.10.5 ===> Applying FreeBSD patches for py27-pcapy-0.10.5 ===> py27-pcapy-0.10.5 depends on file: /usr/local/bin/python2.7 - found ===> Configuring for py27-pcapy-0.10.5 running config ===> Building for py27-pcapy-0.10.5 running build running build_ext building 'pcapy' extension creating build creating build/temp.freebsd-9.9-BLAH-amd64-2.7 clang -DNDEBUG -O2 -pipe -D__wchar_t=wchar_t -O2 -pipe -fPIC -I/usr/local/include/python2.7 -c pcapdumper.cc -o build/temp.freebsd-9.9-BLAH-amd64-2.7/pcapdumper.o In file included from pcapdumper.cc:11: In file included from /usr/local/include/python2.7/Python.h:33: In file included from /usr/include/stdio.h:41: /usr/include/sys/_types.h:90:21: error: cannot combine with previous 'type-name' declaration specifier typedef __ct_rune_t __wchar_t; /* wchar_t (see above) */ ^ :2:19: note: expanded from: #define __wchar_t wchar_t ^ 1 error generated. error: command 'clang' failed with exit status 1 *** Error code 1 >Fix: --- clang.diff begins here --- Index: lang/python27/Makefile =================================================================== RCS file: /a/.csup/ports/lang/python27/Makefile,v retrieving revision 1.179 diff -u -p -r1.179 Makefile --- lang/python27/Makefile 25 Sep 2011 15:05:18 -0000 1.179 +++ lang/python27/Makefile 13 Oct 2011 23:43:56 -0000 @@ -78,8 +83,5 @@ PLIST_SUB+= IF_DEFAULT="" PLIST_SUB+= IF_DEFAULT="@comment " .endif -# workaround for a bug in base curses.h. -CFLAGS+= -D__wchar_t=wchar_t - .if !defined(WITHOUT_THREADS) PLIST_SUB+= THREADS="" --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: