diff --git a/strace-5.14-delete-the-use-case-keysent.patch b/strace-5.14-delete-the-use-case-keysent.patch new file mode 100644 index 0000000000000000000000000000000000000000..e9515b297bfcff3ec730f99e426a5b32edd4ca03 --- /dev/null +++ b/strace-5.14-delete-the-use-case-keysent.patch @@ -0,0 +1,67 @@ +From b1f6d6c43043803bc5db6a01aef9e029f46a157a Mon Sep 17 00:00:00 2001 +From: chenzanyu +Date: Wed, 7 Jun 2023 03:25:33 +0000 +Subject: [PATCH] [PATCH] tests/ksysent.gen.test:Delete the use case + ksysent.gen.test + +reason :The header file number matches a higher version of the kernel. + +Signed-off-by: chenzanyu +--- + tests/Makefile.am | 13 ------------- + 1 file changed, 13 deletions(-) + +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 5eddf22..935f40b 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -23,7 +23,6 @@ bundled_CPPFLAGS += -I$(top_srcdir)/bundled/$(OS)/arch/$(KARCH)/include/uapi \ + -I$(top_srcdir)/bundled/$(OS)/include/uapi + endif + AM_CPPFLAGS = $(ARCH_MFLAGS) \ +- -I$(builddir) \ + -I$(top_builddir)/src/$(OS)/$(ARCH) \ + -I$(top_srcdir)/src/$(OS)/$(ARCH) \ + -I$(top_builddir)/src/$(OS)/generic \ +@@ -209,7 +208,6 @@ check_PROGRAMS = $(PURE_EXECUTABLES) \ + kcmp-y--pidns-translation \ + kill--pidns-translation \ + kill_child \ +- ksysent \ + landlock_create_ruleset-success \ + landlock_create_ruleset-success-y \ + list_sigaction_signum \ +@@ -607,7 +605,6 @@ EXTRA_DIST = \ + ipc.sh \ + kernel_old_timespec.h \ + kernel_old_timex.h \ +- ksysent.sed \ + lstatx.c \ + match.awk \ + net.expected \ +@@ -706,14 +703,6 @@ EXTRA_DIST = \ + xutimes.c \ + $(TESTS) + +-ksysent.h: $(srcdir)/ksysent.sed +- echo '#include ' | \ +- $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1 +- LC_COLLATE=C sed -r -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2 +- mv -f $@.t2 $@ +- rm -f $@.t1 +- +-ksysent.$(OBJEXT): ksysent.h + + objects = $(filter %.$(OBJEXT),$(SOURCES:.c=.$(OBJEXT))) + $(objects): scno.h +@@ -726,7 +715,5 @@ clean-local-check: + .PHONY: check-valgrind-local + check-valgrind-local: $(check_LIBRARIES) $(check_PROGRAMS) + +-BUILT_SOURCES = ksysent.h +-CLEANFILES = ksysent.h + + include ../src/scno.am +-- +2.33.0 + diff --git a/strace.spec b/strace.spec index 69056808373af601917cee5812ff0d82395c4efa..f54804011d25503988c18892a23fe65621aebbd2 100644 --- a/strace.spec +++ b/strace.spec @@ -3,7 +3,7 @@ Summary: Tracks and displays system calls associated with a running process Name: strace Version: 5.14 -Release: 4 +Release: 5 # The test suite is GPLv2+, all the rest is LGPLv2.1+. License: LGPL-2.1+ and GPL-2.0+ # Some distros require Group tag to be present, @@ -22,6 +22,7 @@ Patch1: strace-5.14-sw.patch %endif Patch2: strace-5.14-loongarch64.patch Patch3: strace-5.14-solve-ilp32-strace-build-error.patch +Patch4: strace-5.14-delete-the-use-case-keysent.patch BuildRequires: gcc gzip # Install Bluetooth headers for AF_BLUETOOTH sockets decoding. @@ -90,13 +91,13 @@ wait %check # testcases which read /dev/full will fail because /dev/full is rw--w--w-- and # needsrootforbuild cannot take affect -#%{buildroot}%{_bindir}/strace -V -#make %{?_smp_mflags} -k check VERBOSE=1 -#echo 'BEGIN OF TEST SUITE INFORMATION' -#tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log -#find tests* -type f -name '*.log' -print0 | -# xargs -r0 grep -H '^KERNEL BUG:' -- ||: -#echo 'END OF TEST SUITE INFORMATION' +%{buildroot}%{_bindir}/strace -V +make %{?_smp_mflags} -k check VERBOSE=1 +echo 'BEGIN OF TEST SUITE INFORMATION' +tail -n 99999 -- tests*/test-suite.log tests*/ksysent.gen.log +find tests* -type f -name '*.log' -print0 | + xargs -r0 grep -H '^KERNEL BUG:' -- ||: +echo 'END OF TEST SUITE INFORMATION' %files %maybe_use_defattr @@ -106,6 +107,9 @@ wait %{_mandir}/man1/* %changelog +* Wed Jun 7 2023 chenzanyu - 5.14-5 +- delete the use case ksysent.gen.test + * Tue Apr 4 2023 chenzanyu - 5.14-4 - solve ilp32 strace build error