[arch-commits] Commit in leatherman/trunk (PKGBUILD build-against-ruby27.patch)

Tim Meusel bastelfreak at gemini.archlinux.org
Fri Sep 17 09:33:39 UTC 2021


    Date: Friday, September 17, 2021 @ 09:33:39
  Author: bastelfreak
Revision: 1016742

build against ruby3, not 2.7

Modified:
  leatherman/trunk/PKGBUILD
Deleted:
  leatherman/trunk/build-against-ruby27.patch

----------------------------+
 PKGBUILD                   |   12 ++++--------
 build-against-ruby27.patch |   13 -------------
 2 files changed, 4 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-17 09:19:35 UTC (rev 1016741)
+++ PKGBUILD	2021-09-17 09:33:39 UTC (rev 1016742)
@@ -5,7 +5,7 @@
 
 pkgname=leatherman
 pkgver=1.12.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Collection of C++ and CMake utility libraries"
 arch=('x86_64')
 url="https://github.com/puppetlabs/leatherman"
@@ -12,7 +12,7 @@
 license=('APACHE')
 depends=('boost-libs' 'libcurl.so' 'icu' 'gcc-libs' 'glibc')
 makedepends=('boost' 'cmake' 'rapidjson' 'python')
-checkdepends=('ruby2.7')
+checkdepends=('ruby')
 optdepends=('python: cpplint cmake script')
 provides=(
   leatherman_curl.so
@@ -27,13 +27,11 @@
 )
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/puppetlabs/leatherman/archive/${pkgver}.tar.gz"
         librapidjson-1.1.patch
-        1.12.4-shared_nowide.patch
-        build-against-ruby27.patch)
+        1.12.4-shared_nowide.patch)
 
 sha512sums=('4e2a1ee2e7226224f115648a78bc3e4798ef0528ef32e01d1e7ebcbeb1250fd6ed88001c9db21456feeef3bd6ff201b0fd68fd5feb2671a66d13519dd3454386'
             'bf05009e466ea62282a78c16fe23e8cfacfbb6e5da9fdf118bf7b1b257a3b48c5c5665ef080bfdf12c9088cb4e180358d11a5bd05e2e658bdbe8f35e0bba4969'
-            '1f95d6e0ac1000d2eb8cdfee6184ca74d2bb96a9dec50cdd1539cb7e3060decbf1e4863fa2594ce1cf3405b1edf270b94b82f1c9ca79aaeb6f32f11d10c7eece'
-            '86b2adaa55560fa6564b84041fcc27268f74acf85bf082723b7b721313168806c4dcb3ce48bf166c6b2ab7249e3880266b573bb98028f1b5bc2f80bdce1e89b0')
+            '1f95d6e0ac1000d2eb8cdfee6184ca74d2bb96a9dec50cdd1539cb7e3060decbf1e4863fa2594ce1cf3405b1edf270b94b82f1c9ca79aaeb6f32f11d10c7eece')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
@@ -45,8 +43,6 @@
   patch -Np1 < ../librapidjson-1.1.patch
   # Boost 1.74 provides nowide, and since leatherman vendors nowide it has to be patched out.
   patch -Np1 < ../1.12.4-shared_nowide.patch
-  # update leatherman to use ruby-2.7 and not ruby
-  patch -Np1 < ../build-against-ruby27.patch
 }
 
 build() {

Deleted: build-against-ruby27.patch
===================================================================
--- build-against-ruby27.patch	2021-09-17 09:19:35 UTC (rev 1016741)
+++ build-against-ruby27.patch	2021-09-17 09:33:39 UTC (rev 1016742)
@@ -1,13 +0,0 @@
-diff --git a/ruby/src/api.cc b/ruby/src/api.cc
-index 72a6144..3f8ad5d 100644
---- a/ruby/src/api.cc
-+++ b/ruby/src/api.cc
-@@ -505,7 +505,7 @@ namespace leatherman { namespace ruby {
-         }
- 
-         // Search the path for ruby.exe and query it for the location of its library.
--        string ruby = execution::which("ruby");
-+        string ruby = execution::which("ruby-2.7");
-         if (ruby.empty()) {
-             LOG_DEBUG("ruby could not be found on the PATH.");
-             return library;



More information about the arch-commits mailing list