1
0
forked from pool/libseccomp
libseccomp/make-python-build.patch
2025-01-24 02:34:43 +01:00

656 lines
22 KiB
Diff

---
src/python/setup.py | 4 ++--
tests/01-sim-allow.py | 2 +-
tests/02-sim-basic.py | 2 +-
tests/03-sim-basic_chains.py | 2 +-
tests/04-sim-multilevel_chains.py | 2 +-
tests/05-sim-long_jumps.py | 2 +-
tests/06-sim-actions.py | 2 +-
tests/07-sim-db_bug_looping.py | 2 +-
tests/08-sim-subtree_checks.py | 2 +-
tests/09-sim-syscall_priority_pre.py | 2 +-
tests/10-sim-syscall_priority_post.py | 2 +-
tests/11-basic-basic_errors.py | 2 +-
tests/12-sim-basic_masked_ops.py | 2 +-
tests/13-basic-attrs.py | 2 +-
tests/14-sim-reset.py | 2 +-
tests/15-basic-resolver.py | 2 +-
tests/16-sim-arch_basic.py | 2 +-
tests/17-sim-arch_merge.py | 2 +-
tests/18-sim-basic_allowlist.py | 2 +-
tests/19-sim-missing_syscalls.py | 2 +-
tests/20-live-basic_die.py | 2 +-
tests/21-live-basic_allow.py | 2 +-
tests/22-sim-basic_chains_array.py | 2 +-
tests/23-sim-arch_all_le_basic.py | 2 +-
tests/24-live-arg_allow.py | 2 +-
tests/25-sim-multilevel_chains_adv.py | 2 +-
tests/26-sim-arch_all_be_basic.py | 2 +-
tests/27-sim-bpf_blk_state.py | 2 +-
tests/28-sim-arch_x86.py | 2 +-
tests/29-sim-pseudo_syscall.py | 2 +-
tests/30-sim-socket_syscalls.py | 2 +-
tests/31-basic-version_check.py | 2 +-
tests/32-live-tsync_allow.py | 2 +-
tests/33-sim-socket_syscalls_be.py | 2 +-
tests/34-sim-basic_denylist.py | 2 +-
tests/35-sim-negative_one.py | 2 +-
tests/36-sim-ipc_syscalls.py | 2 +-
tests/37-sim-ipc_syscalls_be.py | 2 +-
tests/39-basic-api_level.py | 2 +-
tests/40-sim-log.py | 2 +-
tests/41-sim-syscall_priority_arch.py | 2 +-
tests/42-sim-adv_chains.py | 2 +-
tests/43-sim-a2_order.py | 2 +-
tests/44-live-a2_order.py | 2 +-
tests/45-sim-chain_code_coverage.py | 2 +-
tests/46-sim-kill_process.py | 2 +-
tests/47-live-kill_process.py | 2 +-
tests/48-sim-32b_args.py | 2 +-
tests/49-sim-64b_comparisons.py | 2 +-
tests/50-sim-hash_collision.py | 2 +-
tests/51-live-user_notification.py | 2 +-
tests/52-basic-load.py | 2 +-
tests/53-sim-binary_tree.py | 2 +-
tests/54-live-binary_tree.py | 2 +-
tests/56-basic-iterate_syscalls.py | 2 +-
tests/57-basic-rawsysrc.py | 2 +-
tests/58-live-tsync_notify.py | 2 +-
tests/regression | 4 ++--
58 files changed, 60 insertions(+), 60 deletions(-)
Index: libseccomp-2.6.0/src/python/setup.py
===================================================================
--- libseccomp-2.6.0.orig/src/python/setup.py
+++ libseccomp-2.6.0/src/python/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Enhanced Seccomp Library Python Module Build Script
@@ -40,6 +40,6 @@ setup(
ext_modules = cythonize([
Extension("seccomp", ["seccomp.pyx"],
# unable to handle libtool libraries directly
- extra_objects=["../.libs/libseccomp.a"]),
+ extra_objects=["../.libs/libseccomp.so"]),
])
)
Index: libseccomp-2.6.0/tests/01-sim-allow.py
===================================================================
--- libseccomp-2.6.0.orig/tests/01-sim-allow.py
+++ libseccomp-2.6.0/tests/01-sim-allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/02-sim-basic.py
===================================================================
--- libseccomp-2.6.0.orig/tests/02-sim-basic.py
+++ libseccomp-2.6.0/tests/02-sim-basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/03-sim-basic_chains.py
===================================================================
--- libseccomp-2.6.0.orig/tests/03-sim-basic_chains.py
+++ libseccomp-2.6.0/tests/03-sim-basic_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/04-sim-multilevel_chains.py
===================================================================
--- libseccomp-2.6.0.orig/tests/04-sim-multilevel_chains.py
+++ libseccomp-2.6.0/tests/04-sim-multilevel_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/05-sim-long_jumps.py
===================================================================
--- libseccomp-2.6.0.orig/tests/05-sim-long_jumps.py
+++ libseccomp-2.6.0/tests/05-sim-long_jumps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/06-sim-actions.py
===================================================================
--- libseccomp-2.6.0.orig/tests/06-sim-actions.py
+++ libseccomp-2.6.0/tests/06-sim-actions.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/07-sim-db_bug_looping.py
===================================================================
--- libseccomp-2.6.0.orig/tests/07-sim-db_bug_looping.py
+++ libseccomp-2.6.0/tests/07-sim-db_bug_looping.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/08-sim-subtree_checks.py
===================================================================
--- libseccomp-2.6.0.orig/tests/08-sim-subtree_checks.py
+++ libseccomp-2.6.0/tests/08-sim-subtree_checks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/09-sim-syscall_priority_pre.py
===================================================================
--- libseccomp-2.6.0.orig/tests/09-sim-syscall_priority_pre.py
+++ libseccomp-2.6.0/tests/09-sim-syscall_priority_pre.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/10-sim-syscall_priority_post.py
===================================================================
--- libseccomp-2.6.0.orig/tests/10-sim-syscall_priority_post.py
+++ libseccomp-2.6.0/tests/10-sim-syscall_priority_post.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/11-basic-basic_errors.py
===================================================================
--- libseccomp-2.6.0.orig/tests/11-basic-basic_errors.py
+++ libseccomp-2.6.0/tests/11-basic-basic_errors.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/12-sim-basic_masked_ops.py
===================================================================
--- libseccomp-2.6.0.orig/tests/12-sim-basic_masked_ops.py
+++ libseccomp-2.6.0/tests/12-sim-basic_masked_ops.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/13-basic-attrs.py
===================================================================
--- libseccomp-2.6.0.orig/tests/13-basic-attrs.py
+++ libseccomp-2.6.0/tests/13-basic-attrs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/14-sim-reset.py
===================================================================
--- libseccomp-2.6.0.orig/tests/14-sim-reset.py
+++ libseccomp-2.6.0/tests/14-sim-reset.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/15-basic-resolver.py
===================================================================
--- libseccomp-2.6.0.orig/tests/15-basic-resolver.py
+++ libseccomp-2.6.0/tests/15-basic-resolver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/16-sim-arch_basic.py
===================================================================
--- libseccomp-2.6.0.orig/tests/16-sim-arch_basic.py
+++ libseccomp-2.6.0/tests/16-sim-arch_basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/17-sim-arch_merge.py
===================================================================
--- libseccomp-2.6.0.orig/tests/17-sim-arch_merge.py
+++ libseccomp-2.6.0/tests/17-sim-arch_merge.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/18-sim-basic_allowlist.py
===================================================================
--- libseccomp-2.6.0.orig/tests/18-sim-basic_allowlist.py
+++ libseccomp-2.6.0/tests/18-sim-basic_allowlist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/19-sim-missing_syscalls.py
===================================================================
--- libseccomp-2.6.0.orig/tests/19-sim-missing_syscalls.py
+++ libseccomp-2.6.0/tests/19-sim-missing_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/20-live-basic_die.py
===================================================================
--- libseccomp-2.6.0.orig/tests/20-live-basic_die.py
+++ libseccomp-2.6.0/tests/20-live-basic_die.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/21-live-basic_allow.py
===================================================================
--- libseccomp-2.6.0.orig/tests/21-live-basic_allow.py
+++ libseccomp-2.6.0/tests/21-live-basic_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/22-sim-basic_chains_array.py
===================================================================
--- libseccomp-2.6.0.orig/tests/22-sim-basic_chains_array.py
+++ libseccomp-2.6.0/tests/22-sim-basic_chains_array.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/23-sim-arch_all_le_basic.py
===================================================================
--- libseccomp-2.6.0.orig/tests/23-sim-arch_all_le_basic.py
+++ libseccomp-2.6.0/tests/23-sim-arch_all_le_basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/24-live-arg_allow.py
===================================================================
--- libseccomp-2.6.0.orig/tests/24-live-arg_allow.py
+++ libseccomp-2.6.0/tests/24-live-arg_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/25-sim-multilevel_chains_adv.py
===================================================================
--- libseccomp-2.6.0.orig/tests/25-sim-multilevel_chains_adv.py
+++ libseccomp-2.6.0/tests/25-sim-multilevel_chains_adv.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/26-sim-arch_all_be_basic.py
===================================================================
--- libseccomp-2.6.0.orig/tests/26-sim-arch_all_be_basic.py
+++ libseccomp-2.6.0/tests/26-sim-arch_all_be_basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/27-sim-bpf_blk_state.py
===================================================================
--- libseccomp-2.6.0.orig/tests/27-sim-bpf_blk_state.py
+++ libseccomp-2.6.0/tests/27-sim-bpf_blk_state.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/28-sim-arch_x86.py
===================================================================
--- libseccomp-2.6.0.orig/tests/28-sim-arch_x86.py
+++ libseccomp-2.6.0/tests/28-sim-arch_x86.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/29-sim-pseudo_syscall.py
===================================================================
--- libseccomp-2.6.0.orig/tests/29-sim-pseudo_syscall.py
+++ libseccomp-2.6.0/tests/29-sim-pseudo_syscall.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/30-sim-socket_syscalls.py
===================================================================
--- libseccomp-2.6.0.orig/tests/30-sim-socket_syscalls.py
+++ libseccomp-2.6.0/tests/30-sim-socket_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/31-basic-version_check.py
===================================================================
--- libseccomp-2.6.0.orig/tests/31-basic-version_check.py
+++ libseccomp-2.6.0/tests/31-basic-version_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/32-live-tsync_allow.py
===================================================================
--- libseccomp-2.6.0.orig/tests/32-live-tsync_allow.py
+++ libseccomp-2.6.0/tests/32-live-tsync_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/33-sim-socket_syscalls_be.py
===================================================================
--- libseccomp-2.6.0.orig/tests/33-sim-socket_syscalls_be.py
+++ libseccomp-2.6.0/tests/33-sim-socket_syscalls_be.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/34-sim-basic_denylist.py
===================================================================
--- libseccomp-2.6.0.orig/tests/34-sim-basic_denylist.py
+++ libseccomp-2.6.0/tests/34-sim-basic_denylist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/35-sim-negative_one.py
===================================================================
--- libseccomp-2.6.0.orig/tests/35-sim-negative_one.py
+++ libseccomp-2.6.0/tests/35-sim-negative_one.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/36-sim-ipc_syscalls.py
===================================================================
--- libseccomp-2.6.0.orig/tests/36-sim-ipc_syscalls.py
+++ libseccomp-2.6.0/tests/36-sim-ipc_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/37-sim-ipc_syscalls_be.py
===================================================================
--- libseccomp-2.6.0.orig/tests/37-sim-ipc_syscalls_be.py
+++ libseccomp-2.6.0/tests/37-sim-ipc_syscalls_be.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/39-basic-api_level.py
===================================================================
--- libseccomp-2.6.0.orig/tests/39-basic-api_level.py
+++ libseccomp-2.6.0/tests/39-basic-api_level.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/40-sim-log.py
===================================================================
--- libseccomp-2.6.0.orig/tests/40-sim-log.py
+++ libseccomp-2.6.0/tests/40-sim-log.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/41-sim-syscall_priority_arch.py
===================================================================
--- libseccomp-2.6.0.orig/tests/41-sim-syscall_priority_arch.py
+++ libseccomp-2.6.0/tests/41-sim-syscall_priority_arch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/42-sim-adv_chains.py
===================================================================
--- libseccomp-2.6.0.orig/tests/42-sim-adv_chains.py
+++ libseccomp-2.6.0/tests/42-sim-adv_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/43-sim-a2_order.py
===================================================================
--- libseccomp-2.6.0.orig/tests/43-sim-a2_order.py
+++ libseccomp-2.6.0/tests/43-sim-a2_order.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/44-live-a2_order.py
===================================================================
--- libseccomp-2.6.0.orig/tests/44-live-a2_order.py
+++ libseccomp-2.6.0/tests/44-live-a2_order.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/45-sim-chain_code_coverage.py
===================================================================
--- libseccomp-2.6.0.orig/tests/45-sim-chain_code_coverage.py
+++ libseccomp-2.6.0/tests/45-sim-chain_code_coverage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/46-sim-kill_process.py
===================================================================
--- libseccomp-2.6.0.orig/tests/46-sim-kill_process.py
+++ libseccomp-2.6.0/tests/46-sim-kill_process.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/47-live-kill_process.py
===================================================================
--- libseccomp-2.6.0.orig/tests/47-live-kill_process.py
+++ libseccomp-2.6.0/tests/47-live-kill_process.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/48-sim-32b_args.py
===================================================================
--- libseccomp-2.6.0.orig/tests/48-sim-32b_args.py
+++ libseccomp-2.6.0/tests/48-sim-32b_args.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/49-sim-64b_comparisons.py
===================================================================
--- libseccomp-2.6.0.orig/tests/49-sim-64b_comparisons.py
+++ libseccomp-2.6.0/tests/49-sim-64b_comparisons.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/50-sim-hash_collision.py
===================================================================
--- libseccomp-2.6.0.orig/tests/50-sim-hash_collision.py
+++ libseccomp-2.6.0/tests/50-sim-hash_collision.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/51-live-user_notification.py
===================================================================
--- libseccomp-2.6.0.orig/tests/51-live-user_notification.py
+++ libseccomp-2.6.0/tests/51-live-user_notification.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/52-basic-load.py
===================================================================
--- libseccomp-2.6.0.orig/tests/52-basic-load.py
+++ libseccomp-2.6.0/tests/52-basic-load.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/53-sim-binary_tree.py
===================================================================
--- libseccomp-2.6.0.orig/tests/53-sim-binary_tree.py
+++ libseccomp-2.6.0/tests/53-sim-binary_tree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/54-live-binary_tree.py
===================================================================
--- libseccomp-2.6.0.orig/tests/54-live-binary_tree.py
+++ libseccomp-2.6.0/tests/54-live-binary_tree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/56-basic-iterate_syscalls.py
===================================================================
--- libseccomp-2.6.0.orig/tests/56-basic-iterate_syscalls.py
+++ libseccomp-2.6.0/tests/56-basic-iterate_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/57-basic-rawsysrc.py
===================================================================
--- libseccomp-2.6.0.orig/tests/57-basic-rawsysrc.py
+++ libseccomp-2.6.0/tests/57-basic-rawsysrc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/58-live-tsync_notify.py
===================================================================
--- libseccomp-2.6.0.orig/tests/58-live-tsync_notify.py
+++ libseccomp-2.6.0/tests/58-live-tsync_notify.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.6.0/tests/regression
===================================================================
--- libseccomp-2.6.0.orig/tests/regression
+++ libseccomp-2.6.0/tests/regression
@@ -262,9 +262,9 @@ function run_test_command() {
cmd="$cmd:$(cd $(pwd)/../src/python/build/lib.*; pwd)"
# check and adjust if we are doing a VPATH build
if [[ -e "./$2.py" ]]; then
- cmd="$cmd /usr/bin/env python $2.py $3"
+ cmd="$cmd /usr/bin/env python3 $2.py $3"
else
- cmd="$cmd /usr/bin/env python ${srcdir}/$2.py $3"
+ cmd="$cmd /usr/bin/env python3 ${srcdir}/$2.py $3"
fi
else
cmd="$2 $3"