[arch-commits] Commit in opensearch-anomaly-detection-plugin/repos/community-x86_64 (4 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Thu Sep 1 20:57:06 UTC 2022
Date: Thursday, September 1, 2022 @ 20:57:05
Author: hashworks
Revision: 1290428
archrelease: copy trunk to community-x86_64
Added:
opensearch-anomaly-detection-plugin/repos/community-x86_64/0001-Add-support-for-reproducible-builds.patch
(from rev 1290427, opensearch-anomaly-detection-plugin/trunk/0001-Add-support-for-reproducible-builds.patch)
opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD
(from rev 1290427, opensearch-anomaly-detection-plugin/trunk/PKGBUILD)
Deleted:
opensearch-anomaly-detection-plugin/repos/community-x86_64/0001-Add-support-for-reproducible-builds.patch
opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD
------------------------------------------------+
0001-Add-support-for-reproducible-builds.patch | 68 +++++++++---------
PKGBUILD | 86 +++++++++++------------
2 files changed, 77 insertions(+), 77 deletions(-)
Deleted: 0001-Add-support-for-reproducible-builds.patch
===================================================================
--- 0001-Add-support-for-reproducible-builds.patch 2022-09-01 20:57:03 UTC (rev 1290427)
+++ 0001-Add-support-for-reproducible-builds.patch 2022-09-01 20:57:05 UTC (rev 1290428)
@@ -1,34 +0,0 @@
-From 960128ff72572dca864a600719b16d0cf6396e45 Mon Sep 17 00:00:00 2001
-From: Leonidas Spyropoulos <artafinde at archlinux.org>
-Date: Tue, 21 Jun 2022 09:56:50 +0100
-Subject: [PATCH] Add support for reproducible builds
-
-As per gradle [docs] add support to remove timestamps and package with same order which is required from
-[reproducible] builds
-
-[docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:archives
-[reproducible]: https://reproducible-builds.org/
-
-Signed-off-by: Leonidas Spyropoulos <artafinde at archlinux.org>
----
- build.gradle | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/build.gradle b/build.gradle
-index 613a6be..f09d01e 100644
---- a/build.gradle
-+++ b/build.gradle
-@@ -74,6 +74,10 @@ tasks.withType(Test) {
- tasks.withType(Javadoc) {
- options.encoding = 'UTF-8'
- }
-+tasks.withType(AbstractArchiveTask).configureEach {
-+ preserveFileTimestamps = false
-+ reproducibleFileOrder = true
-+}
-
- repositories {
- mavenLocal()
---
-2.36.1
-
Copied: opensearch-anomaly-detection-plugin/repos/community-x86_64/0001-Add-support-for-reproducible-builds.patch (from rev 1290427, opensearch-anomaly-detection-plugin/trunk/0001-Add-support-for-reproducible-builds.patch)
===================================================================
--- 0001-Add-support-for-reproducible-builds.patch (rev 0)
+++ 0001-Add-support-for-reproducible-builds.patch 2022-09-01 20:57:05 UTC (rev 1290428)
@@ -0,0 +1,34 @@
+From 960128ff72572dca864a600719b16d0cf6396e45 Mon Sep 17 00:00:00 2001
+From: Leonidas Spyropoulos <artafinde at archlinux.org>
+Date: Tue, 21 Jun 2022 09:56:50 +0100
+Subject: [PATCH] Add support for reproducible builds
+
+As per gradle [docs] add support to remove timestamps and package with same order which is required from
+[reproducible] builds
+
+[docs]: https://docs.gradle.org/current/userguide/working_with_files.html#sec:archives
+[reproducible]: https://reproducible-builds.org/
+
+Signed-off-by: Leonidas Spyropoulos <artafinde at archlinux.org>
+---
+ build.gradle | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/build.gradle b/build.gradle
+index 613a6be..f09d01e 100644
+--- a/build.gradle
++++ b/build.gradle
+@@ -74,6 +74,10 @@ tasks.withType(Test) {
+ tasks.withType(Javadoc) {
+ options.encoding = 'UTF-8'
+ }
++tasks.withType(AbstractArchiveTask).configureEach {
++ preserveFileTimestamps = false
++ reproducibleFileOrder = true
++}
+
+ repositories {
+ mavenLocal()
+--
+2.36.1
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-01 20:57:03 UTC (rev 1290427)
+++ PKGBUILD 2022-09-01 20:57:05 UTC (rev 1290428)
@@ -1,43 +0,0 @@
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-
-pkgname=opensearch-anomaly-detection-plugin
-pkgver=2.1.0.0
-pkgrel=1
-_opensearchver=2.1.0
-_jdkver=11
-pkgdesc="OpenSearch Anomaly Detection Plugin"
-arch=('x86_64')
-url="https://opensearch.org/docs/latest/monitoring-plugins/ad"
-license=('Apache')
-depends=("opensearch=${_opensearchver}")
-makedepends=("java-environment=${_jdkver}" 'unzip')
-source=(
- "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/anomaly-detection/archive/${pkgver}.tar.gz"
- '0001-Add-support-for-reproducible-builds.patch'
-)
-sha256sums=('94f13aa6ad5d2373353efe507003f9501c8db061778a066fe3ca425ef15d1ddf'
- 'f3e6649cd60834252dc97aaf913ba7003b859ee6955bfeeb38b7fd46230d600b')
-
-prepare() {
- cd "anomaly-detection-${pkgver}"
- patch -Np1 -i "$srcdir"/0001-Add-support-for-reproducible-builds.patch
-}
-
-build() {
- cd "anomaly-detection-${pkgver}"
- export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
- export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
- export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
- # integTest (Reaper) requires JDK 14
- ./gradlew assemble \
- --exclude-task ":integTest" \
- --exclude-task ":jacocoTestReport"
-}
-
-package() {
- install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
- cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
- unzip "${srcdir}/anomaly-detection-${pkgver}/build/distributions/opensearch-anomaly-detection-${pkgver}.zip"
-
- install -Dm644 "${srcdir}/anomaly-detection-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}
Copied: opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD (from rev 1290427, opensearch-anomaly-detection-plugin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-01 20:57:05 UTC (rev 1290428)
@@ -0,0 +1,43 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-anomaly-detection-plugin
+pkgver=2.2.1.0
+pkgrel=1
+_opensearchver=2.2.1
+_jdkver=11
+pkgdesc="OpenSearch Anomaly Detection Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/monitoring-plugins/ad"
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/anomaly-detection/archive/${pkgver}.tar.gz"
+ '0001-Add-support-for-reproducible-builds.patch'
+)
+sha256sums=('c3def75f9ea48e040d1f74d54dc8aaa986e85d7ab9232ea1e8f1bd888cd30068'
+ 'f3e6649cd60834252dc97aaf913ba7003b859ee6955bfeeb38b7fd46230d600b')
+
+prepare() {
+ cd "anomaly-detection-${pkgver}"
+ patch -Np1 -i "$srcdir"/0001-Add-support-for-reproducible-builds.patch
+}
+
+build() {
+ cd "anomaly-detection-${pkgver}"
+ export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
+ export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
+ export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
+ # integTest (Reaper) requires JDK 14
+ ./gradlew assemble \
+ --exclude-task ":integTest" \
+ --exclude-task ":jacocoTestReport"
+}
+
+package() {
+ install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-anomaly-detection"
+ unzip "${srcdir}/anomaly-detection-${pkgver}/build/distributions/opensearch-anomaly-detection-${pkgver}.zip"
+
+ install -Dm644 "${srcdir}/anomaly-detection-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
More information about the arch-commits
mailing list