gnu: sysdig: Update to 0.40.0-alpha6.

(Also add the missing 2024 copyright year).

* gnu/packages/admin.scm (sysdig): Update to 0.40.0-alpha6.
* gnu/packages/patches/sysdig-shared-falcosecurity-libs.patch: Rebase patch.
* gnu/packages/patches/sysdig-falcosecurity-libs-0.20.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I2fc91baf52aebf283615a8989e841687c6033602
This commit is contained in:
Maxim Cournoyer 2025-01-22 22:15:04 +09:00
parent 17587940c2
commit 51720d1afa
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -35,7 +35,7 @@
;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike@rohleder.de> ;;; Copyright © 2020, 2021, 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com> ;;; Copyright © 2020 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021-2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021, 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021, 2023, 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2021 qblade <qblade@protonmail.com> ;;; Copyright © 2021 qblade <qblade@protonmail.com>
@ -6167,44 +6167,38 @@ that require it.")
(license license:expat))) (license license:expat)))
(define-public sysdig (define-public sysdig
;; Use the latest commit for now, as the latest 0.36.1 release does not yet (package
;; support the falcosecurity-libs 0.16 API. (name "sysdig")
(let ((commit "598ad292b659425e475e5814d9e92c3c29188480") (version "0.40.0-alpha6") ;for the 0.20 patch to apply
(revision "0")) (source (origin
(package (method git-fetch)
(name "sysdig") (uri (git-reference
(version (git-version "0.36.1" revision commit)) (url "https://github.com/draios/sysdig")
(source (origin (commit version)))
(method git-fetch) (file-name (git-file-name name version))
(uri (git-reference (sha256
(url "https://github.com/draios/sysdig") (base32
(commit commit))) "0pxmx3by0lckw7zv54wrg0cr13j1mhk2z0x4qachrf2mz5qjq2cd"))))
(file-name (git-file-name name version)) (build-system cmake-build-system)
(sha256 (arguments
(base32 (list #:tests? #f ;no test suite
"0yyins3rb286dfibadfwwp2gwmdj7fsz3pdkpdvx05yvdqfkqds7")) #:configure-flags
(patches #~(list "-DUSE_BUNDLED_DEPS=OFF"
(search-patches "sysdig-shared-falcosecurity-libs.patch")))) ;; Already built and part of falcosecurity-libs, but
(build-system cmake-build-system) ;; needed for the 'HAS_MODERN_BPF' define.
(arguments "-DBUILD_SYSDIG_MODERN_BPF=ON"
(list #:tests? #f ;no test suite #$(string-append "-DSYSDIG_VERSION=" version))))
#:configure-flags (native-inputs (list pkg-config))
#~(list "-DUSE_BUNDLED_DEPS=OFF" (inputs
;; Already built and part of falcosecurity-libs, but (list falcosecurity-libs
;; needed for the 'HAS_MODERN_BPF' define. luajit
"-DBUILD_SYSDIG_MODERN_BPF=ON" ncurses
#$(string-append "-DSYSDIG_VERSION=" version)))) nlohmann-json
(native-inputs (list pkg-config)) yaml-cpp
(inputs zlib))
(list falcosecurity-libs (home-page "https://github.com/draios/sysdig")
luajit (synopsis "System exploration and troubleshooting tool")
ncurses (description "Sysdig is a simple tool for deep system visibility, with
nlohmann-json
yaml-cpp
zlib))
(home-page "https://github.com/draios/sysdig")
(synopsis "System exploration and troubleshooting tool")
(description "Sysdig is a simple tool for deep system visibility, with
native support for containers. It combines features of multiple system native support for containers. It combines features of multiple system
administration tools such as the @command{strace}, @command{tcpdump}, administration tools such as the @command{strace}, @command{tcpdump},
@command{htop}, @command{iftop} and @command{lsof} into a single interface. @command{htop}, @command{iftop} and @command{lsof} into a single interface.
@ -6222,7 +6216,7 @@ Bash aliases can be added to your @file{~/.bash_profile} file, for example:
alias sysdig=sudo sysdig --modern-bpf alias sysdig=sudo sysdig --modern-bpf
alias cysdig=sudo csysdig --modern-bpf alias cysdig=sudo csysdig --modern-bpf
") ;XXX no @example Texinfo support ") ;XXX no @example Texinfo support
(license license:asl2.0)))) (license license:asl2.0)))
(define-public fail2ban (define-public fail2ban
(package (package