From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by sourceware.org (Postfix) with ESMTPS id 06EF83858D39 for ; Fri, 31 Dec 2021 19:33:21 +0000 (GMT) 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 Received: by mail-io1-f44.google.com with SMTP id 19so33196767ioz.4 for ; Fri, 31 Dec 2021 11:33:20 -0800 (PST) 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: In-Reply-To: From: Matthias Koeppe Date: Fri, 31 Dec 2021 11:33:08 -0800 Message-ID: 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2021 19:33:22 -0000 On Mon, Dec 27, 2021 at 5:27 PM Matthias Koeppe 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