[devel] Q: Too many levels of symbolic links
Alexey Gladkov
legion на altlinux.ru
Сб Янв 9 00:53:16 MSK 2021
On Fri, Jan 08, 2021 at 10:05:27PM +0100, Alexey Gladkov wrote:
> Привет!
>
> При попытке собрать пакет rpm начал валиться из-за невозможности
> распаковать исходники:
>
> /bin/tar: chromium/tools/luci-go/swarming: Cannot change mode to rwxr-xr-x: Too many levels of symbolic links
> /bin/tar: chromium/tools/luci-go/isolated: Cannot change mode to rwxr-xr-x: Too many levels of symbolic links
> /bin/tar: chromium/tools/luci-go/isolate: Cannot change mode to rwxr-xr-x: Too many levels of symbolic links
>
> Вне чрута tar-1.32-alt1 прекрасно распаковывает исходники, а в hasher
> падает.
Сделал простейший пример:
$ gear --export-dir=$PWD
$ tar -vtf foo-1.0.tar
root 0 2021-01-09 00:45 foo-1.0/
drwxr-xr-x root/root 0 2021-01-09 00:45 foo-1.0/.gear/
-rw-r--r-- root/root 22 2021-01-09 00:45 foo-1.0/.gear/rules
-rw-r--r-- root/root 256 2021-01-09 00:45 foo-1.0/foo.spec
drwxr-xr-x root/root 0 2021-01-09 00:45 foo-1.0/src/
-rw-r--r-- root/root 0 2021-01-09 00:45 foo-1.0/src/a
lrwxrwxrwx root/root 0 2021-01-09 00:45 foo-1.0/src/b -> a
$ tar -C out -vxf foo-1.0.tar; echo rc=$?
foo-1.0/
foo-1.0/.gear/
foo-1.0/.gear/rules
foo-1.0/foo.spec
foo-1.0/src/
foo-1.0/src/a
foo-1.0/src/b
rc=0
$ gear-hsh
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/srpm/foo-1.0-alt1.src.rpm (w1.gzdio)
Installing foo-1.0-alt1.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.36403
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf foo-1.0
+ echo 'Source #0 (foo-1.0.tar):'
Source #0 (foo-1.0.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/foo-1.0.tar
/bin/tar: foo-1.0/src/b: Cannot change mode to rwxr-xr-x: Too many levels of symbolic links
/bin/tar: Exiting with failure status due to previous errors
error: Bad exit status from /usr/src/tmp/rpm-tmp.36403 (%prep)
--
Rgrds, legion
Подробная информация о списке рассылки Devel