[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
60/100: gnu: facter: Update to 4.4.1.
From: |
guix-commits |
Subject: |
60/100: gnu: facter: Update to 4.4.1. |
Date: |
Mon, 10 Jul 2023 03:27:34 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 7ed11ca491f8e2b754ea0c0cf2cd5be83c8cf1a6
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Jun 29 10:22:28 2023 +0100
gnu: facter: Update to 4.4.1.
* gnu/packages/admin.scm (facter): Update to 4.4.1.
[arguments,inputs]: Update style.
[home-page]: Update.
---
gnu/packages/admin.scm | 96 ++++++++++++++++++++++++--------------------------
1 file changed, 47 insertions(+), 49 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 51d1a450bf..e9e949bf14 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -592,7 +592,7 @@ graphs and can export its output to different formats.")
(define-public facter
(package
(name "facter")
- (version "4.0.52")
+ (version "4.4.1")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -601,63 +601,61 @@ graphs and can export its output to different formats.")
(file-name (git-file-name name version))
(sha256
(base32
- "05j4q87sak1f1isj7ngzr59h3j3xskfwjjwfv0xd7lhwcaxg3a3c"))))
+ "080v0ml2svw2vbzfa659v8718pmhh2kav0l0q1jjvc6mm8sgnmmn"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-facter-ng-gemspec
- (lambda _
- ;; XXX: ruby-build-system incorrectly finds
- ;; facter-ng.gemspec from this directory and tries to
- ;; build that instead of the proper facter.gemspec.
- ;; Just delete it as a workaround, as it appears to
- ;; only exist for backwards-compatibility after the
- ;; facter-ng->facter rename.
- (delete-file "agent/facter-ng.gemspec")
- #t))
- (add-after 'unpack 'embed-absolute-references
- ;; Refer to absolute executable file names to avoid propagation.
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* (find-files "lib/facter/resolvers" "\\.rb$")
- (("execute\\('(which |)([^ ']+)" _ _ name)
- (string-append "execute('" (or (which name)
- name))))
- #t))
- (delete 'check)
- (add-after 'wrap 'check
- (lambda* (#:key tests? outputs #:allow-other-keys)
- ;; XXX: The test suite wants to run Bundler and
- ;; complains that the gemspec is invalid. For now
- ;; just make sure that we can run the wrapped
- ;; executable directly.
- (if tests?
- (invoke (string-append (assoc-ref outputs "out")
- "/bin/facter")
- ;; Many facts depend on /sys, /etc/os-release,
- ;; etc, so we only run a small sample.
- "facterversion" "architecture"
- "kernel" "kernelversion")
- (format #t "tests disabled~%"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-facter-ng-gemspec
+ (lambda _
+ ;; XXX: ruby-build-system incorrectly finds
+ ;; facter-ng.gemspec from this directory and tries to
+ ;; build that instead of the proper facter.gemspec.
+ ;; Just delete it as a workaround, as it appears to
+ ;; only exist for backwards-compatibility after the
+ ;; facter-ng->facter rename.
+ (delete-file "agent/facter-ng.gemspec")))
+ (add-after 'unpack 'embed-absolute-references
+ ;; Refer to absolute executable file names to avoid propagation.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (find-files "lib/facter/resolvers" "\\.rb$")
+ (("execute\\('(which |)([^ ']+)" _ _ name)
+ (string-append "execute('" (or (which name)
+ name))))))
+ (delete 'check)
+ (add-after 'wrap 'check
+ (lambda* (#:key tests? outputs #:allow-other-keys)
+ ;; XXX: The test suite wants to run Bundler and
+ ;; complains that the gemspec is invalid. For now
+ ;; just make sure that we can run the wrapped
+ ;; executable directly.
+ (if tests?
+ (invoke (string-append (assoc-ref outputs "out")
+ "/bin/facter")
+ ;; Many facts depend on /sys, /etc/os-release,
+ ;; etc, so we only run a small sample.
+ "facterversion" "architecture"
+ "kernel" "kernelversion")
+ (format #t "tests disabled~%")))))))
(inputs
- `(("ruby-hocon" ,ruby-hocon)
- ("ruby-sys-filesystem" ,ruby-sys-filesystem)
- ("ruby-thor" ,ruby-thor)
-
- ;; For ‘embed-absolute-references’.
- ("dmidecode" ,dmidecode)
- ("inetutils" ,inetutils) ; for ‘hostname’
- ("iproute" ,iproute)
- ("pciutils" ,pciutils)
- ("util-linux" ,util-linux)))
+ (list ruby-hocon
+ ruby-sys-filesystem
+ ruby-thor
+
+ ;; For ‘embed-absolute-references’.
+ dmidecode
+ inetutils ; for ‘hostname’
+ iproute
+ pciutils
+ util-linux))
(synopsis "Collect and display system facts")
(description
"Facter is a tool that gathers basic facts about nodes (systems) such
as hardware details, network settings, OS type and version, and more. These
facts can be collected on the command line with the @command{facter} command
or via the @code{facter} Ruby library.")
- (home-page "https://github.com/puppetlabs/facter-ng")
+ (home-page "https://github.com/puppetlabs/facter")
(license license:expat)))
(define-public ttyload
- 17/100: gnu: Add ruby-psych., (continued)
- 17/100: gnu: Add ruby-psych., guix-commits, 2023/07/10
- 97/100: gnu: ruby-sass-spec: Remove ruby-terminfo input., guix-commits, 2023/07/10
- 33/100: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/07/10
- 30/100: gnu: ruby-minitest-focus: Update to 1.3.1., guix-commits, 2023/07/10
- 51/100: gnu: ruby-marcel: Fix build., guix-commits, 2023/07/10
- 46/100: gnu: ruby-timecop: Update to 0.9.6., guix-commits, 2023/07/10
- 58/100: gnu: ruby-bibtex-ruby: Remove ruby-byebug dependency., guix-commits, 2023/07/10
- 64/100: gnu: ruby-braintree: Update to 4.12.0., guix-commits, 2023/07/10
- 65/100: gnu: ruby-multi-json: Fix build., guix-commits, 2023/07/10
- 63/100: gnu: ruby-benchmark-ips: Update to 2.12.0., guix-commits, 2023/07/10
- 60/100: gnu: facter: Update to 4.4.1.,
guix-commits <=
- 91/100: gnu: ruby-minitest-tu-shim: Fix build., guix-commits, 2023/07/10
- 82/100: gnu: ruby-stackprof: Always skip the GC test., guix-commits, 2023/07/10
- 92/100: gnu: ruby-rspec-block-is-expected: Update to 1.0.5., guix-commits, 2023/07/10
- 84/100: gnu: ruby-mapping: Fix build., guix-commits, 2023/07/10
- 62/100: gnu: ruby-awesome-print: Update to 1.9.2., guix-commits, 2023/07/10
- 73/100: gnu: ruby-net-http-persistent: Update to 4.0.2., guix-commits, 2023/07/10
- 67/100: gnu: ruby-octokit: Update to 6.1.1., guix-commits, 2023/07/10
- 76/100: gnu: ruby-slop: Update to 4.10.1., guix-commits, 2023/07/10
- 98/100: gnu: ruby-sass: Update to 3.7.4., guix-commits, 2023/07/10
- 99/100: gnu: ruby-safe-yaml: Fix build., guix-commits, 2023/07/10