guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: android-ext4-utils: Fix build.


From: guix-commits
Subject: 02/04: gnu: android-ext4-utils: Fix build.
Date: Tue, 31 Aug 2021 09:35:35 -0400 (EDT)

glv pushed a commit to branch core-updates-frozen
in repository guix.

commit e227b0820a93c4a264a169895948d6d2c0c37005
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Tue Aug 31 15:20:13 2021 +0200

    gnu: android-ext4-utils: Fix build.
    
    * gnu/packages/android.scm (android-ext4-utils)[arguments]: Use gexp for
      'make-flags'. Update 'unpack-core' phase.
---
 gnu/packages/android.scm | 30 ++++++++++++------------------
 1 file changed, 12 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 630a626..a747b0c 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -532,29 +532,23 @@ the core SELinux management utilities.")
     (build-system android-ndk-build-system)
     (arguments
      `(#:make-flags
-       (list (string-append "CPPFLAGS="
-                            ;"-Wno-error "
-                            "-I "
-                            (assoc-ref %build-inputs "android-libselinux")
-                            "/include "
-                            "-I " (assoc-ref %build-inputs "android-libsparse")
-                            "/include "
-                            "-I " (assoc-ref %build-inputs "android-libcutils")
-                            "/include "
-                            "-I " (assoc-ref %build-inputs "android-liblog") 
"/include "
-                            "-I ../core/include")
-             "CFLAGS=-Wno-error"
-             "install-libext4_utils_host.a"
-             (string-append "prefix=" (assoc-ref %outputs "out")))
+       ,#~(list (string-append "CPPFLAGS="
+                               ;"-Wno-error "
+                               "-I " #$android-libselinux "/include "
+                               "-I " #$android-libsparse  "/include "
+                               "-I " #$android-libcutils  "/include "
+                               "-I " #$android-liblog "/include "
+                               "-I ../core/include")
+                "CFLAGS=-Wno-error"
+                "install-libext4_utils_host.a"
+                (string-append "prefix=" #$output))
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'unpack-core
            (lambda* (#:key inputs #:allow-other-keys)
              (mkdir-p "core")
-             (with-directory-excursion "core"
-               (invoke "tar" "axf" (assoc-ref inputs "android-core")
-                             "--strip-components=1"))
-             #t))
+             (copy-recursively (assoc-ref inputs "android-core")
+                               "core")))
          (add-after 'unpack-core 'enter-source
            (lambda _ (chdir "ext4_utils") #t))
          (replace 'install



reply via email to

[Prev in Thread] Current Thread [Next in Thread]