Your message dated Fri, 20 Sep 2024 17:49:01 +0000
with message-id <[email protected]>
and subject line Bug#1066996: fixed in python-greenlet 3.1.0-1
has caused the Debian Bug report #1066996,
regarding python-greenlet: Please add patch to support sh4
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1066996: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066996
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-greenlet
Version: 3.0.1-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: sh4
X-Debbugs-Cc: [email protected]
Hi,
the attached patch adds support for building python-greenlet on sh4, it's
a modified (fixed) version that is currently open for review upstream [1].
The fixed version can be found here [2].
Thanks,
Adrian
> [1] https://github.com/python-greenlet/greenlet/pull/398
> [2]
> https://github.com/glaubitz/greenlet/commit/e73592dec7950ad9fcdb5c0287ef3758df010f11
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>From e73592dec7950ad9fcdb5c0287ef3758df010f11 Mon Sep 17 00:00:00 2001
From: Pietro Monteiro <[email protected]>
Date: Wed, 6 Mar 2024 21:59:14 -0500
Subject: [PATCH] Add support for SuperH
---
src/greenlet/platform/switch_sh_gcc.h | 36 +++++++++++++++++++++++++++
src/greenlet/slp_platformselect.h | 2 ++
2 files changed, 38 insertions(+)
create mode 100644 src/greenlet/platform/switch_sh_gcc.h
diff --git a/src/greenlet/platform/switch_sh_gcc.h
b/src/greenlet/platform/switch_sh_gcc.h
new file mode 100644
index 0000000..5ecc3b3
--- /dev/null
+++ b/src/greenlet/platform/switch_sh_gcc.h
@@ -0,0 +1,36 @@
+#define STACK_REFPLUS 1
+
+#ifdef SLP_EVAL
+#define STACK_MAGIC 0
+#define REGS_TO_SAVE "r8", "r9", "r10", "r11", "r13", \
+ "fr12", "fr13", "fr14", "fr15"
+
+// r12 Global context pointer, GP
+// r14 Frame pointer, FP
+// r15 Stack pointer, SP
+
+static int
+slp_switch(void)
+{
+ int err;
+ void* fp;
+ int *stackref, stsizediff;
+ __asm__ volatile("" : : : REGS_TO_SAVE);
+ __asm__ volatile("mov.l r14, %0" : "=m"(fp) : :);
+ __asm__("mov r15, %0" : "=r"(stackref));
+ {
+ SLP_SAVE_STATE(stackref, stsizediff);
+ __asm__ volatile(
+ "add %0, r15\n"
+ "add %0, r14\n"
+ : /* no outputs */
+ : "r"(stsizediff));
+ SLP_RESTORE_STATE();
+ __asm__ volatile("mov r0, %0" : "=r"(err) : :);
+ }
+ __asm__ volatile("mov.l %0, r14" : : "m"(fp) :);
+ __asm__ volatile("" : : : REGS_TO_SAVE);
+ return err;
+}
+
+#endif
diff --git a/src/greenlet/slp_platformselect.h
b/src/greenlet/slp_platformselect.h
index c959f0f..8a77328 100644
--- a/src/greenlet/slp_platformselect.h
+++ b/src/greenlet/slp_platformselect.h
@@ -64,6 +64,8 @@ extern "C" {
# include "platform/switch_aarch64_gcc.h" /* LLVM Aarch64 ABI for Windows */
#elif defined(__GNUC__) && defined(__loongarch64) && defined(__linux__)
# include "platform/switch_loongarch64_linux.h" /* LoongArch64 */
+#elif defined(__GNUC__) && defined(__sh__)
+# include "platform/switch_sh_gcc.h" /* SuperH */
#endif
#ifdef __cplusplus
--
2.44.0
--- End Message ---
--- Begin Message ---
Source: python-greenlet
Source-Version: 3.1.0-1
Done: Stefano Rivera <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-greenlet, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated python-greenlet
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 20 Sep 2024 19:00:48 +0200
Source: python-greenlet
Architecture: source
Version: 3.1.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>,
Changed-By: Stefano Rivera <[email protected]>
Closes: 1066996 1081542
Changes:
python-greenlet (3.1.0-1) unstable; urgency=medium
.
* Team upload
* New upstream release.
- Supports sh4 (Closes: #1066996)
- Supports Python 3.13 (Closes: #1081542)
* Drop patch arm32-tests, superseded upstream.
* Build-Depend on furo sphinx theme.
* Support the nodoc build profile.
* Bump Standards-Version to 4.7.0, no changes needed.
* Bump copyright years.
* Drop XB-Python-Version, no longer used.
Checksums-Sha1:
84178637158203ff05f45cb9d136854ba7202d10 1744 python-greenlet_3.1.0-1.dsc
a811f75016f1baab07fda4f11d6b8b6087391fc2 177964
python-greenlet_3.1.0.orig.tar.gz
2b03a648d92850ab090289c122ff419484d7d73f 10368
python-greenlet_3.1.0-1.debian.tar.xz
bd8f3163638aa8431e94958d3121213df5f109c4 8560
python-greenlet_3.1.0-1_source.buildinfo
Checksums-Sha256:
aa60855523726485037c4707abc63d7b623849c36d13e28526580b65f28bf4eb 1744
python-greenlet_3.1.0-1.dsc
65f09f918f2243ddf1cba25f7203a296f0f4c8eee732e0f2daeb70748e743b49 177964
python-greenlet_3.1.0.orig.tar.gz
026cb3395af57c4864c9c7fffb04ed20bd3ac0f3fc0659202e2d70a3536ec008 10368
python-greenlet_3.1.0-1.debian.tar.xz
473921e28e09aeaffbc0b9eba8dc936038edff2ba40ff68b62f97d4261671e53 8560
python-greenlet_3.1.0-1_source.buildinfo
Files:
ba61188d71d538745b8bf91a0d8b1d7d 1744 python optional
python-greenlet_3.1.0-1.dsc
eecee67c5947dcd3ca8ecdb15f0b7835 177964 python optional
python-greenlet_3.1.0.orig.tar.gz
7049a1972cd5efc2b19e678d00ca439f 10368 python optional
python-greenlet_3.1.0-1.debian.tar.xz
3794754986bf22478b8f0a1d2a2345d7 8560 python optional
python-greenlet_3.1.0-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZu2xXRQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2Oo9AQDlGDo6PPDQCkHSwwh3csEIO8EN9vTr
Gdj4wDLCAw6UOQD/QssKkEenUu/Ds0oSg4wKWVEr0jL0M5iHIffS4RRcAQ8=
=2GJR
-----END PGP SIGNATURE-----
pgpgInTTd1hD7.pgp
Description: PGP signature
--- End Message ---