pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ada-langkit-support-25/patches



Module Name:    pkgsrc
Committed By:   dkazankov
Date:           Sun Oct 12 10:00:04 UTC 2025

Added Files:
        pkgsrc/devel/ada-langkit-support-25/patches:
            patch-langkit_compiled__types.py patch-langkit_libmanage.py
            patch-langkit_utils_____init____.py

Log Message:
ada-langkit-support-25: add missing patches


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_compiled__types.py \
    pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_libmanage.py \
    pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_utils_____init____.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_compiled__types.py
diff -u /dev/null pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_compiled__types.py:1.1
--- /dev/null   Sun Oct 12 10:00:04 2025
+++ pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_compiled__types.py        Sun Oct 12 10:00:04 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-langkit_compiled__types.py,v 1.1 2025/10/12 10:00:04 dkazankov Exp $
+
+Transition uses of the Python pipes module to shlex
+"pipes" was removed from Python 3.13.
+https://github.com/AdaCore/langkit/commit/dbacb9b5545315e7045ef082dba99d2c96ed1356
+
+--- langkit/compiled_types.py.orig     2024-12-10 12:23:59.000000000 +0200
++++ langkit/compiled_types.py
+@@ -6,7 +6,7 @@
+ from dataclasses import dataclass
+ import difflib
+ from itertools import count, takewhile
+-import pipes
++import shlex
+ from typing import (
+     Any,
+     Callable,
Index: pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_libmanage.py
diff -u /dev/null pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_libmanage.py:1.1
--- /dev/null   Sun Oct 12 10:00:04 2025
+++ pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_libmanage.py      Sun Oct 12 10:00:04 2025
@@ -0,0 +1,28 @@
+$NetBSD: patch-langkit_libmanage.py,v 1.1 2025/10/12 10:00:04 dkazankov Exp $
+
+Transition uses of the Python pipes module to shlex
+"pipes" was removed from Python 3.13.
+https://github.com/AdaCore/langkit/commit/dbacb9b5545315e7045ef082dba99d2c96ed1356
+
+--- langkit/libmanage.py.orig  2024-12-10 12:23:59.000000000 +0200
++++ langkit/libmanage.py
+@@ -9,7 +9,7 @@
+ import os
+ from os import path
+ import pdb
+-import pipes
++import shlex
+ import shutil
+ import subprocess
+ import sys
+@@ -1582,9 +1582,7 @@
+         :param argv: Arguments for the command to log.
+         """
+         if self.verbosity.debug:
+-            printcol('Executing: {}'.format(
+-                ' '.join(pipes.quote(arg) for arg in argv)
+-            ), Colors.CYAN)
++            printcol('Executing: {}'.format(shlex.join(argv)), Colors.CYAN)
+ 
+     def log_info(self, msg: str, color: str) -> None:
+         """
Index: pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_utils_____init____.py
diff -u /dev/null pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_utils_____init____.py:1.1
--- /dev/null   Sun Oct 12 10:00:04 2025
+++ pkgsrc/devel/ada-langkit-support-25/patches/patch-langkit_utils_____init____.py     Sun Oct 12 10:00:04 2025
@@ -0,0 +1,25 @@
+$NetBSD: patch-langkit_utils_____init____.py,v 1.1 2025/10/12 10:00:04 dkazankov Exp $
+
+Transition uses of the Python pipes module to shlex
+"pipes" was removed from Python 3.13.
+https://github.com/AdaCore/langkit/commit/dbacb9b5545315e7045ef082dba99d2c96ed1356
+
+--- langkit/utils/__init__.py.orig     2024-12-10 12:23:59.000000000 +0200
++++ langkit/utils/__init__.py
+@@ -11,7 +11,6 @@
+ from copy import copy
+ from enum import Enum
+ import os
+-import pipes
+ import shlex
+ import shutil
+ from typing import (
+@@ -273,7 +272,7 @@
+     environment variable.
+     """
+     return (
+-        f'{name}={pipes.quote(path)}"{os.pathsep}${name}";'
++        f'{name}={shlex.quote(path)}"{os.pathsep}${name}";'
+         f" export {name}"
+     )
+ 



Home | Main Index | Thread Index | Old Index