delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/11/02/18:09:01

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6A2N91Rt1745242
Authentication-Results: delorie.com; dmarc=pass (p=quarantine dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 6A2N91Rt1745242
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=EAQX2N7k
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E6634BA903B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1793660939;
bh=dHH41mBnzxOWbPf2ImgYGrkDOyW/MvWrBputgx9kT7A=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=EAQX2N7kBVV3i8dBkGN5R7JESiOAY26hSCoN9pZXuUY+Q4qdRKCSOnsz5lkVsTuvS
EWoKgw/s8v8F4BTZ2SDS0Po1QLVIMy00A6EPqhqt93Lik/i+32AvEDIfzWSNp0SaA9
7b7CFqQP0RODWAHu/kYl4oMrzivoNbC8uVZ4KyNU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4CC74BA23F7
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C4CC74BA23F7
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793660920; cv=none;
b=poHSeAhmcvTkgIlgOm2OAU2Bj7RLc1Bj5EC7rek+KB3koVEHRxit6HJd7UAFWsSXYgFX40aQ/gqfbJLqQBwl2sr3xcX0Hg8ZFRp8NEq2iXWPpuc6L3Rh+bGAQKhBG6LSQSO1A1cimHxLm5Q2hQaYILHJkM5bSFoNVteERHQI/Og=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1793660920; c=relaxed/simple;
bh=j8kLgpmRVvrg3YCuYRV4mQe5lBwxfeHO3ZJ9rSysNYo=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=yDFBvnrFzqshu3JBI/uI9CMFKO47MBbhAKZApUbHA/ZW1WEmMESdhEXGPIt2tNLpeIKD5T60gWYMbZ9CJ1ZEeFbUOMkUjgkRZMYWHEbqaLHDQZqgpghvgWXsovFPHr9AxFDcgZ6lp3E5hRBSczBDCxk4emS4Cipi2w/eSfscO2A=
ARC-Authentication-Results: i=1; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=SystematicSW.ab.ca header.i=@SystematicSW.ab.ca header.a=rsa-sha256
header.s=he header.b=c1dItrIO
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4CC74BA23F7
Message-ID: <7ca66eca-52f8-4d34-8a99-d20ccfe85be3@SystematicSW.ab.ca>
Date: Mon, 2 Nov 2026 17:08:36 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: info on python 3.12.15 release
To: cygwin AT cygwin DOT com
References: <c48ae318-1ff9-4cc7-b754-132eb26736fc AT gmail DOT com>
<2375a211-a53d-4fb4-9722-f89b69b3766e AT dronecode DOT org DOT uk>
<277aa6d9-0224-4527-b132-e8ff90cfc862 AT gmail DOT com>
<875wyfm8qz DOT fsf AT Gerda DOT invalid>
<e01d64e3-6a37-4e3c-a9ae-c0c881ed51a7 AT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <e01d64e3-6a37-4e3c-a9ae-c0c881ed51a7@gmail.com>
X-Rspamd-Server: rspamout05
X-Rspamd-Queue-Id: 57A0E20039
X-Stat-Signature: 9ajx34si5jw8haby554yyfd7dqqutcxu
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+rzbBWl5LjBmlevxVRfVkHffkytZAUyXU=
X-HE-Tag: 1793660917-250725
X-HE-Meta: U2FsdGVkX19Q8W2KsZuR4WgYMTr7i5Mu7KY2YrFxy0SG5/XpTtXNkRqcKxwZoHcGHKmiPdobMsbH6lc7UNC8hxOV3ACjxBdxoQiMJWmajUo9V2ERBWMmS3LysBZ13kxGqT83R+KRIxTH0c6SSsc81++WnO9exxDO7furdOYWQrIK+2LKxPj1V1AA0o0J+6KYP6jYanXxvR4QdXKcKTHhpt1Rt5FvNjFqyoBjGfT4OBo1Pnqbh/9VwZylQmhOTedySwwzKSdCC6LCuS5a70Si4ZpB1ZMfh6TQ+ZqBz+p/lQ8NiEjeE5EKd58rOblrD5wdNoSEB0MXCWYVGtHeY+k+ofHIfx9vISTO
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6A2N91Rt1745242

On 2026-11-02 12:09, Marco Atzeri via Cygwin wrote:
> On 02/11/2026 18:41, ASSI via Cygwin wrote:
>> Marco Atzeri via Cygwin writes:
>>> It seems a upstream feature; on 3.12.12 and 3.12.15 sources I found
>>>
>>> ---------- configure.ac ---------------------
>>> # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
>>> # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
>>> # them.

They are talking about _..._SOURCE, so they should be defining/setting 
_BSD_SOURCE, and the library feature test macro headers should be those using 
that, defining/setting __BSD_VISIBLE, and enabling/disabling features and 
interfaces based on those settings.

They should never be setting any feature test variable like that to 0!
They should just undef the variable, although there is always the possibility of 
some other header doing the same or opposite, given that it is meant to be under 
the library's control.

It adds more friction to using alternative features, interfaces, and code paths, 
when you have to accept a variable defined or set to 1 as enabled, or a variable 
undefined or set to 0 as disabled.

Perhaps Python needs to be more selective in how they enable features on 
different platforms, and not merely enable everything everywhere all at once™, 
as it is normally impossible to be standards compliant or conforming and also 
enable all kinds of other features and interfaces, which may conflict, and is 
the whole the point of those symbols, trying to define every feature and 
interface leading to features' and interfaces' visibility possibly depending on 
which symbol is tested first in the library, with different platforms producing 
different results!

>>> AC_DEFINE([__BSD_VISIBLE], [1],
>>>            [Define on FreeBSD to activate all library features])

I would expect that to be already assumed and done on FreeBSD by its libraries?

>>> It seems that there is a misalignment between newlib and FreeBSD

>>> "How it is set: By default, FreeBSD enables __BSD_VISIBLE (set to 1)
>>> unless you explicitly define strict standard feature test macros like
>>> _POSIX_C_SOURCE or _XOPEN_SOURCE, which automatically lower or disable
>>> __BSD_VISIBLE (0) to enforce standards conformance."

That is done by the FreeBSD library feature test macro headers to avoid 
conflicts and expose the desired features and interfaces so all good!

>> But this is clearly done on a non-FreeBSD system, so it's simply a bug
>> to not check that you are on the targeted system before dropping the
>> #define.

They should not be touching it as libraries set it to control what they expose.

> they are not dropping __BSD_VISIBLE.
> 
> on Newlib we are using __BSD_VISIBLE defined and not defined

That should be okay to decide what interfaces to define or expose.

> on FreeBSD they are using defined as 1.

That is conventional, so it is defined and has a logical value.

> No idea if other BSD are like Newlib

I would say rather that Newlib has features of BSDs, adopting library code, 
implementing BSD and SunOS/Solaris features and interfaces, others standardized 
in AT&T SVID, and those found useful in Linux, especially those supporting 
(often Free)BSD userland and libc.

> I will need to patch and eventually propose a change upstream for 3.15.x
Cheers and good luck persuading them of that.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026