From 3cb3fa6747251c6beac226d0233063524bd5f4d6 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 17 Dec 2017 08:25:44 +0000 Subject: guix: build: ruby-build-system: Install to the vendor directory * guix/build/ruby-build-system.scm (install): Install gems to the vendor directory, rather than the GEM_HOME. The vendor directory does not include the version of ruby used to install the gem in the path, which makes it easier to add it to the GEM_PATH for all versions of ruby to use. (gem-home): Remove procedure. * gnu/packages/ruby.scm (ruby, ruby-2.1)[native-search-paths]: Switch to lib/ruby/vendor_ruby. (ruby-1.8)[native-search-paths]: Remove native-search-paths. (gem-directory): Remove procedure. (ruby-ansi, ruby-ae)[arguments]: Remove use of gem-directory. (ruby-metaclass, ruby-instantiator, ruby-introspection, ruby-mocha, ruby-nokogiri, ruby-minitest-tu-shim, ruby-redcloth)[arguments]: Remove use of gem-home. (ruby-git, ruby-httpclient)[arguments]: Remove use of GEM_HOME. * gnu/packages/databases.scm (es-dump-restore)[arguments]: Remove use of GEM_HOME. --- gnu/packages/databases.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/databases.scm') diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 86beb762bb..d7bcce44e7 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -298,10 +298,10 @@ SQL, Key/Value, XML/XQuery or Java Object storage for their data model.") (lambda* (#:key outputs #:allow-other-keys) (wrap-program (string-append (assoc-ref outputs "out") "/bin/es_dump_restore") - `("GEM_PATH" ":" prefix (,(string-append - (getenv "GEM_PATH") - ":" - (getenv "GEM_HOME"))))) + `("GEM_PATH" ":" prefix (,(getenv "GEM_PATH") + ,(string-append + (assoc-ref outputs "out") + "/lib/ruby/vendor_ruby")))) #t))))) (propagated-inputs `(("ruby-httpclient" ,ruby-httpclient) -- cgit 1.4.1 From 0076f5a98c6f88a1d1d1824592bb8886b02b1894 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 10 Oct 2017 08:42:02 +0100 Subject: gnu: Remove redundant wrapping from packages using ruby-build-system. Now that the build system does wrapping automatically, it can be removed from the packages that do it manually. * gnu/packages/databases.scm (es-dump-restore)[arguments]: Remove #:phases. * gnu/packages/ruby.scm (ruby-redcloth)[arguments]: Remove #:phases. (ruby-httpclient)[arguments]: Remove 'wrap-bin-httpclient from the modified phases. --- gnu/packages/databases.scm | 13 +------------ gnu/packages/ruby.scm | 20 ++------------------ 2 files changed, 3 insertions(+), 30 deletions(-) (limited to 'gnu/packages/databases.scm') diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index d7bcce44e7..70202beea4 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -291,18 +291,7 @@ SQL, Key/Value, XML/XQuery or Java Object storage for their data model.") "020yk7f1hw48clmf5501z3xv9shsdchyymcv0y2cci2c1xvr1mim")))) (build-system ruby-build-system) (arguments - '(#:tests? #f ;; No testsuite. - #:phases - (modify-phases %standard-phases - (add-after 'install 'wrap-bin-es_dump_restore - (lambda* (#:key outputs #:allow-other-keys) - (wrap-program (string-append (assoc-ref outputs "out") - "/bin/es_dump_restore") - `("GEM_PATH" ":" prefix (,(getenv "GEM_PATH") - ,(string-append - (assoc-ref outputs "out") - "/lib/ruby/vendor_ruby")))) - #t))))) + '(#:tests? #f)) ;; No testsuite. (propagated-inputs `(("ruby-httpclient" ,ruby-httpclient) ("ruby-multi-json" ,ruby-multi-json) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index ab3c077036..ac852f54b8 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2852,17 +2852,7 @@ alternative to Marshal for Object serialization. ") ;; existing gemspec. (replace 'build (lambda _ - (zero? (system* "gem" "build" "redcloth.gemspec")))) - ;; Make sure that the "redcloth" executable finds required Ruby - ;; libraries. - (add-after 'install 'wrap-bin-redcloth - (lambda* (#:key outputs #:allow-other-keys) - (wrap-program (string-append (assoc-ref outputs "out") - "/bin/redcloth") - `("GEM_PATH" ":" prefix (,(string-append - (assoc-ref outputs "out") - "/lib/ruby/vendor_ruby")))) - #t))))) + (zero? (system* "gem" "build" "redcloth.gemspec"))))))) (native-inputs `(("bundler" ,bundler) ("ruby-diff-lcs" ,ruby-diff-lcs) @@ -3710,13 +3700,7 @@ It has built-in support for the legacy @code{cookies.txt} and (system* "ruby" "-Ilib" "test/runner.rb")) - #t))) - (add-after 'install 'wrap-bin-httpclient - (lambda* (#:key outputs #:allow-other-keys) - (wrap-program (string-append (assoc-ref outputs "out") - "/bin/httpclient") - `("GEM_PATH" ":" prefix (,(getenv "GEM_PATH")))) - #t))))) + #t)))))) (native-inputs `(("ruby-rack" ,ruby-rack))) (synopsis -- cgit 1.4.1 From 7f6a607e2a5840e1a3ecd51e18f5ae0568254cf3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 18 Jan 2018 12:26:54 +0200 Subject: gnu: mysql: Update to 5.7.21. * gnu/packages/databases.scm (mysql): Update to 5.7.21. --- gnu/packages/databases.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/databases.scm') diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 70202beea4..72e89d7cec 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -10,7 +10,7 @@ ;;; Copyright © 2015 Eric Dvorsak ;;; Copyright © 2016 Hartmut Goebel ;;; Copyright © 2016 Christopher Allan Webber -;;; Copyright © 2015, 2016, 2017 Efraim Flashner +;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner ;;; Copyright © 2016, 2017 ng0 ;;; Copyright © 2016, 2017 Roel Janssen ;;; Copyright © 2016 David Craven @@ -498,7 +498,7 @@ RDBMS systems (which are deep in functionality).") (define-public mysql (package (name "mysql") - (version "5.7.20") + (version "5.7.21") (source (origin (method url-fetch) (uri (list (string-append @@ -510,7 +510,7 @@ RDBMS systems (which are deep in functionality).") name "-" version ".tar.gz"))) (sha256 (base32 - "11v4g3igigv3zvknv67qml8in6fjrbs2vnr3q6bg6f62nydm95sk")))) + "1dq9bgnajf7cq3mrjkwv6w5nwslhs26lkrw56i7w4fbsq9wm087s")))) (build-system cmake-build-system) (arguments `(#:configure-flags -- cgit 1.4.1 From 8d7b476ba95e19f678194f4812ebfe5cc60de0d2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 18 Jan 2018 12:28:14 +0200 Subject: gnu: mongodb: Fix indentation. * gnu/packages/databases.scm (mongodb): Replace tabs with spaces. --- gnu/packages/databases.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/databases.scm') diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 72e89d7cec..c0cf41a5bc 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -464,8 +464,8 @@ applications.") ;; individual executable files, with some being hundreds of ;; megabytes in size. (begin - (apply - invoke `("scons" ,@common-options "dbtest" "unittests")) + (apply + invoke `("scons" ,@common-options "dbtest" "unittests")) (substitute* "build/unittests.txt" ;; TODO: Don't run the async_stream_test, as it hangs (("^build\\/opt\\/mongo\\/executor\\/async\\_stream\\_test\n$") @@ -474,8 +474,8 @@ applications.") ;; Expected 0UL != disks.size() (0 != 0) @src/mongo/util/procparser_test.cpp:476 (("^build\\/opt\\/mongo\\/util\\/procparser\\_test\n$") "")) - (invoke "python" "buildscripts/resmoke.py" - "--suites=dbtest,unittests" + (invoke "python" "buildscripts/resmoke.py" + "--suites=dbtest,unittests" (format #f "--jobs=~a" (parallel-job-count))))))) (replace 'install (lambda _ -- cgit 1.4.1