From owner-freebsd-python@FreeBSD.ORG  Thu Oct 24 00:20:58 2013
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id 3570BA57;
 Thu, 24 Oct 2013 00:20:58 +0000 (UTC)
 (envelope-from koobs.freebsd@gmail.com)
Received: from mail-pb0-x22f.google.com (mail-pb0-x22f.google.com
 [IPv6:2607:f8b0:400e:c01::22f])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 067E02B25;
 Thu, 24 Oct 2013 00:20:58 +0000 (UTC)
Received: by mail-pb0-f47.google.com with SMTP id rq2so1413004pbb.6
 for <multiple recipients>; Wed, 23 Oct 2013 17:20:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=message-id:date:from:reply-to:user-agent:mime-version:to:subject
 :references:in-reply-to:content-type:content-transfer-encoding;
 bh=TItTuCi+Hd5fjjfDgq4/XCaD+zz4B7/yyIjg6sKYfbw=;
 b=xc1xC1W6yMvYltvqrUfRJiv8hYZPaqKt2+IsGvhINrvaq763osW4yAsxWVv+liPgRp
 sqW3hiH3Q6f+SDCTphthdPQB0kmASbjnPSd94tubq1klDExb99WKxnH8kSboMBwI5zwu
 TZjF2/mzqp2qMH10eunyIB3BDBC5u+pLktBv86c3EMnH0UlSWcN4Fb8q69l8Ij5B/tOj
 n+YLJuBnBBbGsK8lDQSFBv2kPBLn21CIwjOXlKrr2MTC4d+4uSADx3nFuzGnJLc4/JVh
 o3YLupwgVQk3pv7BQP0lXh4/VRHbW/1gWWV88sNtGcM81nI3INbB/xp/6huKmBWgEJ/c
 0VBA==
X-Received: by 10.66.100.227 with SMTP id fb3mr512744pab.26.1382574057596;
 Wed, 23 Oct 2013 17:20:57 -0700 (PDT)
Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net.
 [59.167.128.11])
 by mx.google.com with ESMTPSA id fk4sm613709pab.23.2013.10.23.17.20.55
 for <multiple recipients>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Wed, 23 Oct 2013 17:20:56 -0700 (PDT)
Message-ID: <526867E1.6070406@FreeBSD.org>
Date: Thu, 24 Oct 2013 11:20:49 +1100
From: Kubilay Kocak <koobs.freebsd@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
 rv:25.0) Gecko/20100101 Thunderbird/25.0
MIME-Version: 1.0
To: Mike Jakubik <mike.jakubik@intertainservices.com>, 
 Koop Mast <kwm@rainbow-runner.nl>, gnome@FreeBSD.org, python@FreeBSD.org
Subject: Re: FreeBSD Port: graphics/py-cairo
References: <526803B9.3010102@intertainservices.com>
 <52685214.5080503@rainbow-runner.nl> <526859F5.1060608@FreeBSD.org>
 <52686522.5080706@intertainservices.com>
In-Reply-To: <52686522.5080706@intertainservices.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: koobs@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: Thu, 24 Oct 2013 00:20:58 -0000

On 24/10/2013 11:09 AM, Mike Jakubik wrote:
> Hi,
> 
> I found the problem. This port does not seem to respect the CC
> environment variables and was trying to compile with gcc, instead of
> clang. The problem is that my CFLAGS dont work in gcc (no -mavx in old
> gcc, etc) and it seemed to pull these flags from python, because
> changing them in /etc/make.conf did not help.
> 
> After I recompiled python without these flags, I was able to compile
> this. Still though, it would be nice if it used clang, as defined in my
> make.conf. Sorry for the noise.
> 
> Thanks.
> 
> On 10/23/13 19:21, Kubilay Kocak wrote:
>> On 24/10/2013 9:47 AM, Koop Mast wrote:
>>>
>>> On 10/23/13 19:13, Mike Jakubik wrote:
>>>> Hello,
>>>>
>>>> I am unable to compile this on 9.2-STABLE.
>>> Mike I see you got both 2.7 and 3.3 installed. When I build py-cairo it
>>> worked fine, so I don't really know what happening with waf. So I cc'd
>>> python@ since they might have a beter idea what waf is doing.
>>>
>>> -Koop
>>>
>> The output of the following might help to isolate:
>>
>> - /usr/local/bin/python2.7-config --cflags
>> - /usr/local/bin/python2.7-config --libs
>> - /usr/local/bin/python2.7-config --includes
>> - /usr/local/bin/python2.7-config --ldflags
>>
>> Also possibly related:
>>
>> https://code.google.com/p/waf/issues/detail?id=1118
>>
>> Can you also have a look at config.log and pull out any relevant
>> failures.
>>
>> Thanks,
>>
>> Koobs
>>
> 

Great news Mike, thanks for following up :)

This unfortunately is one of those grey areas in python/python-extension
land, where the extension is doing the right thing by asking python for
build information but it overrides user-defined parameters.

Can you create a PR for graphics/py-cairo mentioning that it doesn't
respect CC, including the impact it had for you and a reference to this
thread in the body. The port maintainer can determine the best course of
action.

Koobs