Skip to content

Commit f3b52c4

Browse files
Add rpm digest generation so FIPS enabled host can install rpm (opensearch-project#2102)
* Add rpm digest generation so FIPS enabled host can install rpm Signed-off-by: Peter Zhu <[email protected]> * Add more details Signed-off-by: Peter Zhu <[email protected]>
1 parent 68342f1 commit f3b52c4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

scripts/pkg/build_templates/opensearch-dashboards/opensearch-dashboards.rpm.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Disable brp-java-repack-jars, so jars will not be decompressed and repackaged
55
%define __jar_repack 0
66

7+
# Generate digests, 8 means algorithm of sha256
8+
# This is different from rpm sig algorithm
9+
# Requires rpm version 4.12 + to generate but b/c run on older versions
10+
%define _source_filedigest_algorithm 8
11+
%define _binary_filedigest_algorithm 8
12+
713
# User Define Variables
814
%define product_dir %{_datadir}/%{name}
915
%define config_dir %{_sysconfdir}/%{name}

scripts/pkg/build_templates/opensearch/opensearch.rpm.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# Disable brp-java-repack-jars, so jars will not be decompressed and repackaged
55
%define __jar_repack 0
66

7+
# Generate digests, 8 means algorithm of sha256
8+
# This is different from rpm sig algorithm
9+
# Requires rpm version 4.12 + to generate but b/c run on older versions
10+
%define _source_filedigest_algorithm 8
11+
%define _binary_filedigest_algorithm 8
12+
713
# User Define Variables
814
%define product_dir %{_datadir}/%{name}
915
%define config_dir %{_sysconfdir}/%{name}

0 commit comments

Comments
 (0)