Accepting request 935165 from home:darix:branches:security

- reenable python bindings at least for the distro default python3
  package:
  - adds make-python-build.patch

OBS-URL: https://build.opensuse.org/request/show/935165
OBS-URL: https://build.opensuse.org/package/show/security/libseccomp?expand=0&rev=94
This commit is contained in:
Marcus Meissner 2021-12-02 13:16:56 +00:00 committed by Git OBS Bridge
parent ab53cd5371
commit c7506154d1
4 changed files with 624 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Dec 2 12:09:38 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
- reenable python bindings at least for the distro default python3
package:
- adds make-python-build.patch
-------------------------------------------------------------------
Sun Nov 7 13:23:22 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -28,11 +28,14 @@ Source: https://github.com/seccomp/libseccomp/releases/download/v%versio
Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc
Source3: %name.keyring
Source99: baselibs.conf
Source100: series
Patch1: make-python-build.patch
BuildRequires: autoconf
BuildRequires: automake >= 1.11
BuildRequires: fdupes
BuildRequires: libtool >= 2
BuildRequires: pkgconfig
BuildRequires: python3-Cython >= 0.29
%description
The libseccomp library provides an interface to the Linux Kernel's
@ -73,6 +76,17 @@ syscall filtering mechanism, seccomp.
This subpackage contains debug utilities for the seccomp interface.
%package -n python3-seccomp
Summary: Python 3 bindings for seccomp
Group: Development/Tools/Debuggers
Requires: python3-Cython >= 0.29
%description -n python3-seccomp
The libseccomp library provides an interface to the Linux Kernel's
syscall filtering mechanism, seccomp.
This subpackage contains the python3 bindings for seccomp.
%prep
%autosetup -p1
@ -90,6 +104,7 @@ fi
autoreconf -fiv
%configure \
--includedir="%_includedir/%name" \
--enable-python \
--disable-static \
--disable-silent-rules \
GPERF=/bin/true
@ -99,8 +114,10 @@ make %{?_smp_mflags}
%make_install
find "%buildroot/%_libdir" -type f -name "*.la" -delete
%fdupes %buildroot/%_prefix
rm %{buildroot}%{python3_sitearch}/install_files.txt
%check
export LD_LIBRARY_PATH="${PWD}/src/.libs"
make check
%post -n %lname -p /sbin/ldconfig
@ -120,4 +137,8 @@ make check
%_bindir/scmp_sys_resolver
%_mandir/man1/scmp_sys_resolver.1*
%files -n python3-seccomp
%{python3_sitearch}/seccomp-%{version}-py*.egg-info
%{python3_sitearch}/seccomp.cpython*.so
%changelog

595
make-python-build.patch Normal file
View File

