redguardtoo / elpa-mirror

Create local emacs package repository. 15 seconds to install 115 packages.
312 stars 54 forks source link

Creating TAR Error #37

Closed ericzzh closed 3 years ago

ericzzh commented 3 years ago

Hi,

Could you please help check this issue? thanks.

ericzzh commented 3 years ago

tar version bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6

elpa-mirror version: ‘elpa-mirror-20210304.1432/’

emacs version: 27.1(9.0)

redguardtoo commented 3 years ago

d645c44 better algorithm to detect bsdtar (Chen Bin)

ericzzh commented 3 years ago

thanks, but the issue hasn't been cleared.

on my machine, tar --version shows: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6

but when run in Emacs, the result is Result: ("tar: Failed to set default locale" "bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzm...")

redguardtoo commented 3 years ago

image Show me the full log.

Besides, double check M-x eval-expression (elpamr--is-bsd-tar) returns t.

Try run one tar command from the log in shell. What's the output?

ericzzh commented 3 years ago

M-x eval-expression (elpamr--is-bsd-tar) return nil


I removed the ^ ahead of the regex, and it worked. image

the reason is the following message shows ahead of the version result in Emacs's run "tar: Failed to set default locale"

but didn't show in the terminal run.

redguardtoo commented 3 years ago

What's the output of tar --version?

ericzzh commented 3 years ago

thanks, but the issue hasn't been cleared.

on my machine, tar --version shows: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6

but when run in Emacs, the result is Result: ("tar: Failed to set default locale" "bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzm...")

as the last comment tar --version on my terminal shows bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6

but under the Emacs the additional message tar: Failed to set default locale shows before the normal result. The message was concated as "tar: Failed to set default locale bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6" which prevented the bsd tar regex check from passed.

redguardtoo commented 3 years ago

macOS? Have you tried to fix locale first? see https://blog.remibergsma.com/2012/07/10/setting-locales-correctly-on-mac-osx-terminal-application/

Anyway, I added more logic to detect bsd tar, 475f726 fixed bsd tar detection (Chen Bin)

ericzzh commented 3 years ago

worked! thanks very much! closed.