Added debug patch for checking fail in build

i9 changed/i9/crypto-policies-20230731-1.git94f0e2c.el9_3.1.inferit.1.2
Alexey Berezhok 10 months ago
parent 60f68d86e1
commit 915cfc3e9a

@ -0,0 +1,13 @@
diff --git a/python/build-crypto-policies.py b/python/build-crypto-policies.py
index 2eab19b..a00f1ba 100755
--- a/python/build-crypto-policies.py
+++ b/python/build-crypto-policies.py
@@ -71,6 +71,8 @@ def save_config(cmdline, policy_name, config_name, config):
#Make test expected file same for x86 and x86_64 systems
old_config = old_config.replace('dynamic_path = /usr/lib/engines-3/gost.so', 'dynamic_path = /usr/lib64/engines-3/gost.so')
if old_config != config:
+ print ("------------------------------------------------------------expected----------------------------------------------\n%s------------------------------------------------------------expected----------------------------------------------\n" % old_config)
+ print ("------------------------------------------------------------got----------------------------------------------\n%s------------------------------------------------------------expected----------------------------------------------\n" % config)
eprint(f'Config for {config_name} for policy {policy_name} '
'differs from the existing one')
return False

@ -35,6 +35,7 @@ URL: https://gitlab.com/redhat-crypto/fedora-crypto-policies
# For RHEL-9.3 we use the upstream branch rhel9.3 and are freezing version at 20230731-1.git94f0e2c.
Source0: https://gitlab.com/redhat-crypto/fedora-crypto-policies/-/archive/%{git_commit_hash}/%{name}-git%{git_commit_hash}.tar.gz
Patch1: 0001-Added-GOST-policy-also-added-experimental-PAM-genera.patch
Patch100: check_uexpected.patch
BuildArch: noarch
BuildRequires: asciidoc

Loading…
Cancel
Save