Gentoo Archives: gentoo-dev

From: Fabulous Zhang Zheng <zheng1181822466@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] dosym function in binary package ebuilds
Date: Fri, 22 Jul 2022 14:56:42
Message-Id: CAJwjFt1+=uxA++fvjppprHPhM4r9cxn-XqgLncdkzg6iPxuhkA@mail.gmail.com
1 Good evening, dear list
2
3 Most binary package ebuilds have such a *dosym* statement in src_install(),
4 take net-im/signal-desktop-bin as an example:
5
6 dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} (where the variable
7 is signal-desktop)
8
9 *dosym* creates a symlink of the binary under opt at /usr/bin/ according to
10 devmanaul.
11
12 I'm confused about the "../../", since S="${workdir}", the correct way
13 seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
14
15 It's much appreciated if anyone could help ; )
16
17
18 └── signal-desktop-bin-5.50.0
19 ├── distdir
20 │ └── signal-desktop_5.50.0_amd64.deb ->
21 /var/cache/distfiles/signal-desktop_5.50.0_amd64.deb
22 ├── files -> /var/db/repos/gentoo/net-im/signal-desktop-bin/files
23 ├── homedir
24 ├── temp
25 │ ├── build.log
26 │ ├── eclass-debug.log
27 │ ├── environment
28 │ └── logging
29 └── work
30 ├── opt
31 └── usr

Replies

Subject Author
Re: [gentoo-dev] dosym function in binary package ebuilds "Arsen Arsenović" <arsen@××××××.me>
Re: [gentoo-dev] dosym function in binary package ebuilds Alexey Zapparov <alexey@××××××××.com>