redguardtoo / elpa-mirror

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

/usr/bin/tar: root\:0: Invalid owner #41

Closed Holby closed 2 years ago

Holby commented 3 years ago

Output for elpamr-create-mirror-for-installed:

* Running tar: "tar" ("cf" "../../myelpa/ace-window-20200606.1259.tar" "--anchored" "--exclude=*.elc" "--exclude=*~" "--exclude=*.so" "--exclude=*.dylib" "--exclude=*.dll" "--exclude=*/bin" "--exclude=*/__pycache__" "--format=gnu" "--owner=root:0" "--group=root:0" "--mtime=1970-01-01 00:00:00 UTC" "--" "ace-window-20200606.1259")
/usr/bin/tar: root\:0: Invalid owner
/usr/bin/tar: Error is not recoverable: exiting now
* Program tar exited with non-zero status 2, see the *elpa-mirror log* buffer for details

For me, removing ":0" from line 259 & 260 in elpa-mirror.el fixed it:

(unless is-bsd-tar
    '("--owner=root"
      "--group=root"
      "--mtime=1970-01-01 00:00:00 UTC"))

emacs --version: GNU Emacs 28.0.50 tar --version: tar (GNU tar) 1.26

redguardtoo commented 3 years ago

193dd94 fixed invalid owner error (Chen Bin)