Skip to content

Installing wisp fails with tar errors: Failed to restore metadata #245

Closed

Description

@rekmarks

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.

Activity

  1. self-assigned this
    on Feb 24, 2024
  2. aconchillo commented on Feb 24, 2024

    @aconchillo
    Owner

    @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.

  3. ArneBab commented on Feb 24, 2024

    @ArneBab

    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?

  4. aconchillo commented on Feb 25, 2024

    @aconchillo
    Owner

    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. 😃

  5. ArneBab commented on Feb 25, 2024

    @ArneBab

    I use make distcheck from 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:

    $ ls -l examples/d20world.scm examples/results.Guile examples/multithreaded-magic.scm examples/evaluate-r7rs-benchmark.png examples/advent-2016-day-7.w examples/lisp2wisp.w examples/evaluate-r7rs-benchmark.w
    -rwxrwxrwx 1 arne users 183733 22. Jan 2019  examples/advent-2016-day-7.w
    -rw-rw-rw- 1 arne users  16415 22. Jan 2019  examples/d20world.scm
    -rw-rw-rw- 1 arne users  35909 16. Sep 2020  examples/evaluate-r7rs-benchmark.png
    -rwxrwxrwx 1 arne users   6564 22. Mär 2023  examples/evaluate-r7rs-benchmark.w
    -rwxrwxrwx 1 arne users   2881 30. Nov 2021  examples/lisp2wisp.w
    -rw-rw-rw- 1 arne users   1531 22. Jan 2019  examples/multithreaded-magic.scm
    -rw-rw-rw- 1 arne users  28516 29. Jan 2020  examples/results.Guile
    $ file examples/d20world.scm examples/results.Guile examples/multithreaded-magic.scm examples/evaluate-r7rs-benchmark.png examples/advent-2016-day-7.w examples/lisp2wisp.w examples/evaluate-r7rs-benchmark.w
    examples/d20world.scm:                a sh script, Unicode text, UTF-8 text executable, with escape sequences
    examples/results.Guile:               ASCII text
    examples/multithreaded-magic.scm:     a sh script, Unicode text, UTF-8 text executable
    examples/evaluate-r7rs-benchmark.png: PNG image data, 1024 x 768, 8-bit colormap, non-interlaced
    examples/advent-2016-day-7.w:         Bourne-Again shell script, ASCII text executable
    examples/lisp2wisp.w:                 Bourne-Again shell script, Unicode text, UTF-8 text executable
    examples/evaluate-r7rs-benchmark.w:   POSIX shell script, Unicode text, UTF-8 text executable, with very long lines (417)
    

    Extracted from the tarball:

    $ ls -l wisp-1.0.11/examples/d20world.scm wisp-1.0.11/examples/results.Guile wisp-1.0.11/examples/multithreaded-magic.scm wisp-1.0.11/examples/evaluate-r7rs-benchmark.png wisp-1.0.11/examples/advent-2016-day-7.w wisp-1.0.11/examples/lisp2wisp.w wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~
    -rwxr-xr-x 1 arne users 183733 22. Jan 2019  wisp-1.0.11/examples/advent-2016-day-7.w
    -rw-r--r-- 1 arne users  16415 22. Jan 2019  wisp-1.0.11/examples/d20world.scm
    -rw-r--r-- 1 arne users  35909 16. Sep 2020  wisp-1.0.11/examples/evaluate-r7rs-benchmark.png
    -rwxr-xr-x 1 arne users   6502  9. Dez 2022  wisp-1.0.11/examples/evaluate-r7rs-benchmark.w
    -rwxr-xr-x 1 arne users   5614 21. Sep 2019  wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~
    -rwxr-xr-x 1 arne users   2881 30. Nov 2021  wisp-1.0.11/examples/lisp2wisp.w
    -rw-r--r-- 1 arne users   1531 22. Jan 2019  wisp-1.0.11/examples/multithreaded-magic.scm
    -rw-r--r-- 1 arne users  28516 29. Jan 2020  wisp-1.0.11/examples/results.Guile
    $ file wisp-1.0.11/examples/d20world.scm wisp-1.0.11/examples/results.Guile wisp-1.0.11/examples/multithreaded-magic.scm wisp-1.0.11/examples/evaluate-r7rs-benchmark.png wisp-1.0.11/examples/advent-2016-day-7.w wisp-1.0.11/examples/lisp2wisp.w wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~
    wisp-1.0.11/examples/d20world.scm:                a sh script, Unicode text, UTF-8 text executable, with escape sequences
    wisp-1.0.11/examples/results.Guile:               ASCII text
    wisp-1.0.11/examples/multithreaded-magic.scm:     a sh script, Unicode text, UTF-8 text executable
    wisp-1.0.11/examples/evaluate-r7rs-benchmark.png: PNG image data, 1024 x 768, 8-bit colormap, non-interlaced
    wisp-1.0.11/examples/advent-2016-day-7.w:         Bourne-Again shell script, ASCII text executable
    wisp-1.0.11/examples/lisp2wisp.w:                 Bourne-Again shell script, Unicode text, UTF-8 text executable
    wisp-1.0.11/examples/evaluate-r7rs-benchmark.w:   POSIX shell script, Unicode text, UTF-8 text executable, with very long lines (417)
    wisp-1.0.11/examples/evaluate-r7rs-benchmark.w~:  POSIX shell script, Unicode text, UTF-8 text executable, with very long lines (417)
    

    I tried searching for the error, but only found problems the other way round (from macOs to GNU).

  6. aconchillo commented on Feb 26, 2024

    @aconchillo
    Owner

    @ArneBab Could you try running xattr on those files?

  7. ArneBab commented on Feb 26, 2024

    @ArneBab

    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?

  8. ArneBab commented on Mar 11, 2024

    @ArneBab

    @aconchillo did you find out what is going wrong in the meantime? I currently have no lead what’s broken.

  9. aconchillo commented on Mar 19, 2024

    @aconchillo
    Owner

    @aconchillo did you find out what is going wrong in the meantime? I currently have no lead what’s broken.

    Not yet, but I found out that if you pass --no-mac-metadata to tar it works fine:

    tar --no-mac-metadata -xvf wisp-1.0.11.tar.gz
    
  10. ArneBab commented on Mar 19, 2024

    @ArneBab

    that’s a hint … maybe it’s because there are ._ files in the directory? https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5138

  11. aconchillo commented on Mar 19, 2024

    @aconchillo
    Owner

    that’s a hint … maybe it’s because there are ._ files in the directory? https://gitlab.com/gitlab-org/gitaly/-/merge_requests/5138

    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.

  12. ArneBab commented on Mar 20, 2024

    @ArneBab

    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

  13. aconchillo commented on Mar 20, 2024

    @aconchillo
    Owner

    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

    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!

  14. ArneBab commented on Mar 20, 2024

    @ArneBab

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions