diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 537b6ad31d..31f5bacad8 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2022 Leo Nikkilä ;;; Copyright © 2022 kiasoc5 ;;; Copyright © 2023 Benjamin -;;; Copyright © 2023 Felix Lechner +;;; Copyright © 2023, 2024 Felix Lechner ;;; Copyright © 2023 Fries ;;; Copyright © 2023 Hilton Chain ;;; Copyright © 2023 Katherine Cox-Buday @@ -6906,7 +6906,16 @@ provides a buffered io.Writer that is flushed at a timed interval.") (add-after 'unpack 'remove-benchmark (lambda* (#:key tests? import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path) - (delete-file-recursively "benchmark")))))))) + (delete-file-recursively "benchmark")))) + (add-after 'unpack 'fix-paths + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (let* ((fusermount3 "/run/setuid-programs/fusermount3")) + (substitute* "fuse/mount_linux.go" + (("bin, err := fusermountBinary[(][)]") + (format #f "bin, err := ~s, nil" fusermount3))))))))))) + (inputs + (list fuse)) (propagated-inputs (list go-github-com-kylelemons-godebug go-github-com-moby-sys-mountinfo