I am trying to download swi-linux source(swi-fx30-catm_4.0.0.beta │ Release R15.0.2.001.BP2 + Legato 21.05.0) to my Ubuntu 18.04.6. I got error “traversing symlinks not allow” as below. I didn’t have issue with downloading previous version R14. Any suggestions on where the issue can be for R15 BP2?
bill@xxx:~$ leaf getsrc swi-linux
Run sync steps for fx30-catm-linux-src_R15.0.2.001.BP2
Ready to sync in /home/bill/swi-linux-src directory:
repo init -u ssh://git@github.com/legatoproject/manifest -m mdm9x06/tags/SWI9X06Y_03.00.03.00/linux.xml -g default,-cache,proprietary ; repo sync
Proceed? (Y/n)
Y
Checking credentials...
Your identity is: xxx
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /home/bill/swi-linux-src
Fetching: 100% (58/58), done in 8.431s
Garbage collecting: 100% (58/58), done in 0.205s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
fatal: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
ERROR:
Something went wrong with `repo` command
HINTS:
Please check connection and credentials
Then try again leaf getsrc swi-linux
Fetching: 100% (58/58), done in 8.126s
Garbage collecting: 100% (58/58), done in 0.159s
error: Cannot checkout msm-4.14: ManifestInvalidPathError: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
fatal: /home/bill/swi-linux-src/kernel/arch/arm/mach-msm: traversing symlinks not allow
Error while sync operation on fx30-catm-linux-src_R15.0.2.001.BP2
Error during sync step for fx30-catm-linux-src_R15.0.2.001.BP2 (command returned 1)
bill@xxx:~$
The repo tool seems to have changed at some point and no longer supports traversing symlinks. I will open a ticket on our side for a workaround in leaf…
For now you can install the older repo tool
please install old version with these commands
mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/.bin/repo
chmod a+rx ~/.bin/repo
sed -i 's/env python/env python2/g' ~/.bin/repo (this is to shebang to python2).
If there are still issues you may have to copy this older version of repo to the path of which repo
As @lpacyk advised, an previous version of repo which supports traversing symlinks can be the workaround for now. You may want to check if your repo is the same version as mine?
r15bp2@xxx:~/swi-linux-src$ repo --version
repo version v1.13.11
(from https://gerrit.googlesource.com/git-repo)
repo launcher version 1.27
(from /home/r15bp2/.bin/repo)
(currently at 1.13.11)
repo User-Agent git-repo/1.13.11 (Linux) git/2.17.1 Python/2.7.17
git 2.17.1
git User-Agent git/2.17.1 (Linux) git-repo/1.13.11
Python 2.7.17 (default, Mar 18 2022, 13:21:42)
[GCC 7.5.0]
r15bp2@xxx:~/swi-linux-src$