[arch-commits] Commit in opensearch-anomaly-detection-plugin/repos/community-x86_64 (4 files)

Leonidas Spyropoulos artafinde at gemini.archlinux.org
Mon Jul 11 09:13:11 UTC 2022


    Date: Monday, July 11, 2022 @ 09:13:10
  Author: artafinde
Revision: 1249499

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 1249498, opensearch-anomaly-detection-plugin/trunk/0001-Add-support-for-reproducible-builds.patch)
  opensearch-anomaly-detection-plugin/repos/community-x86_64/PKGBUILD
    (from rev 1249498, 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-07-11 09:13:05 UTC (rev 1249498)
+++ 0001-Add-support-for-reproducible-builds.patch	2022-07-11 09:13:10 UTC (rev 1249499)
@@ -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 1249498, 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-07-11 09:13:10 UTC (rev 1249499)
@@ -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-07-11 09:13:05 UTC (rev 1249498)
+++ PKGBUILD	2022-07-11 09:13:10 UTC (rev 1249499)
@@ -1,43 +0,0 @@
-# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
-
-pkgname=opensearch-anomaly-detection-plugin
-pkgver=2.0.1.0
-pkgrel=2
-_opensearchver=2.0.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=('3c96a957d2afbd548336eea5ed7082d8fdc58f1fc553190bedf0b67d51fdc2fd'
-            '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 1249498, opensearch-anomaly-detection-plugin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-11 09:13:10 UTC (rev 1249499)
@@ -0,0 +1,43 @@
+# 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"
+}



More information about the arch-commits mailing list