gnu: podman: Fix path to helper binaries.

'quadlet' and 'rootlessport' coming with podman reside in
"#$output/libexex/podman", not in "#$output/bin".  Thus search this
first.

* gnu/packages/containers.scm (podman)[phases]<fix-hardcoded-paths>:
  Change subsitution for "/usr/local/libexec/podman", add substitution
  for "/usr/local/lib/podman".
This commit is contained in:
Hartmut Goebel 2023-06-06 16:06:01 +02:00
parent 39a3251feb
commit 1d471bbe44
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -360,6 +360,8 @@ (define-public podman
(string-append "CATATONIT_PATH=" (which "true"))))
(substitute* "vendor/github.com/containers/common/pkg/config/config_linux.go"
(("/usr/local/libexec/podman")
(string-append #$output "/libexec/podman"))
(("/usr/local/lib/podman")
(string-append #$output "/bin")))
(substitute* "vendor/github.com/containers/common/pkg/config/default.go"
(("/usr/libexec/podman/conmon") (which "conmon"))