Hi, basically, when I am in my home directory, making a symbolic link from any directory to any other directory, using relative paths, fails and gives a broken link. I tried several different ways of creating symlinks and find out one way where it fails. Reproducible: Always Steps to Reproduce: 1.from any non-root directory 2.nano test.txt && mkdir destFolder 3.ln -s test.txt destFolder/ Actual Results: This creates a broken link in destFolder. Expected Results: A regular symlink ;) Like I wrote, i tried several combination of paths. In fact these commands works: in your home directory: ln -s ~/test.txt ~/destFolder/ in any other directory: ln -s ../test.txt ../currentDirectoryName/destFolder/ or any absolute paths...
Interesting problem... please post your 'emerge --info' to assist in reproducing it.
Hi, I am very sorry but I don't have any 'emerge --info' since I didn't emerge ln. I am running a stage 3 gentoo and I do not remember having compiled ln as standalone.
Please type into a root-console emerge --info and post the output of that command into this bug report.
Created attachment 203178 [details] 'emerge --info'
Comment on attachment 203178 [details] 'emerge --info' Hi, here it is...
When creating relative symbolic links, the TARGET argument must contain the path of the file you want to point at, relative to the actual placement of the link. In this case, you want to use ln -s ../test.txt destFolder/ From 'man ln': [...] SYNOPSIS ln [OPTION]... [-T] TARGET LINK_NAME (1st form) ln [OPTION]... TARGET (2nd form) ln [OPTION]... TARGET... DIRECTORY (3rd form) ln [OPTION]... -t DIRECTORY TARGET... (4th form) DESCRIPTION In the 1st form, create a link to TARGET with the name LINK_NAME. In the 2nd form, create a link to TARGET in the current directory. In the 3rd and 4th forms, create links to each TARGET in DIRECTORY. Create hard links by default, symbolic links with --symbolic. When creating hard links, each TARGET must exist. Symbolic links can hold arbitrary text; if later resolved, a relative link is interpreted in relation to its parent directory. [...] Works as designed, in other words.