Gentoo Archives: gentoo-dev

From: "Arsen Arsenović" <arsen@××××××.me>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dosym function in binary package ebuilds
Date: Fri, 22 Jul 2022 15:01:07
Message-Id: 3838343.3K0Sedu2rn@bstg
In Reply to: [gentoo-dev] dosym function in binary package ebuilds by Fabulous Zhang Zheng
1 Hi,
2
3 > I'm confused about the "../../", since S="${workdir}", the correct
4 > way seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
5
6 This is just how name resolution works on UNIX (see also: namei). If you
7 start at /usr/bin/xxx, take it's parent (/usr/bin/), and then follow
8 components of the link (../../opt/Signal/${MY_PN}) you get
9 /usr/bin/../../opt/Signal/${MY_PN}, collapsing those two parents
10 (assuming they're also not links), you're left with /opt/Signal/${PN}.
11 This is done so that these links act correct in roots (if one just did,
12 e.g. /opt/Signal/${MY_PN}, and you were in a root, it'd refer to the
13 hosts Signal install).
14
15 Hope that helps,
16 --
17 Arsen Arsenović

Attachments

File name MIME type
signature.asc application/pgp-signature