aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/moreutils.scm
blob: 286a80312db9df0badfc7c4720f1c2622c86cc7e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2016, 2017, 2019, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016–2018, 2020–2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 ( <paren@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages moreutils)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages docbook)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages xml)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils))

(define-public moreutils
  (package
    (name "moreutils")
    (version "0.69")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://git.joeyh.name/index.cgi/moreutils.git/snapshot/"
                    name "-" version ".tar.gz"))
              (file-name (string-append name "-" version ".tar.gz"))
              (sha256
               (base32
                "1l859qnzccslvxlh5ghn863bkq2vgmqgnik6jr21b9kc6ljmsy8g"))))
    (build-system gnu-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'install 'wrap-program
                 (lambda _
                   (for-each
                     (lambda (script)
                       (wrap-program script
                         `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))
                     (find-files (string-append #$output "/bin")))))
               (delete 'configure))     ; no configure script
           #:make-flags
           #~(list (string-append "PREFIX=" #$output)
                   (string-append "DOCBOOKXSL="
                                  #$(this-package-native-input "docbook-xsl")
                                  "/xml/xsl/docbook-xsl-"
                                  #$(package-version (this-package-native-input
                                                      "docbook-xsl")))
                   (string-append "CC=" #$(cc-for-target)))))
    (inputs
     (list bash-minimal
           perl
           perl-ipc-run
           perl-timedate
           perl-time-duration))
    ;; For building the manual pages.
    (native-inputs
     (list docbook-xml-4.4
           docbook-xsl
           libxml2
           libxslt))
    (home-page "https://joeyh.name/code/moreutils/")
    (synopsis "Miscellaneous general-purpose command-line tools")
    (description
     "Moreutils is a collection of general-purpose command-line tools to
augment the traditional Unix toolbox.")
    (properties
     '((release-monitoring-url . "https://git.joeyh.name/index.cgi/moreutils.git/")))
    (license license:gpl2+)))
pan title='2024-07-20 12:13:18 +0200'>2024-07-20gnu: distrobox: Update to 1.7.2.1....* gnu/packages/containers.scm (distrobox): Update to 1.7.2.1. Change-Id: If0d644b013ddc4f63bf6b6e549f19845626ba60d Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jean-Pierre De Jesus DIAZ 2024-07-18gnu: podman: Update to 5.1.2....* gnu/packages/containers.scm (podman): Update to 5.1.2. Change-Id: I550fb0ad1fd72f3b42d0da33ed7403d78c7ecc4b Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-07-03gnu: podman: Update to 5.1.1....* gnu/packages/containers.scm (podman): Update to 5.1.1. Change-Id: Ie2563c1862debefcd6b5d0268e6cb57b6ae7193b Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Jean-Pierre De Jesus DIAZ 2024-07-03gnu: buildah: Fix build....* gnu/packages/containers.scm (buildah)<arguments>: Remove 'remove-go-references phase, add 'patch-buildflags phase and remove imported modules. Change-Id: Id89ea5c90ba8064484eec460efdfa592c974adca Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Jean-Pierre De Jesus DIAZ 2024-07-03gnu: podman: Fix build....* gnu/packages/containers.scm (podman)<arguments>: Remove 'remove-go-references phase, add BUILDFLAGS=-trimpath to make-flags and remove imported modules. Change-Id: I6ffca5bd5be21b8b61ea9aa50273f97c5e342f9d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Jean-Pierre De Jesus DIAZ 2024-07-03gnu: gvisor-tap-vsock: Fix build....* gnu/packages/containers.scm (gvisor-tap-vsock)<arguments>: Remove 'remove-go-references phase, add 'patch-go-reference phase and remove imported modules. Change-Id: I202292e303268b3ec0f13f19d4ceba517cd73aaa Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Jean-Pierre De Jesus DIAZ 2024-05-31gnu: podman: Update to 5.1.0....* gnu/packages/containers.scm (podman): Update to 5.1.0. Change-Id: I87b3e639f1eb01e93363a359d33c2aaceaee653b Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-31gnu: conmon: Update to 2.1.12....* gnu/packages/containers.scm (conmon): Update to 2.1.12. Change-Id: Ie5f5590b82467ef5a3cd981f1ba410c5bf8d9ff5 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-29gnu: buildah: Update to 1.36.0....* gnu/packages/containers.scm (buildah): Update to 1.36.0. Change-Id: Ic0ae640f34b1768fedb0b4859dbc2e48c9ccf407 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-23gnu: podman: Update to 5.0.3 [security fixes]....This fixes CVE-2024-3727. * gnu/packages/containers.scm (podman): Update to 5.0.3. Change-Id: Iefe98746c993830ef12c49733b8407b10305d065 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-23gnu: buildah: Update to 1.35.4 [security fixes]....This fixes CVE-2024-3727 and CVE-2024-28180. * gnu/packages/containers.scm (buildah): Update to 1.35.4. Change-Id: I5ee2b4591b39ee85d7236aedda7a2508df8e0e48 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-23gnu: passt: Update to 2024_05_10.7288448....* gnu/packages/containers.scm (passt): Update to 2024_05_10.7288448. Change-Id: Ic7b1e3423ad18c0ce0f06ce111f3dfdab04e860f Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Tomas Volf 2024-05-21gnu: buildah: Switch to gnu-build-system....Buildah is fundamentally similar to podman and provides its own Makefile. This commit switches from go-build-system to gnu-build-system so that the build can be done using `make' instead of reinvention some parts (like documentation) in the guile. The package pretty much follows how podman package looks like. * gnu/packages/containers.scm (buildah)[source]: Reformat. [build-system]: Use gnu-build-system. [arguments]<#:import-path, #:unpack-path, #:go, #:install-source?>: Delete. <#:make-flags>: Set make flags. <#:test-target>: Set, even though the tests are disabled. <#:imported-modules>: Also import (guix build go-build-system) for the remove-go-references phase. <#:phases>{'prepare-install-docs, 'build-docs, 'install-docs}: Delete. {'configure}: Delete. {'set-env, 'check, 'symlink-helpers, 'wrap-buildah, 'remove-go-references} {'install-completions}: New phases. [inputs]: Remove no longer used cni-plugins, conmon, runc. Add bash-minimal. [native-inputs]: Remove gnu-make, add go-1.21 and bats. Change-Id: I0ddd5febb0116a71a857e2a98a9951dbe8bd40d9 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: podman: Revamp the package....Substantial rework of the podman package. The source is no longer patched (at all) and all necessary modifications were moved into wrap-program and phases. Not everything is supported out of the box, but description mentions what packages to install to get additional functionality working. * gnu/packages/containers.scm (podman)[source]: Remove snippet and patches. [arguments]<#:make-flags>: Add HELPER_BINARIES_DIR. Add GOMD2MAN to actually use go-github-com-go-md2man package instead of the bundled version. <#:imported-modules>: Add (guix build go-build-system). <#:phases>{'set-env}: Set `CC' as an environment variable due to bug in make before 4.4. {'fix-hardcoded-paths}: Remove everything except patching `libexec' and `lib' locations. {'symlink-helpers}: New phase symlinking tools not discoverable via $PATH into one directory (`HELPER_BINARIES_DIR'). {'wrap-podman}: New phase wrapping `podman' to set correct $PATH. {'remove-go-references}: New phase stripping references to the golang toolchain from the binaries. [inputs]: Remove no longer needed cni-plugins, slirp4netns. Remove referenced in 'wrap-podman conmon, crun, iptables, passt. Move go-github-com-go-md2man into native-inputs. Add bash-minimal. [native-inputs]: Add custom grep with supported -P. Use newer go. Add mandoc. [description]: Explain how to get `podman compose' and `podman machine' working. * gnu/packages/patches/podman-program-lookup.patch: Delete file. Change-Id: Ifc28971a68751831d781517b041eec951a617087 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: buildah: Update to 1.35.3....* gnu/packages/containers.scm (buildah): Update to 1.35.3. Change-Id: I0a00d6a73079ddaa38a454856781adfc2d7f158f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: gvisor-tap-vsock: Remove references to go....This is handled automatically by go-build-system, but (obviously) not by the gnu-build-system, so add the phase manually. * gnu/packages/containers.scm (gvisor-tap-vsock)[arguments]<#:phases>: Add 'remove-go-references phase. Change-Id: I5cef0bc03dfa7f219bdfec4226d0e7772401a5a5 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: Add podman-compose....* gnu/packages/containers.scm (podman-compose): New variable. Change-Id: Ieb5ee4b6e82464599a17ec950be8a7dbb2efa842 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: Add catatonit....* gnu/packages/containers.scm (catatonit): New variable. Change-Id: Ib6948bde8204426a8cb008982cb7cc9302f9e6d6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Wilke Schwiedop 2024-05-21gnu: passt: Update to 2024_03_20.71dd405....* gnu/packages/containers.scm (passt): Update to 2024_03_20.71dd405. Change-Id: I089b7e9364058e59139bdb7cb942fad693254c1f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: conmon: Update to 2.1.11....* gnu/packages/containers.scm (conmon): Update to 2.1.11. Change-Id: I2a46b2dcd344909da34199145fef4ad3fa4418de Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: podman: Update to 5.0.2....* gnu/packages/containers.scm (podman): Update to 5.0.2. Change-Id: Id12c017e68f30db4ea99547beca54dbd01e3b029 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: podman: Drop obsolete comment....cgroup2 is now the default type. * gnu/packages/containers.scm (podman): Drop the comment. Change-Id: I197ed7e4901b26ad820295ed7adcaffd7bf533f5 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-21gnu: crun: Update to 1.15....* gnu/packages/containers.scm (crun): Update to 1.15. Change-Id: I769c15663bf668a967cf32243dd8139b6c949953 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-05-13gnu: slirp4netns: Update to 1.3.0....* gnu/packages/containers.scm (slirp4netns): Update to 1.3.0. Change-Id: I1f9c75a6e3dab996465879cf6734799a8b9e9d53 Signed-off-by: Christopher Baines <mail@cbaines.net> Tomas Volf 2024-03-22gnu: distrobox: Fix dependency usage....* gnu/packages/containers.scm (distrobox): Use WRAP-SCRIPT to patch the scripts to use system wget and podman. Change-Id: Ida9affcb212f64892e85dfa8bc4dd4d59f832f4f Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jean-Pierre De Jesus DIAZ 2024-03-22gnu: distrobox: Update to 1.7.0....* gnu/packages/containers.scm (distrobox): Update to 1.7.0. Change-Id: Ie62683317f6c984e5a64ce5436a17c8f2b7fbcf9 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jean-Pierre De Jesus DIAZ 2024-03-22gnu: Add gvisor-tap-vsock....* gnu/packages/containers.scm (gvisor-tap-vsock): New variable. Change-Id: I50c51613509e84998f17b4be593ce80c16002778 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tomas Volf 2024-03-13gnu: cni-plugins: Update to 1.4.1....* gnu/packages/containers.scm (cni-plugins): Update to 1.4.1. Change-Id: I770504d4f3cf2c74cb14ce8ea37055742529db94 Signed-off-by: Christopher Baines <mail@cbaines.net> Tomas Volf 2024-03-02gnu: podman: Update to 4.9.3....* gnu/packages/containers.scm (podman): Update to 4.9.3. * gnu/packages/patches/podman-program-lookup.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: If764e8456a697d16b76cd4ba1243cc5f633a6049 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tomas Volf 2024-03-02gnu: Add passt....* gnu/packages/containers.scm (passt): New variable. Change-Id: I2ebdd9d4255a89a86fb196568215b74bb61cb3a6 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tomas Volf 2024-02-14gnu: crun: Adjust package ideation....The release package provides the configured version, so there is no need to use git commit to adjust version detection. * gnu/packages/containers.scm (crun): Remove let and indent the package. [arguments] <#:phases>: Remove 'do-no-depend-on-git phase as the package includes release version. Change-Id: Ie50fe1f5f8ed69a77e353033679bfd98db6e56f4 Sharlatan Hellseher 2024-02-14gnu: crun: Update to 1.14.1....Since upstream does provide properly packaged source archives, the fetch method was switched from git to url. * gnu/packages/containers.scm (crun): Update to 1.14.1. Change-Id: I566d8742b1a3db75aefaa51032e09130a8307a61 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Tomas Volf 2024-02-14gnu: slirp4netns: Update to 1.2.3....* gnu/packages/containers.scm (slirp4netns): Update to 1.2.3. Change-Id: I103b697069e631653e9063ee42456d0d0e898900 Signed-off-by: Christopher Baines <mail@cbaines.net> Tomas Volf