pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/firefox



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Oct 11 13:55:48 UTC 2024

Modified Files:
        pkgsrc/www/firefox: distinfo
Added Files:
        pkgsrc/www/firefox/patches: patch-js_src_tests_lib_results.py
            patch-python_mozbuild_mozbuild_action_node.py
            patch-testing_mozbase_mozdevice_mozdevice_adb.py
            patch-testing_xpcshell_runxpcshelltests.py
            patch-third__party_libwebrtc_build_android_apk__operations.py
            patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py
            patch-third__party_libwebrtc_build_chromeos_test__runner.py
            patch-third__party_libwebrtc_build_env__dump.py
            patch-third__party_libwebrtc_build_print__python__deps.py
            patch-third__party_libwebrtc_build_vs__toolchain.py
            patch-third__party_python_dlmanager_check.py

Log Message:
firefox: fix build with Python 3.13

pipes.quote was an alias for shlex.quote, but was finally removed in
Python 3.13. Directly use shlex.quote.


To generate a diff of this commit:
cvs rdiff -u -r1.541 -r1.542 pkgsrc/www/firefox/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/firefox/patches/patch-js_src_tests_lib_results.py \
    pkgsrc/www/firefox/patches/patch-python_mozbuild_mozbuild_action_node.py \
    pkgsrc/www/firefox/patches/patch-testing_mozbase_mozdevice_mozdevice_adb.py \
    pkgsrc/www/firefox/patches/patch-testing_xpcshell_runxpcshelltests.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_apk__operations.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_chromeos_test__runner.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_env__dump.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_print__python__deps.py \
    pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_vs__toolchain.py \
    pkgsrc/www/firefox/patches/patch-third__party_python_dlmanager_check.py

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

Modified files:

Index: pkgsrc/www/firefox/distinfo
diff -u pkgsrc/www/firefox/distinfo:1.541 pkgsrc/www/firefox/distinfo:1.542
--- pkgsrc/www/firefox/distinfo:1.541   Tue Oct  1 12:47:18 2024
+++ pkgsrc/www/firefox/distinfo Fri Oct 11 13:55:47 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.541 2024/10/01 12:47:18 ryoon Exp $
+$NetBSD: distinfo,v 1.542 2024/10/11 13:55:47 wiz Exp $
 
 BLAKE2s (firefox-130.0.1.source.tar.xz) = 2aee241b1375f2132fc79c2162d1f29134ff30c24ed23f544b46e2cac30b1ffa
 SHA512 (firefox-130.0.1.source.tar.xz) = 163d1ce9f671a4716686955c43ff23d9f200f6c52dfdabcbb93af6a326c24aa5096404f42447b02b5a3ad02e2f60d17271783638fe027d24865aebb3e70e97fe
