You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Installing wisp fails with tar errors: Failed to restore metadata #245
I'm not sure if this is the right place to file this issue, but it least it will leave a trail that people can follow. On my system (macOS Sonoma 14.x), brew install wisp fails during unpacking with Failed to restore metadata for multiple files. The reason for this is that the system version of tar, bsdtar@3.5.3, fails to unpack wisp-1.0.11.tar.gz after downloading. gnu-tar (available via Homebrew) is able to unpack the tarball, but I failed to configure Homebrew to use it over the system version of tar.
I nevertheless succeeded in installing wisp (and getting guile --language=wisp to work) using instructions from: https://hg.sr.ht/~arnebab/wisp#setup
Shell output
> brew install wisp
==> Fetching aconchillo/guile/wisp
==> Downloading https://www.draketo.de/software/wisp-1.0.11.tar.gz
######################################################################### 100.0%
==> Installing wisp from aconchillo/guile
wisp-1.0.11/examples/d20world.scm: Failed to restore metadata
wisp-1.0.11/examples/results.Guile: Failed to restore metadata
wisp-1.0.11/examples/multithreaded-magic.scm: Failed to restore metadata
wisp-1.0.11/examples/evaluate-r7rs-benchmark.png: Failed to restore metadata
wisp-1.0.11/examples/advent-2016-day-7.w: Failed to restore metadata
wisp-1.0.11/examples/lisp2wisp.w: Failed to restore metadata
wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~: Failed to restore metadata
tar: Error exit delayed from previous errors.
Error: Failure while executing; `/usr/bin/env tar --extract --no-same-owner --file /Users/.../Library/Caches/Homebrew/downloads/5572d32847b18621839f934b05dc9ca21e91d5f5ec7cd48c42ce98b9b8bfb472--wisp-1.0.11.tar.gz --directory /private/tmp/d20240110-15160-up316q` exited with 1. Here's the output:
wisp-1.0.11/examples/d20world.scm: Failed to restore metadata
wisp-1.0.11/examples/results.Guile: Failed to restore metadata
wisp-1.0.11/examples/multithreaded-magic.scm: Failed to restore metadata
wisp-1.0.11/examples/evaluate-r7rs-benchmark.png: Failed to restore metadata
wisp-1.0.11/examples/advent-2016-day-7.w: Failed to restore metadata
wisp-1.0.11/examples/lisp2wisp.w: Failed to restore metadata
wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~: Failed to restore metadata
tar: Error exit delayed from previous errors.
@rekmarks Thank you and sorry for the delay! I have contacted the author to see if they can help. I've never had an issue with any other tarball so this seems specific to this package. I don't think any particular xattr should be needed for these files.
Thank you for your report! I’m the author of wisp and I don’t see something special about these files. Are they the only files for which the errors appear or is there more error output?
Thank you for your report! I’m the author of wisp and I don’t see something special about these files. Are they the only files for which the errors appear or is there more error output?
No, those are the only files. Did you use make dist to create the tarball? What OS did you use? I actually have never seen this before... or not that I recall. 😃
Yes, I believe this is it! I just checked and on mac those files are not extracted and on Linux I can see
-rw-rw-r-- 1 aleix 718 Oct 2 2019 ._-examples-downloadmesh--hash-folder-tree.log
-rw-rw-r-- 1 aleix 512 Oct 2 2019 ._-examples-downloadmesh--help-message.log
-rw-rw-r-- 1 aleix 310 Dec 1 2019 ._-examples-hamming--flip.log
-rw-rw-r-- 1 aleix 848 Dec 1 2019 ._-examples-hamming--hamming-11--7-decode.log
-rw-rw-r-- 1 aleix 427 Dec 1 2019 ._-examples-hamming--hamming-11--7-encode.log
-rw-rw-r-- 1 aleix 286 Dec 1 2019 ._-examples-hamming--mod2sum.log
-rw-rw-r-- 1 aleix 797 Aug 23 2021 ._-examples-lisp2wisp--lisp2wisp.log
It might be a good idea to actually only include the examples you really want in EXTRA_DIST instead of the whole examples. I believe this would fix it.
Activity
aconchillo commentedon Feb 24, 2024
@rekmarks Thank you and sorry for the delay! I have contacted the author to see if they can help. I've never had an issue with any other tarball so this seems specific to this package. I don't think any particular xattr should be needed for these files.
ArneBab commentedon Feb 24, 2024
Thank you for your report! I’m the author of wisp and I don’t see something special about these files. Are they the only files for which the errors appear or is there more error output?
aconchillo commentedon Feb 25, 2024
No, those are the only files. Did you use
make distto create the tarball? What OS did you use? I actually have never seen this before... or not that I recall. 😃ArneBab commentedon Feb 25, 2024
I use
make distcheckfrom a Guix system. And these are all just plain text files and one png.I also do not see anything special about them. Original files:
Extracted from the tarball:
I tried searching for the error, but only found problems the other way round (from macOs to GNU).
aconchillo commentedon Feb 26, 2024
@ArneBab Could you try running
xattron those files?ArneBab commentedon Feb 26, 2024
I do not see any special attributes with
guix shell attr -- getfattr -R -d -m '' .(output is empty) — is that the right way to get them?ArneBab commentedon Mar 11, 2024
@aconchillo did you find out what is going wrong in the meantime? I currently have no lead what’s broken.
aconchillo commentedon Mar 19, 2024
Not yet, but I found out that if you pass
--no-mac-metadatatotarit works fine:ArneBab commentedon Mar 19, 2024
that’s a hint … maybe it’s because there are
._files in the directory? https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5138aconchillo commentedon Mar 19, 2024
Yes, I believe this is it! I just checked and on mac those files are not extracted and on Linux I can see
It might be a good idea to actually only include the examples you really want in
EXTRA_DISTinstead of the wholeexamples. I believe this would fix it.ArneBab commentedon Mar 20, 2024
I know what happens! I’m including the examples folder, and that accidentally included log files from doctests!
Does this work? https://www.draketo.de/software/wisp#v1.0.12
→ https://www.draketo.de/software/wisp-1.0.12.tar.gz
aconchillo commentedon Mar 20, 2024
Yep! No complains there. Thank you! Let me know when the final tarball is released and I'll update the formula. Thanks again for helping out!
ArneBab commentedon Mar 20, 2024
It is already released: https://www.draketo.de/software/wisp#v1.0.12
Thank you both for the report and help in tracking down the problem!