nckx pushed a commit to branch master
in repository guix.

commit 852ad65bd45a81a441a85318badf17a005cad111
Author: Tobias Geerinckx-Rice <[email protected]>
AuthorDate: Wed Dec 8 15:38:29 2021 +0100

    gnu: fastboot: Fix ‘--version’ output.
    
    * gnu/packages/android.scm (fastboot)[arguments]: Replace broken
    ‘git rev-parse’ shell command with the actual package VERSION.
    
    Reported by kwjc on #guix.
---
 gnu/packages/android.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 016943e..74d97ab 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -668,7 +668,8 @@ file system.")
          (add-after 'enter-source 'patch-source
            (lambda _
              (substitute* "Android.mk"
-              (("libext4_utils_host") "libext4_utils_host libselinux libpcre"))
+               (("libext4_utils_host") "libext4_utils_host libselinux libpcre")
+               (("\\$\\(shell git .*\\)") ,version))
              #t))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)

Reply via email to