Gentoo Archives: gentoo-dev

From: Alexey Zapparov <alexey@××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dosym function in binary package ebuilds
Date: Fri, 22 Jul 2022 20:49:40
Message-Id: CANBLDk0aPd3a7TQ7Kz0N7qhrk74f0m0cU2OLm0sX=_tjYDgjCQ@mail.gmail.com
In Reply to: [gentoo-dev] dosym function in binary package ebuilds by Fabulous Zhang Zheng
1 `dosym target link_name` creates a symlink. Under the hood it calls `ln`.
2 First argument may be either absolute path or relative to link_name.
3 Conventionally relative targets are used.
4
5 On Fri, 22 Jul 2022, 16:56 Fabulous Zhang Zheng, <zheng1181822466@×××××.com>
6 wrote:
7
8 > Good evening, dear list
9 >
10 > Most binary package ebuilds have such a *dosym* statement in
11 > src_install(), take net-im/signal-desktop-bin as an example:
12 >
13 > dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} (where the variable
14 > is signal-desktop)
15 >
16 > *dosym* creates a symlink of the binary under opt at /usr/bin/ according
17 > to devmanaul.
18 >
19 > I'm confused about the "../../", since S="${workdir}", the correct way
20 > seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
21 >
22 > It's much appreciated if anyone could help ; )
23 >
24 >
25 > └── signal-desktop-bin-5.50.0
26 > ├── distdir
27 > │ └── signal-desktop_5.50.0_amd64.deb ->
28 > /var/cache/distfiles/signal-desktop_5.50.0_amd64.deb
29 > ├── files -> /var/db/repos/gentoo/net-im/signal-desktop-bin/files
30 > ├── homedir
31 > ├── temp
32 > │ ├── build.log
33 > │ ├── eclass-debug.log
34 > │ ├── environment
35 > │ └── logging
36 > └── work
37 > ├── opt
38 > └── usr
39 >
40 >

Replies

Subject Author
Re: [gentoo-dev] dosym function in binary package ebuilds Fabulous Zhang Zheng <zheng1181822466@×××××.com>