X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 06EF83858D39
Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none)
 header.from=math.ucdavis.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=l9bt0fcCWWgGAMUwHdUkCJ4uuH3nEsJ8QV6WKFVsQ4w=;
 b=RH5CDLev+7f3X8jQzV1e6jZoIbEEjJKGPD47zurVgUh7egMamIyteahuFm7UXhhM+Z
 oD048+4W+31o8UzN2NzFwHgmHwTvx8b6EXOTd3DUBqtBoQlVOt6IQSZE739futskNrVG
 6AjLm+XMCk4d2j6Ec8lY+FbbADuV24LzJEymWuizsSDTqt3tIST8QFmGhV1GCS0HPBdx
 YuWbJysH8W/Mjf8j5Df+oEMWzOgUTWphCIJPpBSRZAi/yuM+7EgOLoPXLwas3Pnefjn6
 G0tu4C1CZ7lwsU6aCoRDmUJMEJgz4TIa/Hb/WabZvY56pVHXT19U7QootdY0a6sT761A
 5W4A==
X-Gm-Message-State: AOAM532ydjTqryJCphrxAvGhiCOiJFVXLAR+vyguZHMjCYrEBDG4f6zs
 8jZChU+Jx2GEX46ajXy6o3FQb5Dmg9PtSYOxFCumUL3Rz/s=
X-Google-Smtp-Source: ABdhPJwBE4DqixHB0sMCHvKw6msOVArJex6tq85sDhDMRmPT3NEhOk5YBDLaWS5lleoFdnMtfYoIZfgBwWDNxskt1vk=
X-Received: by 2002:a05:6638:4129:: with SMTP id
 ay41mr16448072jab.23.1640979199725; 
 Fri, 31 Dec 2021 11:33:19 -0800 (PST)
MIME-Version: 1.0
References: <CAJ_wo5gZp2ChiNWokn3vryB1Dzwrs-4sJQwm-28r1Ym_m5mH_A@mail.gmail.com>
In-Reply-To: <CAJ_wo5gZp2ChiNWokn3vryB1Dzwrs-4sJQwm-28r1Ym_m5mH_A@mail.gmail.com>
From: Matthias Koeppe <mkoeppe@math.ucdavis.edu>
Date: Fri, 31 Dec 2021 11:33:08 -0800
Message-ID: <CAJ_wo5i1MMFnniJy0_Qu3+JOQK7MTTRWvOK3koG8Gq-EXfLKtg@mail.gmail.com>
Subject: Re: python 3.9 package leaks CFLAGS into user packages via sysconfig
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,
 FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,
 HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Mon, Dec 27, 2021 at 5:27 PM Matthias Koeppe <mkoeppe@math.ucdavis.edu>
wrote:

> $ python3.9 -m sysconfig | grep CFLAGS
> CFLAGS = "-Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall
> -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -fstack-protector-strong --param=ssp-buffer-size=4 -DOPENSSL_NO_SSL3=1
> -I/usr/include/uuid/
> -fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-1.x86_64/build=/usr/src/debug/python39-3.9.9-1
> -fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-1.x86_64/src/Python-3.9.9=/usr/src/debug/python39-3.9.9-1
> -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -fstack-protector-strong --param=ssp-buffer-size=4 -DOPENSSL_NO_SSL3=1
> -I/usr/include/uuid/
> -fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-1.x86_64/build=/usr/src/debug/python39-3.9.9-1
> -fdebug-prefix-map=/pub/devel/python/python39/python39-3.9.9-1.x86_64/src/Python-3.9.9=/usr/src/debug/python39-3.9.9-1"
>
> These flags will end up in builds of user Python packages with extensions
> via sysconfig/distutils.
> This should be fixed by putting the necessary flags for the Python build
> into CFLAGS_NODIST instead [...]
>

Thanks, Marco, for the python-3.9.9-3 test package.
It has been reported to work well for us (
https://trac.sagemath.org/ticket/33078#comment:34), solving the reported
problem.

Matthias

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
