OpenSDE/package-nopast — Issue #2: Tar issues
Author: karasz
Created: 2012-01-20 23:03:25+00:00
State: open

As we propose on the installing a Hetzner host wikipage, at some point we do the following bunch of commands:
```bash
~ # cd /mnt/incoming/sheba64
/mnt/incoming/sheba64 # for x in *.tar.bz2; do
echo $x; tar -C /rootfs/ -jxf $x
done
```
It seem sto me that after updating tar to 1.26 this does not really work as expected, below are the errors for package vim
```bash
vim-7.3.tar.bz2
tar: usr/bin/evim: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/bin/ex: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/bin/rview: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/bin/rvim: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/bin/vi: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/bin/view: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.ISO8859-1/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.ISO8859-1/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.ISO8859-1/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.ISO8859-1/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.UTF-8/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.UTF-8/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.UTF-8/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr.UTF-8/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/fr/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.ISO8859-1/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.ISO8859-1/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.ISO8859-1/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.ISO8859-1/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.UTF-8/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.UTF-8/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.UTF-8/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it.UTF-8/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/it/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.ISO8859-2/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.ISO8859-2/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.ISO8859-2/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.ISO8859-2/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.UTF-8/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.UTF-8/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.UTF-8/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl.UTF-8/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/pl/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.KOI8-R/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.KOI8-R/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.KOI8-R/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.KOI8-R/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.UTF-8/man1/ex.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.UTF-8/man1/rview.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.UTF-8/man1/rvim.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: usr/share/man/ru.UTF-8/man1/view.1: Cannot change mode to rwxrwxrwx: No such file or directory
tar: Exiting with failure status due to previous errors
```
as one can see the errors are related to symlinks, let's take for example the vi symlink to vim
```bash
/mnt/incoming/sheba64 # ls -al /rootfs/usr/bin/vi
lrwxrwxrwx 1 root root 3 Jan 19 18:07 /rootfs/usr/bin/vi -> vim
```
packages that do not have symlinks do not exhibit this issue, and the symlink are created despite the errors.
It might happen that the errors are purely cosmetical, but they are ugly. Meanwhile one can use the following snipet instead of the previous:

```bash
cd /mnt/incoming/sheba64
/mnt/incoming/sheba64 # mine -R /rootfs -i *.tar.bz2
```