@@ -24,6 +24,7 @@ SHA1 (patch-js-src-jit-arm64-vixl-MozCpu
 SHA1 (patch-js_public_Utility.h) = bb5464a0398b91693ab362e6b9b06d48429b9e7d
 SHA1 (patch-js_src_jit_FlushICache.cpp) = d1e611eaf7d7be22abfac6b39fbcd99df3570e47
 SHA1 (patch-js_src_old-configure.in) = 589e24765615ede2c3c6abfe0b3529c5645193ed
+SHA1 (patch-js_src_tests_lib_results.py) = 5634207e249cab7270b47f4515657740e803d616
 SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba
 SHA1 (patch-js_src_vm_TypedArrayObject-inl.h) = e7913c8d4b2b05b67040baa64dae62d6ba40390e
 SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a
@@ -31,15 +32,25 @@ SHA1 (patch-media_libpng_pngpriv.h) = 83
 SHA1 (patch-modules_fdlibm_src_math__private.h) = e20b6c23011d7123cbbd64a500eb8ce8c426620e
 SHA1 (patch-netwerk_protocol_http_nsHttpHandler.cpp) = 8e1d9a0746b637f5f4259e448e72172cfb08b23f
 SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = b0d1f6a6e0eb852b0fd0238ad3f8ed3166c60a50
+SHA1 (patch-python_mozbuild_mozbuild_action_node.py) = eece38efe4ee1eb51de6cca89fa1c479ef02d60c
 SHA1 (patch-python_mozbuild_mozbuild_backend_recursivemake.py) = 5be4183d9075f5a3a3c6b3e0338473af185fb50e
 SHA1 (patch-security_nss_lib_freebl_mpi_mpi.c) = a7cd867916524770609d1c307a65b315b88456f4
+SHA1 (patch-testing_mozbase_mozdevice_mozdevice_adb.py) = 14d5107ce2c945d8b8d60a8edc968443a9970291
+SHA1 (patch-testing_xpcshell_runxpcshelltests.py) = 1c42e8794da0bdd6248bd53d1450b982616aa536
 SHA1 (patch-third__party_js_cfworker_build.sh) = 46cdf97b99cf01080f290ae8d9a33b5f869fc3e4
+SHA1 (patch-third__party_libwebrtc_build_android_apk__operations.py) = a74d8c87746420f29d1be49af6a5c5e191897e3f
+SHA1 (patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py) = aaf39184e25aa3f97c02dd29c4877e0f9b172063
+SHA1 (patch-third__party_libwebrtc_build_chromeos_test__runner.py) = 36f902daff9d98bcbd12c725ee49373e583f6cd5
+SHA1 (patch-third__party_libwebrtc_build_env__dump.py) = a8cdb9fc5baf15454019f9011fafa1d5967f9eda
+SHA1 (patch-third__party_libwebrtc_build_print__python__deps.py) = cbb5917cc9d82f3a0d16684dff1ecee3e83e0f56
+SHA1 (patch-third__party_libwebrtc_build_vs__toolchain.py) = 265412d8da2497c1e8893edfaf5d78abf96620df
 SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_desktop__capture__gn_moz.build) = d0454784eb72be49162f619579e060a0de3c480f
 SHA1 (patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland_egl__dmabuf.cc) = 455be625b5de2f6f1f4b2dbb6c8cb33ca16c2583
 SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_device__info__v4l2.cc) = 4cb0e1c88dc83370024ed1aac7f75445b9f98df8
 SHA1 (patch-third__party_libwebrtc_modules_video__capture_linux_video__capture__v4l2.cc) = 8111952a107eb2cd665525ddd0e27c79eee3c1cd
 SHA1 (patch-third__party_libwebrtc_rtc__base_physical__socket__server.cc) = 6909c4da9e7b3785252e5bce9be0ff47ebb87e01
 SHA1 (patch-third__party_libwebrtc_system__wrappers_source_cpu__features__linux.cc) = b90e22b50879f7adcc1da3a993f52c0701b720f8
+SHA1 (patch-third__party_python_dlmanager_check.py) = 69054522d8ced8cb47e65e5a8b1a87ed5ce6708e
 SHA1 (patch-third__party_sqlite3_ext_moz.build) = 2df374daa1c974b52db602613508e4fc965a7bcd
 SHA1 (patch-third__party_sqlite3_src_moz.build) = b26856a4b87aa12211575d9982f62dc899474b52
 SHA1 (patch-third__party_wasm2c_src_prebuilt_wasm2c__source__includes.cc) = 99d0db944f0c2d0c623460991efd423d9127c988

Added files:

