From 680e8638306497fff2e8b7ba5058dc17421975b4 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Tue, 5 May 2026 13:42:52 +0000 Subject: [PATCH] ci: drop downstream import check to prevent it from interfering with the upstream CI. The import check was added recently in https://src.fedoraproject.org/rpms/scapy/c/878585466261f17c01516a653d19cf47022c2f9f?branch=rawhide and it started failing when https://github.com/secdev/scapy/pull/4975 was merged with ``` + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py \ -f /builddir/build/BUILD/scapy-2.7.0-build/scapy-2.7.0-1.20260423030854887593.pr2.57.g5d1727ff.fc43.x86_64-pyproject-modules \ -e scapy.arch.bpf.core -e scapy.arch.bpf.supersocket -e scapy.arch.windows \ -e scapy.arch.windows.native -e scapy.arch.windows.structures \ -e scapy.contrib.cansocket_python_can -e scapy.tools.generate_bluetooth \ -e scapy.tools.generate_ethertypes -e scapy.tools.generate_manuf \ -e scapy.tools.scapy_pyannotate -e scapy.libs.winpcapy ... ... File "/builddir/build/BUILD/scapy-2.7.0-build/BUILDROOT/usr/lib/python3.14/site-packages/scapy/arch/windows/__init__.py", line 18, in import winreg ModuleNotFoundError: No module named 'winreg' ``` Since it can't keep up with upstream PRs it can be trimmed. Big endian builds are back to normal (https://forge.fedoraproject.org/infra/ansible/pulls/3316) and left intact. Closes https://github.com/secdev/scapy/issues/4979 --- .packit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.packit.yml b/.packit.yml index ac6da5c6283..a9f7ea30a6f 100644 --- a/.packit.yml +++ b/.packit.yml @@ -19,6 +19,7 @@ actions: - "rm -fv .packit_rpm/sources" # Drop all downstream patches to prevent them from interfering with upstream builds - "sed -ri '/^Patch[0-9]+\\:.+\\.patch/d' .packit_rpm/scapy.spec" + - "sed -i '/^%pyproject_check_import/d' .packit_rpm/scapy.spec" - "sed -i '/^%check$/apip3 install scapy-rpc\\nOPENSSL_ENABLE_SHA1_SIGNATURES=1 OPENSSL_CONF=$(python3 ./.config/ci/openssl.py) ./test/run_tests -c test/configs/linux.utsc -K ci_only -K netaccess -K scanner' .packit_rpm/scapy.spec" - "sed -i '/^BuildArch/aBuildRequires: can-utils' .packit_rpm/scapy.spec" - "sed -i '/^BuildArch/aBuildRequires: libpcap' .packit_rpm/scapy.spec"