From 744a6d7b084c3b8129c8b1cc96066b1ac69f30db Mon Sep 17 00:00:00 2001 From: huangyu Date: Sat, 26 Nov 2022 14:44:33 +0800 Subject: [PATCH] enabled Dt test Signed-off-by: huangyu --- huawei-enabled-makecheck-in-extensions.patch | 27 ++++++++++++++++++++ iptables.spec | 16 +++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 huawei-enabled-makecheck-in-extensions.patch diff --git a/huawei-enabled-makecheck-in-extensions.patch b/huawei-enabled-makecheck-in-extensions.patch new file mode 100644 index 0000000..a4967f7 --- /dev/null +++ b/huawei-enabled-makecheck-in-extensions.patch @@ -0,0 +1,27 @@ +From f6c3afacc7ff5864e9b74ae73ab760cee7c27d5b Mon Sep 17 00:00:00 2001 +From: huangyu +Date: Sat, 26 Nov 2022 14:33:14 +0800 +Subject: [PATCH] enabled makecheck in extensions + +Signed-off-by: huangyu +--- + extensions/GNUmakefile.in | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in +index 956ccb3..12f559c 100644 +--- a/extensions/GNUmakefile.in ++++ b/extensions/GNUmakefile.in +@@ -104,6 +104,9 @@ uninstall: + ); \ + rmdir -p --ignore-fail-on-non-empty "$$dir"; \ + } ++.PHONY:check ++check: ++ pwd + + clean: + rm -f *.o *.oo *.so *.a {matches,targets}.man initext.c initext4.c initext6.c initextb.c initexta.c; +-- +2.23.0 + diff --git a/iptables.spec b/iptables.spec index 6f6c03f..8f674b7 100644 --- a/iptables.spec +++ b/iptables.spec @@ -2,7 +2,7 @@ %global legacy_actions %{_libexecdir}/initscripts/legacy-actions Name: iptables Version: 1.8.7 -Release: 9 +Release: 10 Summary: IP packet filter administration utilities License: GPLv2 and Artistic Licence 2.0 and ISC URL: https://www.netfilter.org/ @@ -13,6 +13,8 @@ Source3: iptables.service Source4: sysconfig_iptables Source5: sysconfig_ip6tables +Patch6001: huawei-enabled-makecheck-in-extensions.patch + BuildRequires: bison flex gcc kernel-headers libpcap-devel libselinux-devel systemd BuildRequires: libmnl-devel libnetfilter_conntrack-devel libnfnetlink-devel libnftnl-devel BuildRequires: autogen autoconf automake libtool @@ -76,6 +78,12 @@ rm -f include/linux/types.h %make_build +%check +make check +python iptables-test.py +python xlate-test.py +bash iptables/test/shell/run-tests.sh + %install %make_install @@ -317,6 +325,12 @@ fi %{_mandir}/man8/xtables-legacy* %changelog +* Sat Nov 26 2022 huangyu - 1.8.7-10 +- Type:feature +- ID:NA +- SUG:NA +- DESC:enabled DT test + * Mon Aug 15 2022 seuzw <930zhaowei@163.com> - 1.8.7-9 - Type:bugfix - ID:NA -- Gitee