Index: pkgsrc/www/firefox/patches/patch-js_src_tests_lib_results.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-js_src_tests_lib_results.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-js_src_tests_lib_results.py        Fri Oct 11 13:55:47 2024
@@ -0,0 +1,22 @@
+$NetBSD: patch-js_src_tests_lib_results.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- js/src/tests/lib/results.py.orig   2024-10-11 13:42:54.292672525 +0000
++++ js/src/tests/lib/results.py
+@@ -1,5 +1,5 @@
+ import json
+-import pipes
++import shlex
+ import re
+ 
+ from .progressbar import NullProgressBar, ProgressBar
+@@ -9,7 +9,7 @@ from .structuredlog import TestLogger
+ 
+ 
+ def escape_cmdline(args):
+-    return " ".join([pipes.quote(a) for a in args])
++    return " ".join([shlex.quote(a) for a in args])
+ 
+ 
+ class TestOutput:
Index: pkgsrc/www/firefox/patches/patch-python_mozbuild_mozbuild_action_node.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-python_mozbuild_mozbuild_action_node.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-python_mozbuild_mozbuild_action_node.py    Fri Oct 11 13:55:47 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-python_mozbuild_mozbuild_action_node.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- python/mozbuild/mozbuild/action/node.py.orig       2024-10-11 13:41:58.827020901 +0000
++++ python/mozbuild/mozbuild/action/node.py
+@@ -2,7 +2,7 @@
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ 
+-import pipes
++import shlex
+ import subprocess
+ import sys
+ 
+@@ -47,7 +47,7 @@ def execute_node_cmd(node_cmd_list):
+     """
+ 
+     try:
+-        printable_cmd = " ".join(pipes.quote(arg) for arg in node_cmd_list)
++        printable_cmd = " ".join(shlex.quote(arg) for arg in node_cmd_list)
+         print('Executing "{}"'.format(printable_cmd), file=sys.stderr)
+         sys.stderr.flush()
+ 
Index: pkgsrc/www/firefox/patches/patch-testing_mozbase_mozdevice_mozdevice_adb.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-testing_mozbase_mozdevice_mozdevice_adb.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-testing_mozbase_mozdevice_mozdevice_adb.py Fri Oct 11 13:55:47 2024
@@ -0,0 +1,23 @@
+$NetBSD: patch-testing_mozbase_mozdevice_mozdevice_adb.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- testing/mozbase/mozdevice/mozdevice/adb.py.orig    2024-10-11 13:42:22.039323223 +0000
++++ testing/mozbase/mozdevice/mozdevice/adb.py
+@@ -4,7 +4,6 @@
+ 
+ import io
+ import os
+-import pipes
+ import posixpath
+ import re
+ import shlex
+@@ -1286,8 +1285,6 @@ class ADBDevice(ADBCommand):
+         """Utility function to return quoted version of command argument."""
+         if hasattr(shlex, "quote"):
+             quote = shlex.quote
+-        elif hasattr(pipes, "quote"):
+-            quote = pipes.quote
+         else:
+ 
+             def quote(arg):
Index: pkgsrc/www/firefox/patches/patch-testing_xpcshell_runxpcshelltests.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-testing_xpcshell_runxpcshelltests.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-testing_xpcshell_runxpcshelltests.py       Fri Oct 11 13:55:47 2024
@@ -0,0 +1,29 @@
+$NetBSD: patch-testing_xpcshell_runxpcshelltests.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- testing/xpcshell/runxpcshelltests.py.orig  2024-10-11 13:42:14.137641240 +0000
++++ testing/xpcshell/runxpcshelltests.py
+@@ -7,7 +7,7 @@
+ import copy
+ import json
+ import os
+-import pipes
++import shlex
+ import platform
+ import random
+ import re
+@@ -372,11 +372,11 @@ class XPCShellTestThread(Thread):
+         )
+         self.log.info("%s | environment: %s" % (name, list(changedEnv)))
+         shell_command_tokens = [
+-            pipes.quote(tok) for tok in list(changedEnv) + completeCmd
++            shlex.quote(tok) for tok in list(changedEnv) + completeCmd
+         ]
+         self.log.info(
+             "%s | as shell command: (cd %s; %s)"
+-            % (name, pipes.quote(testdir), " ".join(shell_command_tokens))
++            % (name, shlex.quote(testdir), " ".join(shell_command_tokens))
+         )
+ 
+     def killTimeout(self, proc):
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_apk__operations.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_apk__operations.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_apk__operations.py    Fri Oct 11 13:55:47 2024
@@ -0,0 +1,42 @@
+$NetBSD: patch-third__party_libwebrtc_build_android_apk__operations.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/android/apk_operations.py.orig 2024-10-11 13:43:36.953193495 +0000
++++ third_party/libwebrtc/build/android/apk_operations.py
+@@ -13,7 +13,7 @@ import collections
+ import json
+ import logging
+ import os
+-import pipes
++import shlex
+ import posixpath
+ import random
+ import re
+@@ -294,7 +294,7 @@ def _RunGdb(device, package_name, debug_
+     cmd.append('--verbose')
+   if target_cpu:
+     cmd.append('--target-arch=%s' % _TargetCpuToTargetArch(target_cpu))
+-  logging.warning('Running: %s', ' '.join(pipes.quote(x) for x in cmd))
++  logging.warning('Running: %s', ' '.join(shlex.quote(x) for x in cmd))
+   print(_Colorize('All subsequent output is from adb_gdb script.',
+                   colorama.Fore.YELLOW))
+   os.execv(gdb_script_path, cmd)
+@@ -502,7 +502,7 @@ def _RunDiskUsage(devices, package_name)
+               odex_paths.append('/data/dalvik-cache/%s@classes%s.dex' % (
+                   mangled_apk_path, suffix))
+ 
+-    odex_sizes = _DuHelper(d, ' '.join(pipes.quote(p) for p in odex_paths))
++    odex_sizes = _DuHelper(d, ' '.join(shlex.quote(p) for p in odex_paths))
+ 
+     return (data_dir_sizes, code_cache_sizes, apk_sizes, lib_sizes, odex_sizes,
+             compilation_filter)
+@@ -1002,7 +1002,7 @@ def _DisplayArgs(devices, command_line_f
+   print('Existing flags per-device (via /data/local/tmp/{}):'.format(
+       command_line_flags_file))
+   for flags in _PrintPerDeviceOutput(devices, outputs, single_line=True):
+-    quoted_flags = ' '.join(pipes.quote(f) for f in flags)
++    quoted_flags = ' '.join(shlex.quote(f) for f in flags)
+     print(quoted_flags or 'No flags set.')
+ 
+ 
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py      Fri Oct 11 13:55:47 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-third__party_libwebrtc_build_android_gyp_util_build__utils.py,v 1.1 2024/10/11 13:55:47 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/android/gyp/util/build_utils.py.orig   2024-10-11 13:43:32.145451522 +0000
++++ third_party/libwebrtc/build/android/gyp/util/build_utils.py
+@@ -12,7 +12,7 @@ import fnmatch
+ import json
+ import logging
+ import os
+-import pipes
++import shlex
+ import re
+ import shutil
+ import stat
+@@ -199,7 +199,7 @@ class CalledProcessError(Exception):
+     # A user should be able to simply copy and paste the command that failed
+     # into their shell.
+     copyable_command = '( cd {}; {} )'.format(os.path.abspath(self.cwd),
+-        ' '.join(map(pipes.quote, self.args)))
++        ' '.join(map(shlex.quote, self.args)))
+     return 'Command failed: {}\n{}'.format(copyable_command, self.output)
+ 
+ 
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_chromeos_test__runner.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_chromeos_test__runner.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_chromeos_test__runner.py      Fri Oct 11 13:55:48 2024
@@ -0,0 +1,33 @@
+$NetBSD: patch-third__party_libwebrtc_build_chromeos_test__runner.py,v 1.1 2024/10/11 13:55:48 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/chromeos/test_runner.py.orig   2024-10-11 13:42:59.456381299 +0000
++++ third_party/libwebrtc/build/chromeos/test_runner.py
+@@ -9,7 +9,7 @@ import collections
+ import json
+ import logging
+ import os
+-import pipes
++import shlex
+ import re
+ import shutil
+ import signal
+@@ -342,7 +342,7 @@ class TastTest(RemoteTest):
+         # aren't compatible.
+         local_test_runner_cmd.append('-extrauseflags=tast_vm')
+       if self._attr_expr:
+-        local_test_runner_cmd.append(pipes.quote(self._attr_expr))
++        local_test_runner_cmd.append(shlex.quote(self._attr_expr))
+       else:
+         local_test_runner_cmd.extend(self._tests)
+       device_test_script_contents.append(' '.join(local_test_runner_cmd))
+@@ -380,7 +380,7 @@ class TastTest(RemoteTest):
+         self._attr_expr = '(' + ' || '.join(names) + ')'
+ 
+       if self._attr_expr:
+-        # Don't use pipes.quote() here. Something funky happens with the arg
++        # Don't use shlex.quote() here. Something funky happens with the arg
+         # as it gets passed down from cros_run_test to tast. (Tast picks up the
+         # escaping single quotes and complains that the attribute expression
+         # "must be within parentheses".)
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_env__dump.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_env__dump.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_env__dump.py  Fri Oct 11 13:55:48 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-third__party_libwebrtc_build_env__dump.py,v 1.1 2024/10/11 13:55:48 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/env_dump.py.orig       2024-10-11 13:43:22.427985012 +0000
++++ third_party/libwebrtc/build/env_dump.py
+@@ -9,7 +9,7 @@
+ import json
+ import optparse
+ import os
+-import pipes
++import shlex
+ import subprocess
+ import sys
+ 
+@@ -32,7 +32,7 @@ def main():
+     if not options.output_json:
+       parser.error('Requires --output-json option.')
+ 
+-    envsetup_cmd = ' '.join(map(pipes.quote, args))
++    envsetup_cmd = ' '.join(map(shlex.quote, args))
+     full_cmd = [
+         'bash', '-c',
+         '. %s > /dev/null; %s -d' % (envsetup_cmd, os.path.abspath(__file__))
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_print__python__deps.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_print__python__deps.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_print__python__deps.py        Fri Oct 11 13:55:48 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-third__party_libwebrtc_build_print__python__deps.py,v 1.1 2024/10/11 13:55:48 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/print_python_deps.py.orig      2024-10-11 13:43:27.070262533 +0000
++++ third_party/libwebrtc/build/print_python_deps.py
+@@ -14,7 +14,7 @@ This script should be compatible with Py
+ import argparse
+ import fnmatch
+ import os
+-import pipes
++import shlex
+ import sys
+ 
+ # Don't use any helper modules, or else they will end up in the results.
+@@ -61,7 +61,7 @@ def _NormalizeCommandLine(options):
+   for allowlist in sorted(options.allowlists):
+     args.extend(('--allowlist', os.path.relpath(allowlist, _SRC_ROOT)))
+   args.append(os.path.relpath(options.module, _SRC_ROOT))
+-  return ' '.join(pipes.quote(x) for x in args)
++  return ' '.join(shlex.quote(x) for x in args)
+ 
+ 
+ def _FindPythonInDirectory(directory, allow_test):
Index: pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_vs__toolchain.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_vs__toolchain.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_libwebrtc_build_vs__toolchain.py      Fri Oct 11 13:55:48 2024
@@ -0,0 +1,14 @@
+$NetBSD: patch-third__party_libwebrtc_build_vs__toolchain.py,v 1.1 2024/10/11 13:55:48 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/libwebrtc/build/vs_toolchain.py.orig   2024-10-11 13:43:08.737671418 +0000
++++ third_party/libwebrtc/build/vs_toolchain.py
+@@ -9,7 +9,6 @@ import collections
+ import glob
+ import json
+ import os
+-import pipes
+ import platform
+ import re
+ import shutil
Index: pkgsrc/www/firefox/patches/patch-third__party_python_dlmanager_check.py
diff -u /dev/null pkgsrc/www/firefox/patches/patch-third__party_python_dlmanager_check.py:1.1
--- /dev/null   Fri Oct 11 13:55:48 2024
+++ pkgsrc/www/firefox/patches/patch-third__party_python_dlmanager_check.py     Fri Oct 11 13:55:48 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-third__party_python_dlmanager_check.py,v 1.1 2024/10/11 13:55:48 wiz Exp $
+
+Fix build with Python 3.13.
+
+--- third_party/python/dlmanager/check.py.orig 2024-10-11 13:43:43.746252969 +0000
++++ third_party/python/dlmanager/check.py
+@@ -5,7 +5,7 @@ Run flake8 checks and tests.
+ 
+ import os
+ import argparse
+-import pipes
++import shlex
+ import shutil
+ import tempfile
+ 
+@@ -23,7 +23,7 @@ def parse_args():
+ 
+ 
+ def run(cmd, **kwargs):
+-    msg = 'Running: |%s|' % ' '.join(pipes.quote(c) for c in cmd)
++    msg = 'Running: |%s|' % ' '.join(shlex.quote(c) for c in cmd)
+     if kwargs.get('cwd'):
+         msg += ' in %s' % kwargs['cwd']
+     print(msg)



Home | Main Index | Thread Index | Old Index