Without that fix we have the following error that make the build fail:
    [...]
    phase `unpack' succeeded after 0.1 seconds
    starting phase `unpack-core'
    tar: /gnu/store/[...]-android-platform-system-core-7.1.2_r36-checkout:
         Cannot read: Is a directory
    tar: At beginning of tape, quitting now
    tar: Error is not recoverable: exiting now
    [...]

This is probably because for some reasons there is no more tarball of
it being made, so we have to copy the data instead of extracting it.

In guix a similar fix was made in commit
e227b0820a93c4a264a169895948d6d2c0c37005 ("gnu: android-ext4-utils:
Fix build.").

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 scripts/guix.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/scripts/guix.scm b/scripts/guix.scm
index 006b980..2ef3318 100644
--- a/scripts/guix.scm
+++ b/scripts/guix.scm
@@ -280,10 +280,8 @@
                  (lambda*
                   (#:key inputs #:allow-other-keys)
                   (mkdir-p "core")
-                  (with-directory-excursion
-                   "core"
-                   (invoke "tar" "axf" (assoc-ref inputs "android-core")
-                           "--strip-components=1"))
+                  (copy-recursively (assoc-ref inputs "android-core")
+                                    "core")
                   #t))
                 (delete 'bootstrap)
                 (add-before
-- 
2.37.2

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to