From 0e27c62066ad37a343a3d91c5ceb5a4beb2136ca Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Thu, 29 Jul 2021 13:45:15 +0200 Subject: [PATCH] Update rpm build to add sha256 payload and file digest (#75731) (#75826) This is a follow up on https://github.com/elastic/elasticsearch/pull/75569 and should fix installation problems in FIPS enabled environments. --- distribution/packages/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle index cbd4cf05a16e..6c25a7bae540 100644 --- a/distribution/packages/build.gradle +++ b/distribution/packages/build.gradle @@ -47,6 +47,19 @@ buildscript { mavenCentral() maven { url 'https://jitpack.io' } } + + // We rely on a patched version of the redline library used to build rpm packages + // to support sha256header in our elasticsearch RPMs + // TODO: Update / remove this dependency once https://github.com/craigwblake/redline/pull/157 got merged + // Be aware that it seems the redline project hasnt been active for a while + configurations.all { + resolutionStrategy { + dependencySubstitution { + substitute module('org.redline-rpm:redline') using module('com.github.breskeby:redline:9c85270') + } + } + } + dependencies { classpath "com.github.breskeby:gradle-ospackage-plugin:98455c1" }