2021-10-25 09:08:28 +02:00
|
|
|
(define-module (glicid packages linux)
|
2023-02-09 08:43:53 +01:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2023-09-13 21:05:10 +02:00
|
|
|
#:use-module (guix utils)
|
2023-02-09 08:43:53 +01:00
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (guix build-system go)
|
|
|
|
#:use-module (gnu packages backup)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages cryptsetup)
|
|
|
|
#:use-module (gnu packages golang)
|
|
|
|
#:use-module ((gnu packages linux) #:prefix gnu:)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu system uuid)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages autotools)
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (glicid packages golang)
|
|
|
|
#:use-module (glicid utils))
|
2021-10-25 09:08:28 +02:00
|
|
|
|
2023-03-16 10:25:50 +01:00
|
|
|
|
|
|
|
(define-public rdma-core-upstream-45.0
|
|
|
|
(package
|
|
|
|
(inherit gnu:rdma-core)
|
|
|
|
(name (string-append (package-name gnu:rdma-core) "-upstream"))
|
|
|
|
(version "45.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/linux-rdma/rdma-core/releases/download/v" version "/rdma-core-" version ".tar.gz"))
|
|
|
|
(sha256 (base32 "16k08qm08ssqnri3217y687j6v4sz7ag4frq4nj31dssyg65c4lq"))))))
|
|
|
|
|
|
|
|
|
2023-01-02 12:38:59 +01:00
|
|
|
(define-public rdma-core-upstream-44.0
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit gnu:rdma-core)
|
|
|
|
(name (string-append (package-name gnu:rdma-core) "-upstream"))
|
|
|
|
(version "44.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/linux-rdma/rdma-core/releases/download/v" version "/rdma-core-" version ".tar.gz"))
|
|
|
|
(sha256 (base32 "12w5v74wz1akac09frw7qk1yd06b00239zh7bvbvqyzjc0g61mi5"))))))
|
2021-10-25 09:08:28 +02:00
|
|
|
|
2023-03-16 10:44:36 +01:00
|
|
|
(define local-rdma-core rdma-core-upstream-45.0)
|
2022-06-16 21:28:06 +02:00
|
|
|
|
2023-02-09 08:43:53 +01:00
|
|
|
(define-public rdma-core-latest (latest-version local-rdma-core gnu:rdma-core))
|
2022-10-13 15:14:54 +02:00
|
|
|
|
2022-11-08 14:37:44 +01:00
|
|
|
(define-public rdma-core-upstream-42.1
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit local-rdma-core)
|
|
|
|
(version "42.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/linux-rdma/rdma-core/releases/download/v" version "/rdma-core-" version ".tar.gz"))
|
|
|
|
(sha256 (base32 "02xjksnm71aak215f9262c2qbs77n4yc856ra6dlcfblciqk1cxp"))))))
|
2021-10-25 19:14:23 +02:00
|
|
|
|
2023-03-16 10:44:36 +01:00
|
|
|
|
2023-04-18 11:34:44 +02:00
|
|
|
(define-public libfabric-upstream-1.18.0
|
|
|
|
(package
|
|
|
|
(inherit gnu:libfabric)
|
|
|
|
(version "1.18.0")
|
|
|
|
(name (string-append (package-name gnu:libfabric) "-upstream"))
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/ofiwg/libfabric/releases/download/v" version "/libfabric-" version ".tar.bz2"))
|
|
|
|
(sha256 (base32 "0hzxi8bv06armscbvnsa30wjyp8w9802p5i00la92angng3vfbwi"))))
|
|
|
|
(inputs (modify-inputs (package-inputs gnu:libfabric)
|
|
|
|
(prepend `(,util-linux "lib") gnu:numactl)))))
|
|
|
|
|
|
|
|
|
2023-03-16 10:44:36 +01:00
|
|
|
(define-public libfabric-upstream-1.17.1
|
|
|
|
(package
|
|
|
|
(inherit gnu:libfabric)
|
|
|
|
(version "1.17.1")
|
|
|
|
(name (string-append (package-name gnu:libfabric) "-upstream"))
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/ofiwg/libfabric/releases/download/v" version "/libfabric-" version ".tar.bz2"))
|
|
|
|
(sha256 (base32 "0da0ckryvyws2r15mr5f7496c3pblq0sfl5dzm9lqy267zdjsdwb"))))
|
|
|
|
(inputs (modify-inputs (package-inputs gnu:libfabric)
|
|
|
|
(prepend `(,util-linux "lib") gnu:numactl)))))
|
|
|
|
|
|
|
|
|
2023-01-02 11:53:18 +01:00
|
|
|
(define-public libfabric-upstream-1.17.0
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit gnu:libfabric)
|
|
|
|
(version "1.17.0")
|
|
|
|
(name (string-append (package-name gnu:libfabric) "-upstream"))
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/ofiwg/libfabric/releases/download/v" version "/libfabric-" version ".tar.bz2"))
|
|
|
|
(sha256 (base32 "0pblwkgbnpf40is3isn47andkbm5j7dd8srx9lpwgh1nyrg0z72p"))))
|
|
|
|
(inputs (modify-inputs (package-inputs gnu:libfabric)
|
|
|
|
(prepend `(,util-linux "lib") gnu:numactl)))))
|
2022-05-10 10:00:46 +02:00
|
|
|
|
2023-04-18 11:34:44 +02:00
|
|
|
(define local-libfabric libfabric-upstream-1.18.0)
|
2023-01-02 11:53:18 +01:00
|
|
|
|
2023-02-09 08:43:53 +01:00
|
|
|
(define-public libfabric-latest (latest-version local-libfabric gnu:libfabric))
|
2022-10-03 16:48:46 +02:00
|
|
|
|
2022-10-14 14:08:08 +02:00
|
|
|
(define-public libfabric-upstream-1.16.1
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit local-libfabric)
|
|
|
|
(version "1.16.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/ofiwg/libfabric/releases/download/v" version "/libfabric-" version ".tar.bz2"))
|
|
|
|
(sha256 (base32 "0gqr7765za14kalwws2brw8l6zw80iai0ggaljw99zls7z9r5yak"))))))
|
2022-05-10 10:00:46 +02:00
|
|
|
|
2023-01-02 12:38:59 +01:00
|
|
|
(define-public psm2-upstream-11.2.230
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit gnu:psm2)
|
|
|
|
(name "psm2-upstream")
|
|
|
|
(version "11.2.230")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/cornelisnetworks/opa-psm2")
|
|
|
|
(commit (string-append "PSM2_" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256 (base32 "1bm7ndhi8qzmd0plnggj2h52yb34bab4k38530nsnkmv9smwdivl"))))))
|
|
|
|
|
|
|
|
(define local-psm2 psm2-upstream-11.2.230)
|
|
|
|
|
|
|
|
(define-public psm2-latest (latest-version local-psm2 gnu:psm2))
|
2023-01-02 12:38:59 +01:00
|
|
|
|
|
|
|
(define-public psm2-upstream-11.2.228
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit local-psm2)
|
|
|
|
(version "11.2.228")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/cornelisnetworks/opa-psm2")
|
|
|
|
(commit (string-append "PSM2_" version))))
|
|
|
|
(file-name (git-file-name "local-psm2" version))
|
|
|
|
(sha256 (base32 "1yymw4rkpdkzyi0lglagncjg1az2qmnq6f3lgrkvs6y77l9z6wrz"))))))
|
2022-06-17 19:00:51 +02:00
|
|
|
|
2022-12-24 11:33:12 +01:00
|
|
|
(define-public corefreq
|
2023-02-09 08:43:53 +01:00
|
|
|
(package
|
|
|
|
(inherit gnu:corefreq)
|
|
|
|
(name "corefreq")
|
2023-06-11 12:24:19 +02:00
|
|
|
(version "1.96.4")
|
2023-02-09 08:43:53 +01:00
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/cyring/CoreFreq")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2023-06-11 12:24:19 +02:00
|
|
|
(sha256 (base32 "11jjqfgyxq6vd264r812jyilghnaw9qyamfldy5wqfwwibbncjsm"))))))
|
2023-09-13 16:09:55 +02:00
|
|
|
|
|
|
|
(define-public lvm2-past-20311
|
|
|
|
(package
|
|
|
|
(name "lvm2")
|
|
|
|
(version "2.03.11")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (list (string-append "https://sourceware.org/ftp/lvm2/LVM2."
|
|
|
|
version ".tgz")
|
|
|
|
(string-append "ftp://sources.redhat.com/pub/lvm2/releases/LVM2."
|
|
|
|
version ".tgz")))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1m4xpda8vbyd89ca0w8nacvnl4j34yzsa625gn990fb5sh84ab44"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
|
|
;; Honor sysconfdir.
|
|
|
|
(substitute* "make.tmpl.in"
|
|
|
|
(("^confdir = .*$")
|
|
|
|
"confdir = @sysconfdir@\n")
|
|
|
|
(("DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@")
|
|
|
|
"DEFAULT_SYS_DIR = @sysconfdir@"))
|
|
|
|
#t))
|
2023-09-13 22:00:22 +02:00
|
|
|
;YD; (patches (search-patches "lvm2-static-link.patch"))
|
|
|
|
))
|
2023-09-13 16:09:55 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
(list config
|
|
|
|
pkg-config procps)) ;tests use 'pgrep'
|
|
|
|
(inputs
|
|
|
|
`(("libaio" ,libaio)
|
|
|
|
("udev" ,eudev)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'update-config
|
|
|
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
|
|
|
(install-file (search-input-file
|
|
|
|
(or native-inputs inputs) "/bin/config.sub")
|
|
|
|
"autoconf")
|
|
|
|
(install-file (search-input-file
|
|
|
|
(or native-inputs inputs) "/bin/config.guess")
|
|
|
|
"autoconf")))
|
|
|
|
(add-after 'configure 'set-makefile-shell
|
|
|
|
(lambda _
|
|
|
|
;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
|
|
|
|
;; expected.
|
|
|
|
(setenv "SHELL" (which "sh"))
|
|
|
|
|
|
|
|
;; Replace /bin/sh with the right file name.
|
|
|
|
(patch-makefile-SHELL "make.tmpl")
|
|
|
|
#t)))
|
|
|
|
|
|
|
|
#:configure-flags (list (string-append "--sysconfdir="
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
"/etc/lvm")
|
|
|
|
"--enable-udev_sync"
|
|
|
|
"--enable-udev_rules"
|
|
|
|
"--enable-pkgconfig"
|
|
|
|
"--enable-cmdlib"
|
|
|
|
"--enable-dmeventd" ; Requires '--enable-cmdlib'.
|
|
|
|
|
|
|
|
;; Make sure programs such as 'dmsetup' can
|
|
|
|
;; find libdevmapper.so.
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
"/lib,-rpath="
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
"/lib/device-mapper")
|
|
|
|
;; This is needed when cross-compiling.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
'("ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes")
|
|
|
|
'()))
|
|
|
|
|
|
|
|
;; The tests use 'mknod', which requires root access.
|
|
|
|
#:tests? #f))
|
|
|
|
(supported-systems (delete "i586-gnu" %supported-systems))
|
|
|
|
(home-page "https://sourceware.org/lvm2/")
|
|
|
|
(synopsis "Logical volume management for Linux")
|
|
|
|
(description
|
|
|
|
"LVM2 is the logical volume management tool set for Linux-based systems.
|
|
|
|
This package includes the user-space libraries and tools, including the device
|
|
|
|
mapper. Kernel components are part of Linux-libre.")
|
|
|
|
|
|
|
|
;; Libraries (liblvm2, libdevmapper) are LGPLv2.1.
|
|
|
|
;; Command-line tools are GPLv2.
|
|
|
|
(license (list license:gpl2 license:lgpl2.1))))
|
|
|
|
|
|
|
|
|
|
|
|
(define-public lvm2
|
|
|
|
(package
|
|
|
|
(inherit lvm2-past-20311)
|
2023-09-13 17:06:55 +02:00
|
|
|
(version "2.03.221-reallyoldversion")
|
2023-09-13 16:09:55 +02:00
|
|
|
))
|
|
|
|
|
|
|
|
|