@ -0,0 +1,595 @@
Index: libseccomp-2.5.2/src/python/setup.py
===================================================================
--- libseccomp-2.5.2.orig/src/python/setup.py
+++ libseccomp-2.5.2/src/python/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Enhanced Seccomp Library Python Module Build Script
@@ -41,7 +41,7 @@ setup(
ext_modules = [
Extension("seccomp", ["seccomp.pyx"],
# unable to handle libtool libraries directly
- extra_objects=["../.libs/libseccomp.a"],
+ extra_objects=["../.libs/libseccomp.so"],
# fix build warnings, see PEP 3123
extra_compile_args=["-fno-strict-aliasing"])
]
Index: libseccomp-2.5.2/tests/01-sim-allow.py
===================================================================
--- libseccomp-2.5.2.orig/tests/01-sim-allow.py
+++ libseccomp-2.5.2/tests/01-sim-allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/02-sim-basic.py
===================================================================
--- libseccomp-2.5.2.orig/tests/02-sim-basic.py
+++ libseccomp-2.5.2/tests/02-sim-basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/03-sim-basic_chains.py
===================================================================
--- libseccomp-2.5.2.orig/tests/03-sim-basic_chains.py
+++ libseccomp-2.5.2/tests/03-sim-basic_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/04-sim-multilevel_chains.py
===================================================================
--- libseccomp-2.5.2.orig/tests/04-sim-multilevel_chains.py
+++ libseccomp-2.5.2/tests/04-sim-multilevel_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/05-sim-long_jumps.py
===================================================================
--- libseccomp-2.5.2.orig/tests/05-sim-long_jumps.py
+++ libseccomp-2.5.2/tests/05-sim-long_jumps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/06-sim-actions.py
===================================================================
--- libseccomp-2.5.2.orig/tests/06-sim-actions.py
+++ libseccomp-2.5.2/tests/06-sim-actions.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/07-sim-db_bug_looping.py
===================================================================
--- libseccomp-2.5.2.orig/tests/07-sim-db_bug_looping.py
+++ libseccomp-2.5.2/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.5.2/tests/08-sim-subtree_checks.py
===================================================================
--- libseccomp-2.5.2.orig/tests/08-sim-subtree_checks.py
+++ libseccomp-2.5.2/tests/08-sim-subtree_checks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/09-sim-syscall_priority_pre.py
===================================================================
--- libseccomp-2.5.2.orig/tests/09-sim-syscall_priority_pre.py
+++ libseccomp-2.5.2/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.5.2/tests/10-sim-syscall_priority_post.py
===================================================================
--- libseccomp-2.5.2.orig/tests/10-sim-syscall_priority_post.py
+++ libseccomp-2.5.2/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.5.2/tests/11-basic-basic_errors.py
===================================================================
--- libseccomp-2.5.2.orig/tests/11-basic-basic_errors.py
+++ libseccomp-2.5.2/tests/11-basic-basic_errors.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/12-sim-basic_masked_ops.py
===================================================================
--- libseccomp-2.5.2.orig/tests/12-sim-basic_masked_ops.py
+++ libseccomp-2.5.2/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.5.2/tests/13-basic-attrs.py
===================================================================
--- libseccomp-2.5.2.orig/tests/13-basic-attrs.py
+++ libseccomp-2.5.2/tests/13-basic-attrs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/14-sim-reset.py
===================================================================
--- libseccomp-2.5.2.orig/tests/14-sim-reset.py
+++ libseccomp-2.5.2/tests/14-sim-reset.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/15-basic-resolver.py
===================================================================
--- libseccomp-2.5.2.orig/tests/15-basic-resolver.py
+++ libseccomp-2.5.2/tests/15-basic-resolver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/16-sim-arch_basic.py
===================================================================
--- libseccomp-2.5.2.orig/tests/16-sim-arch_basic.py
+++ libseccomp-2.5.2/tests/16-sim-arch_basic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/17-sim-arch_merge.py
===================================================================
--- libseccomp-2.5.2.orig/tests/17-sim-arch_merge.py
+++ libseccomp-2.5.2/tests/17-sim-arch_merge.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/18-sim-basic_allowlist.py
===================================================================
--- libseccomp-2.5.2.orig/tests/18-sim-basic_allowlist.py
+++ libseccomp-2.5.2/tests/18-sim-basic_allowlist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/19-sim-missing_syscalls.py
===================================================================
--- libseccomp-2.5.2.orig/tests/19-sim-missing_syscalls.py
+++ libseccomp-2.5.2/tests/19-sim-missing_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/20-live-basic_die.py
===================================================================
--- libseccomp-2.5.2.orig/tests/20-live-basic_die.py
+++ libseccomp-2.5.2/tests/20-live-basic_die.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/21-live-basic_allow.py
===================================================================
--- libseccomp-2.5.2.orig/tests/21-live-basic_allow.py
+++ libseccomp-2.5.2/tests/21-live-basic_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/22-sim-basic_chains_array.py
===================================================================
--- libseccomp-2.5.2.orig/tests/22-sim-basic_chains_array.py
+++ libseccomp-2.5.2/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.5.2/tests/23-sim-arch_all_le_basic.py
===================================================================
--- libseccomp-2.5.2.orig/tests/23-sim-arch_all_le_basic.py
+++ libseccomp-2.5.2/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.5.2/tests/24-live-arg_allow.py
===================================================================
--- libseccomp-2.5.2.orig/tests/24-live-arg_allow.py
+++ libseccomp-2.5.2/tests/24-live-arg_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/25-sim-multilevel_chains_adv.py
===================================================================
--- libseccomp-2.5.2.orig/tests/25-sim-multilevel_chains_adv.py
+++ libseccomp-2.5.2/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.5.2/tests/26-sim-arch_all_be_basic.py
===================================================================
--- libseccomp-2.5.2.orig/tests/26-sim-arch_all_be_basic.py
+++ libseccomp-2.5.2/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.5.2/tests/27-sim-bpf_blk_state.py
===================================================================
--- libseccomp-2.5.2.orig/tests/27-sim-bpf_blk_state.py
+++ libseccomp-2.5.2/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.5.2/tests/28-sim-arch_x86.py
===================================================================
--- libseccomp-2.5.2.orig/tests/28-sim-arch_x86.py
+++ libseccomp-2.5.2/tests/28-sim-arch_x86.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/29-sim-pseudo_syscall.py
===================================================================
--- libseccomp-2.5.2.orig/tests/29-sim-pseudo_syscall.py
+++ libseccomp-2.5.2/tests/29-sim-pseudo_syscall.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/30-sim-socket_syscalls.py
===================================================================
--- libseccomp-2.5.2.orig/tests/30-sim-socket_syscalls.py
+++ libseccomp-2.5.2/tests/30-sim-socket_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/31-basic-version_check.py
===================================================================
--- libseccomp-2.5.2.orig/tests/31-basic-version_check.py
+++ libseccomp-2.5.2/tests/31-basic-version_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/32-live-tsync_allow.py
===================================================================
--- libseccomp-2.5.2.orig/tests/32-live-tsync_allow.py
+++ libseccomp-2.5.2/tests/32-live-tsync_allow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/33-sim-socket_syscalls_be.py
===================================================================
--- libseccomp-2.5.2.orig/tests/33-sim-socket_syscalls_be.py
+++ libseccomp-2.5.2/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.5.2/tests/34-sim-basic_denylist.py
===================================================================
--- libseccomp-2.5.2.orig/tests/34-sim-basic_denylist.py
+++ libseccomp-2.5.2/tests/34-sim-basic_denylist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/35-sim-negative_one.py
===================================================================
--- libseccomp-2.5.2.orig/tests/35-sim-negative_one.py
+++ libseccomp-2.5.2/tests/35-sim-negative_one.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/36-sim-ipc_syscalls.py
===================================================================
--- libseccomp-2.5.2.orig/tests/36-sim-ipc_syscalls.py
+++ libseccomp-2.5.2/tests/36-sim-ipc_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/37-sim-ipc_syscalls_be.py
===================================================================
--- libseccomp-2.5.2.orig/tests/37-sim-ipc_syscalls_be.py
+++ libseccomp-2.5.2/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.5.2/tests/39-basic-api_level.py
===================================================================
--- libseccomp-2.5.2.orig/tests/39-basic-api_level.py
+++ libseccomp-2.5.2/tests/39-basic-api_level.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/40-sim-log.py
===================================================================
--- libseccomp-2.5.2.orig/tests/40-sim-log.py
+++ libseccomp-2.5.2/tests/40-sim-log.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/41-sim-syscall_priority_arch.py
===================================================================
--- libseccomp-2.5.2.orig/tests/41-sim-syscall_priority_arch.py
+++ libseccomp-2.5.2/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.5.2/tests/42-sim-adv_chains.py
===================================================================
--- libseccomp-2.5.2.orig/tests/42-sim-adv_chains.py
+++ libseccomp-2.5.2/tests/42-sim-adv_chains.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/43-sim-a2_order.py
===================================================================
--- libseccomp-2.5.2.orig/tests/43-sim-a2_order.py
+++ libseccomp-2.5.2/tests/43-sim-a2_order.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/44-live-a2_order.py
===================================================================
--- libseccomp-2.5.2.orig/tests/44-live-a2_order.py
+++ libseccomp-2.5.2/tests/44-live-a2_order.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/45-sim-chain_code_coverage.py
===================================================================
--- libseccomp-2.5.2.orig/tests/45-sim-chain_code_coverage.py
+++ libseccomp-2.5.2/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.5.2/tests/46-sim-kill_process.py
===================================================================
--- libseccomp-2.5.2.orig/tests/46-sim-kill_process.py
+++ libseccomp-2.5.2/tests/46-sim-kill_process.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/47-live-kill_process.py
===================================================================
--- libseccomp-2.5.2.orig/tests/47-live-kill_process.py
+++ libseccomp-2.5.2/tests/47-live-kill_process.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/48-sim-32b_args.py
===================================================================
--- libseccomp-2.5.2.orig/tests/48-sim-32b_args.py
+++ libseccomp-2.5.2/tests/48-sim-32b_args.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/49-sim-64b_comparisons.py
===================================================================
--- libseccomp-2.5.2.orig/tests/49-sim-64b_comparisons.py
+++ libseccomp-2.5.2/tests/49-sim-64b_comparisons.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/50-sim-hash_collision.py
===================================================================
--- libseccomp-2.5.2.orig/tests/50-sim-hash_collision.py
+++ libseccomp-2.5.2/tests/50-sim-hash_collision.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/51-live-user_notification.py
===================================================================
--- libseccomp-2.5.2.orig/tests/51-live-user_notification.py
+++ libseccomp-2.5.2/tests/51-live-user_notification.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/52-basic-load.py
===================================================================
--- libseccomp-2.5.2.orig/tests/52-basic-load.py
+++ libseccomp-2.5.2/tests/52-basic-load.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/53-sim-binary_tree.py
===================================================================
--- libseccomp-2.5.2.orig/tests/53-sim-binary_tree.py
+++ libseccomp-2.5.2/tests/53-sim-binary_tree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/54-live-binary_tree.py
===================================================================
--- libseccomp-2.5.2.orig/tests/54-live-binary_tree.py
+++ libseccomp-2.5.2/tests/54-live-binary_tree.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/56-basic-iterate_syscalls.py
===================================================================
--- libseccomp-2.5.2.orig/tests/56-basic-iterate_syscalls.py
+++ libseccomp-2.5.2/tests/56-basic-iterate_syscalls.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/57-basic-rawsysrc.py
===================================================================
--- libseccomp-2.5.2.orig/tests/57-basic-rawsysrc.py
+++ libseccomp-2.5.2/tests/57-basic-rawsysrc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/58-live-tsync_notify.py
===================================================================
--- libseccomp-2.5.2.orig/tests/58-live-tsync_notify.py
+++ libseccomp-2.5.2/tests/58-live-tsync_notify.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Seccomp Library test program
Index: libseccomp-2.5.2/tests/regression
===================================================================
--- libseccomp-2.5.2.orig/tests/regression
+++ libseccomp-2.5.2/tests/regression
@@ -253,9 +253,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"

1
series Normal file
View File

@ -0,0 +1 @@
make-python-build.patch