diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pyserial/files | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pyserial/files')
| -rw-r--r-- | dev-python/pyserial/files/pyserial-3.5-glibc-2.42.patch | 39 | ||||
| -rw-r--r-- | dev-python/pyserial/files/pyserial-3.5-unittest-fix.patch | 28 |
2 files changed, 0 insertions, 67 deletions
diff --git a/dev-python/pyserial/files/pyserial-3.5-glibc-2.42.patch b/dev-python/pyserial/files/pyserial-3.5-glibc-2.42.patch deleted file mode 100644 index 3a4e95a85449..000000000000 --- a/dev-python/pyserial/files/pyserial-3.5-glibc-2.42.patch +++ /dev/null @@ -1,39 +0,0 @@ -https://github.com/pyserial/pyserial/issues/805 -https://github.com/pyserial/pyserial/pull/808 - -From 152f2639c630141b9d23f023178b619751e624a0 Mon Sep 17 00:00:00 2001 -From: Alexander von Gluck IV <alex@terarocket.io> -Date: Sun, 24 Aug 2025 20:17:51 -0500 -Subject: [PATCH] serial_posix: Fix custom baud rates for glibc >=2.42; solves - #805 - -* https://sourceware.org/pipermail/libc-alpha/2025-July/168553.html -* Based on changes recommended by JoaoBarioni in #805 -* Reverts 0085e1e1d (#519) ---- - serial/serialposix.py | 11 ++--------- - 1 file changed, 2 insertions(+), 9 deletions(-) - -diff --git a/serial/serialposix.py b/serial/serialposix.py -index 0464075b..6f843918 100644 ---- a/serial/serialposix.py -+++ b/serial/serialposix.py -@@ -430,15 +430,8 @@ def _reconfigure_port(self, force_update=False): - ispeed = ospeed = self.BAUDRATE_CONSTANTS[self._baudrate] - except KeyError: - #~ raise ValueError('Invalid baud rate: %r' % self._baudrate) -- -- # See if BOTHER is defined for this platform; if it is, use -- # this for a speed not defined in the baudrate constants list. -- try: -- ispeed = ospeed = BOTHER -- except NameError: -- # may need custom baud rate, it isn't in our list. -- ispeed = ospeed = getattr(termios, 'B38400') -- -+ # Use safe placeholder for tcsetattr(), try to set special baudrate later -+ ispeed = ospeed = termios.B38400 - try: - custom_baud = int(self._baudrate) # store for later - except ValueError: - diff --git a/dev-python/pyserial/files/pyserial-3.5-unittest-fix.patch b/dev-python/pyserial/files/pyserial-3.5-unittest-fix.patch deleted file mode 100644 index 1576cedcf00c..000000000000 --- a/dev-python/pyserial/files/pyserial-3.5-unittest-fix.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 239f840076bf9da76906dc029f26a423fef4a698 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@atlas.cz> -Date: Fri, 7 Jun 2024 16:45:15 +0200 -Subject: [PATCH] Replace deprecated unittest.findTestCases function - -The unittest.findTestCases function was deprecated in Python 3.11 and -later removed in Python 3.13. The TestLoader methods should be used -instead [1]. - -[1] https://docs.python.org/3.13/whatsnew/3.13.html#unittest - -Upstream-Issue: https://github.com/pyserial/pyserial/issues/754 -Upstream-PR: https://github.com/pyserial/pyserial/issues/757 - -diff --git a/test/run_all_tests.py b/test/run_all_tests.py -index e0797e7e..f09fe9bb 100644 ---- a/test/run_all_tests.py -+++ b/test/run_all_tests.py -@@ -37,7 +37,8 @@ - print("skipping {}".format(modulename)) - else: - module.PORT = PORT -- testsuite = unittest.findTestCases(module) -+ loader = unittest.TestLoader() -+ testsuite = loader.loadTestsFromModule(module) - print("found {} tests in {!r}".format(testsuite.countTestCases(), modulename)) - mainsuite.addTest(testsuite) - |
