[arch-commits] Commit in logstash/trunk (PKGBUILD build.patch)

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Jul 1 09:37:45 UTC 2019


    Date: Monday, July 1, 2019 @ 09:37:45
  Author: mtorromeo
Revision: 486948

upgpkg: logstash 7.2.0-1

Modified:
  logstash/trunk/PKGBUILD
  logstash/trunk/build.patch

-------------+
 PKGBUILD    |   12 +++++------
 build.patch |   60 +++++++++++++++++++++++++++++++++++-----------------------
 2 files changed, 43 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-01 09:37:12 UTC (rev 486947)
+++ PKGBUILD	2019-07-01 09:37:45 UTC (rev 486948)
@@ -2,7 +2,7 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
 pkgname=logstash
-pkgver=7.1.1
+pkgver=7.2.0
 _jrubyver=9.2.7.0
 pkgrel=1
 pkgdesc='Tool for managing events and logs'
@@ -26,17 +26,17 @@
         logstash-tmpfile.conf
         bundle.config)
 noextract=(${_jrubydist})
-sha256sums=('8c949c5afa71b20cf100d676c23a81d0d2d70a9b7e5627fcb117748987d4dd7d'
+sha256sums=('489a7593c93b4c2c193f16a23ba61aaf2abbd9ecaeec22882584227d026ec3d8'
             'da7c1a5ce90015c0bafd4bca0352294e08fe1c9ec049ac51e82fe57ed50e1348'
-            '3e030bf1d02e3c047b4effc7d9d8f232db2e861e5eb767f0ef0ed665a0c12824'
+            '9ae56b463b465f16363f60670c7da4e84a9bf03c17324c4364c089d7a480cb4b'
             '2b8b29297202334c784fdd7f2eb8d7e776c24c783b3c9f8387b500ab0039335c'
             'a01ea29d4f53d785f6eb926ebfe445e64ed5b3dab5d0418848589dd79502d876'
             '18a68a59ddb0ce19778e83b65e68dd568d65b7180bf45b4cf298fb332d69eb26'
             '346b630484f8a35b1a549e94e53e3e151527852a29c72cc6e529221215a7f533'
             'fe05315345e4489458c3eecac43726800109c1e390e74a14584096f6c041fee1')
-sha512sums=('11e29a438a2aac2564bbd55ccd5284998838f70f288538ff29ca28798869bee8b064dd817679b6c6af7807b26e0f1de3d1bf99e74735705cd76ea94480459d4e'
+sha512sums=('9baf315227b71c317a0b81e6449302bfdd277a6bf3d19a1c6be116354c06f70e64bf4810e257a0f07946ae994feb2bbc49084d87c40b1267f03acf69052d3e7a'
             '8e71e27fdb149cb7470fb736e7ce858719d13ce6ff8a1e9ab1c1dc71fcc068fb601946bb28ed2feee3670b5e6ebfa8a655a6618d1badfc3763897912c41b1c82'
-            '1da7eb18c9c7fe49d7d0e1c9952b275b9bef95e8bf57490f14516a505e1a8d992bf2cfba8a7be38d2a1033d8fb920b00822238900824e9382243fc164ea79dce'
+            'f6ddf9cc70a2c0cabaacf39fa26953c15af0060711713b2de69caddd2b8f845edde535f002cd7a0d0f8fc01abf934d887278fb6617b2a3d640284bc16ea34927'
             '817097565519dc7c5eac7521339947c74c6148683ca594356dd2ceb3274a1e94f8e7318ce310e0fe5789d7ab0d4c23404f814bef31036a11ddfec08d16814c69'
             'ce2cef4a784845b00d7c867273555811450bc459669abb5be944bfbbb02708129983e45376a9b308d6db22b2c7b4a7a212827a4826f2a27bc7e143cebc9abfe0'
             'd811dc3b18d0032b79b4669c9f6aefca49963897c309d83cbf87616c7b8cb5944c17c8072980bcd115d0fb57ef1624d98259ff1082d402d308c33e766ee89699'
@@ -53,7 +53,7 @@
   sed 's|"-XX:+UseParNewGC", ||g' -i logstash-core/benchmarks/build.gradle
   sed 's|-XX:+UseParNewGC||g' -i config/jvm.options
 
-  patch -p1 -i "$srcdir"/build.patch
+  # patch -p1 -i "$srcdir"/build.patch
 
   # Use system gradle (currently not working)
   # sed 's;./gradlew;gradle;g' -i rakelib/*.rake

Modified: build.patch
===================================================================
--- build.patch	2019-07-01 09:37:12 UTC (rev 486947)
+++ build.patch	2019-07-01 09:37:45 UTC (rev 486948)
@@ -1,8 +1,8 @@
 diff --git a/build.gradle b/build.gradle
-index 04700b0..96fe48a 100644
+index 5b2275e..67312d6 100644
 --- a/build.gradle
 +++ b/build.gradle
-@@ -122,7 +122,6 @@ if (versionMap["jruby-runtime-override"]) {
+@@ -111,7 +111,6 @@ def isReleaseBuild = System.getenv('RELEASE') == "1" || versionQualifier
  clean {
    delete "${projectDir}/Gemfile"
    delete "${projectDir}/Gemfile.lock"
@@ -10,8 +10,21 @@
    delete "${projectDir}/.bundle"
    delete "${projectDir}/qa/integration/Gemfile.lock"
    delete "${projectDir}/qa/integration/.bundle"
-@@ -159,7 +158,7 @@ task downloadJRuby(type: Download) {
+@@ -346,7 +345,7 @@ task downloadEs(type: Download) {
+     // in the normal PR type builds it is plain '7.0.0'
+     // in the build invoked by the release manager it is '7.0.0-alpha1' etc.
+     // the artifacts-api will return JSON like this: `{"versions":["5.6.13-SNAPSHOT","6.4.3-SNAPSHOT","6.5.0-SNAPSHOT","6.6.0-SNAPSHOT","7.0.0-alpha1-SNAPSHOT"]}`
+-    
++
+     String qualifiedVersion = dlVersions['versions'].grep(isReleaseBuild ? ~/^${version}$/ : ~/^${version}-SNAPSHOT/)[0]
  
+     if (qualifiedVersion == null) {
+diff --git a/rubyUtils.gradle b/rubyUtils.gradle
+index 6f0eec4..08a35f6 100644
+--- a/rubyUtils.gradle
++++ b/rubyUtils.gradle
+@@ -190,7 +190,7 @@ task downloadJRuby(type: Download) {
+ 
  downloadJRuby.onlyIf { customJRubyDir == "" }
  
 -task verifyFile(dependsOn: downloadJRuby, type: Verify) {
@@ -19,38 +32,39 @@
      description "Verify the SHA1 of the download JRuby artifact"
      inputs.file(jrubyTarPath)
      outputs.file(jrubyTarPath)
-@@ -170,35 +169,7 @@ task verifyFile(dependsOn: downloadJRuby, type: Verify) {
- 
+@@ -202,36 +202,7 @@ task verifyFile(dependsOn: downloadJRuby, type: Verify) {
  verifyFile.onlyIf { customJRubyDir == "" }
+ verifyFile.onlyIf { doChecksum }
  
 -task buildCustomJRuby(type: Exec) {
--  description "Build tar.gz and .jar artifacts from JRuby source directory"
--  workingDir (customJRubyDir == "" ? "./" : customJRubyDir)
--  commandLine './mvnw', 'clean', 'install', '-Pdist', '-Pcomplete'
--  standardOutput = new ByteArrayOutputStream()
--  errorOutput = new ByteArrayOutputStream()
--  ext.output = {
--    standardOutput.toString() + errorOutput.toString()
--  }
+-    description "Build tar.gz and .jar artifacts from JRuby source directory"
+-    workingDir (customJRubyDir == "" ? "./" : customJRubyDir)
+-    commandLine './mvnw', 'clean', 'install', '-Pdist', '-Pcomplete'
+-    standardOutput = new ByteArrayOutputStream()
+-    errorOutput = new ByteArrayOutputStream()
+-    ext.output = {
+-        standardOutput.toString() + errorOutput.toString()
+-    }
 -}
 -
 -buildCustomJRuby.onlyIf { customJRubyDir != "" }
 -
 -task installCustomJRuby(dependsOn: buildCustomJRuby, type: Copy) {
--  description "Install custom built JRuby in the vendor directory"
--  inputs.file(customJRubyTar)
--  outputs.dir("${projectDir}/vendor/jruby")
--  from tarTree(customJRubyTar == "" ? jrubyTarPath : customJRubyTar)
--  eachFile { f ->
--    f.path = f.path.replaceFirst("^jruby-${customJRubyVersion}", '')
--  }
--  exclude "**/stdlib/rdoc/**"
--  includeEmptyDirs = false
--  into "${projectDir}/vendor/jruby"
+-    description "Install custom built JRuby in the vendor directory"
+-    inputs.file(customJRubyTar)
+-    outputs.dir("${projectDir}/vendor/jruby")
+-    from tarTree(customJRubyTar == "" ? jrubyTarPath : customJRubyTar)
+-    eachFile { f ->
+-        f.path = f.path.replaceFirst("^jruby-${customJRubyVersion}", '')
+-    }
+-    exclude "**/stdlib/rdoc/**"
+-    includeEmptyDirs = false
+-    into "${projectDir}/vendor/jruby"
 -}
 -
 -installCustomJRuby.onlyIf { customJRubyDir != "" }
 -
+-
 -task downloadAndInstallJRuby(dependsOn: [verifyFile, installCustomJRuby], type: Copy) {
 +task downloadAndInstallJRuby(dependsOn: [verifyFile], type: Copy) {
      description "Install JRuby in the vendor directory"



More information about the arch-commits mailing list