redguardtoo / elpa-mirror

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

PAXHeader cause the package installation failed #26

Closed baolonglin closed 3 years ago

baolonglin commented 3 years ago

The tar which I used is: tar (GNU tar) 1.27.1

It use the --format=posix(pax) by default, it will cause error: "Package does not untar cleanly into directory %s/"

Patch like blow solve the error:

          (setq tar-cmd (concat (if (elpamr--is-mac) "COPYFILE_DISABLE=\"\" " "")
                                (elpamr--executable-find "tar")
                                " cf "
                                (elpamr--fullpath output-directory dir)
                                ".tar --exclude=\"*.elc\" --exclude=\"*~\" "
+                                " --format=gnu "
                                " -C "
                                package-user-dir
                                " "
                                dir))
redguardtoo commented 3 years ago

Could you give me more details? What's your OS? What's output of tar --version?

baolonglin commented 3 years ago

OS: NAME="SLES" VERSION="12-SP2" VERSION_ID="12.2" PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2" ID="sles" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sles:12:sp2"

Tar version: tar (GNU tar) 1.27.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

redguardtoo commented 3 years ago

c9d4f69 gnu tar format could be screwed up by env (Chen Bin)