- remove downstream patch for selinux options deprecated since 2009 Resolves: rhbz#2397467
65 lines
2 KiB
Diff
65 lines
2 KiB
Diff
From 8927d505ecb5334f09c48ef98ef1f464f581d0f7 Mon Sep 17 00:00:00 2001
|
|
From: rpm-build <rpm-build>
|
|
Date: Tue, 2 Apr 2024 14:11:26 +0100
|
|
Subject: [PATCH] coreutils-python3.patch
|
|
|
|
---
|
|
init.cfg | 4 ++--
|
|
tests/d_type-check | 2 +-
|
|
tests/du/move-dir-while-traversing.sh | 6 +++---
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/init.cfg b/init.cfg
|
|
index ac05f7b..26d9516 100644
|
|
--- a/init.cfg
|
|
+++ b/init.cfg
|
|
@@ -601,10 +601,10 @@ seek_data_capable_()
|
|
# Skip the current test if "." lacks d_type support.
|
|
require_dirent_d_type_()
|
|
{
|
|
- python < /dev/null \
|
|
+ python3 < /dev/null \
|
|
|| skip_ python missing: assuming no d_type support
|
|
|
|
- python "$abs_srcdir"/tests/d_type-check \
|
|
+ python3 "$abs_srcdir"/tests/d_type-check \
|
|
|| skip_ requires d_type support
|
|
}
|
|
|
|
diff --git a/tests/d_type-check b/tests/d_type-check
|
|
index 1a2f76f..42d3924 100644
|
|
--- a/tests/d_type-check
|
|
+++ b/tests/d_type-check
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python
|
|
+#!/usr/bin/python3
|
|
# Exit 0 if "." and "./tempfile" have useful d_type information, else 1.
|
|
# Intended to exit 0 only on Linux/GNU systems.
|
|
import os
|
|
diff --git a/tests/du/move-dir-while-traversing.sh b/tests/du/move-dir-while-traversing.sh
|
|
index adf482b..cf9214a 100755
|
|
--- a/tests/du/move-dir-while-traversing.sh
|
|
+++ b/tests/du/move-dir-while-traversing.sh
|
|
@@ -21,8 +21,8 @@ print_ver_ du
|
|
require_trap_signame_
|
|
|
|
# We use a python-inotify script, so...
|
|
-python -m pyinotify -h > /dev/null \
|
|
- || skip_ 'python inotify package not installed'
|
|
+python3 -m pyinotify -h > /dev/null \
|
|
+ || skip_ 'python3 inotify package not installed'
|
|
|
|
# Move a directory "up" while du is processing its sub-directories.
|
|
# While du is processing a hierarchy .../B/C/D/... this script
|
|
@@ -33,7 +33,7 @@ python -m pyinotify -h > /dev/null \
|
|
# rename syscall before du finishes processing the subtree under D/.
|
|
|
|
cat <<'EOF' > inotify-watch-for-dir-access.py
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
import pyinotify as pn
|
|
import os,sys
|
|
|
|
--
|
|
2.51.0
|
|
|