delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/26/22:39:55

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53R2ds54060155
Authentication-Results: delorie.com; dmarc=pass (p=none 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 53R2ds54060155
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=ciXljJBu
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1536385B532
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1745721590;
bh=KdkB4IEFEsp0PMxuIpGgMJltaoR+QQbr5fRbx/OUzes=;
h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=ciXljJBuJCy7yVV5bzA64Dte3siWthu2SoOuLYWbHL0Y7U7zIpupkjoBdef+bl+04
WqzSQ5MDIxajXYVfst1A2CBBLWIlfxYsY9u+2fxcjL4irD7ldgM7h22Wf4LWVoLRqY
cT3cSQaWwYgHFqQHZhCOEF4x9W8ClU/pkfonF4/M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DF5CD3856DF0
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DF5CD3856DF0
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745721460; cv=none;
b=b4H4hCVuB9pfKaz0s34MjxVnsrfgrNEaEgAspJcH+0Buu7GC0OkUXeqBoeuzv0OxF+IuqMLG12RSFFWtODnNI251rnRBSyf4r2D1GIUAm47NbVg/uv1rDY1RIaN2hkOnZR7vKaZHYelNKtn7KHxCnskcRYPMHk21wCq6rdt4pco=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1745721460; c=relaxed/simple;
bh=XTq46R6ynQAhh1j/JNrnKp5l02N7bOt/TNzlxO6HqQs=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=ito1kCvdof3o/QT14jegQ114iP2JE0Hs9KJTKmyOk4RQqgOLbzspl0ILVy8HdfC19bINZUNLNdOFwOaICTKpeUNmnYXU5REXx0BMX8lhS34dpEAepC8BDyfHL2H89sQYYWHeduLNRcb41D2nf0vcQyqNfsVa8NUeTgCv/d8DcnY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF5CD3856DF0
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1745721458; x=1746326258;
h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=f1nAn1LnPEnFTItpKxG1HgxHUFINMHE1gPVDnZZ7iRU=;
b=kouaha5UapjeP3omL4LOWQbmOjDzJiwSYdxsiunm9F6QkcHYG31iLzHSfaxFj/vZMm
s19OT91k06Jarzm3NekAW1DZe26bnWssjWvVeH/kI16EdkCEvnTaaK2f/lrt5anE7Nw0
Rn05ej9hbp0qHM/R5nnj9KSaiemgvn1oQ/gC+BH4s+idXi8oedK7MhyNdr69FqqbTz+s
hcpfQdfKfmUE3/O21xNrbn5nNQPmLHzghWEbT+FKuJ5U6JAN+hDoJg87wcluyUIu78ia
zBekB2si/TZs+c2TTqJf/E8ZgEmyuedqYnCYmdNXlg9K5etW39ycNeH3MOkP1OOtXpRl
CI2Q==
X-Gm-Message-State: AOJu0YxHdS3auPON5mGNOHQBDimWtqZnZH8WULGzyA6FHgb/JrizPnv7
+etSyXWCeupunuu8nhgnikyRfxJFLsTDgUctSV0Qk4xdVCUGWVFR6Mcgg0ZP6+BDPqoK44KTQrL
D81M5ULTfaeXOWX3W1vOYoHS70H9m7/9UyuQ=
X-Gm-Gg: ASbGncvT052HRb9a1F9GDm6KzrkFp51M71iFhq25LTDW6zv11S5CF4vL2MMHLMy+L9D
AwkkRs1s5jcwGOoE7IqDH6lJPPsQg0B4bL7axAd4MBzvKy8YDd9C1McFOdzvX3LC9MT8vhkrRfx
4V+SQbNaaZ+bA5btLvyJoMVQ==
X-Google-Smtp-Source: AGHT+IHeb3pLmgtpsm5TIjm4opmnNLpO2sFdQYtae6kNLhfC12HZ/DK/7cyfkr2bCF8ZKL833F+PktC2GFtuxw5YAXE=
X-Received: by 2002:a05:6000:4383:b0:390:f6aa:4e7c with SMTP id
ffacd0b85a97d-3a074e41b54mr4917849f8f.28.1745721457450; Sat, 26 Apr 2025
19:37:37 -0700 (PDT)
MIME-Version: 1.0
Date: Sat, 26 Apr 2025 19:37:26 -0700
X-Gm-Features: ATxdqUH8CxxULrlwgQtgzjx0zloXxL_wgvzC_C0X7mzvnNrw9npYW2dQ--zlb7w
Message-ID: <CAAHpriPC=UC87AGBmLyJBV497uNTZfERP2cj8_H16YuYcN1oAQ@mail.gmail.com>
Subject: Patch for recent Python versions
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Cc: Keith Thompson <Keith DOT S DOT Thompson AT gmail DOT com>
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-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: Keith Thompson via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Keith Thompson <Keith DOT S DOT Thompson AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

I see that Cygwin only supports Python 3.9.16 (or 3.9.18 as a test
version), which is a couple of years old.

I'm sure there's work to support newer versions, but I don't know
the details.

I've succesfully built 3.13.3 and 3.14.0a7 from source, with the
patch at the bottom of this email.

There are still some issues, including lack of support for asyncio
due to the missing epoll API.  (And I'm curious why clockid_t is
defined as unsigned long; it seems like overkill.)

Hope this is helpful.

commit c1e99d313386789d201a38c68f6d962f60324ace (v3.13.3_cygwin)
Author: Keith Thompson <Keith DOT S DOT Thompson AT gmail DOT com>
Date:   2025-04-26 16:16:27 -0700

    clockid_t is unsigned long on Cygwin

diff --git Modules/timemodule.c Modules/timemodule.c
index 49626d32fd3..a08fbfb57cc 100644
--- Modules/timemodule.c
+++ Modules/timemodule.c
@@ -189,6 +189,8 @@ time_clockid_converter(PyObject *obj, clockid_t *p)
     long long clk_id = PyLong_AsLongLong(obj);
 #elif defined(__DragonFly__)
     long clk_id = PyLong_AsLong(obj);
+#elif defined(__CYGWIN__)
+    unsigned long clk_id = PyLong_AsUnsignedLong(obj);
 #else
     int clk_id = PyLong_AsInt(obj);
 #endif

-- 
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 © 2019   by DJ Delorie     Updated Jul 2019