I'm confused about the "../../", since S="${workdir}", the correct
way seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
Good evening, dear list
Most binary package ebuilds have such a *dosym* statement in
src_install(), take net-im/signal-desktop-bin as an example:
dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} (where the variable
is signal-desktop)
*dosym* creates a symlink of the binary under opt at /usr/bin/ according
to devmanaul.
I'm confused about the "../../", since S="${workdir}", the correct way
seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
It's much appreciated if anyone could help ; )
└── signal-desktop-bin-5.50.0
├── distdir
│ └── signal-desktop_5.50.0_amd64.deb -> /var/cache/distfiles/signal-desktop_5.50.0_amd64.deb
├── files -> /var/db/repos/gentoo/net-im/signal-desktop-bin/files
├── homedir
├── temp
│ ├── build.log
│ ├── eclass-debug.log
│ ├── environment
│ └── logging
└── work
├── opt
└── usr
├── homedir<br> ├── temp<br> │ ├── build.log<br> │ ├── eclass-debug.log<br> │ ├── environment<br> │ └── logging<br> └── work<br> ├──opt<br> └── usr<br></div><div><br></div></div> </blockquote></div>
`dosym target link_name` creates a symlink. Under the hood it calls `ln`. First argument may be either absolute path or relative to link_name. Conventionally relative targets are used.
On Fri, 22 Jul 2022, 16:56 Fabulous Zhang Zheng, <
zheng1181822466@gmail.com> wrote:
Good evening, dear list
Most binary package ebuilds have such a *dosym* statement in
src_install(), take net-im/signal-desktop-bin as an example:
dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} (where the variable
is signal-desktop)
*dosym* creates a symlink of the binary under opt at /usr/bin/ according
to devmanaul.
I'm confused about the "../../", since S="${workdir}", the correct way
seems to be "dosym ./opt/Signal/xxx /usr/bin/xxx"
It's much appreciated if anyone could help ; )
└── signal-desktop-bin-5.50.0
├── distdir
│ └── signal-desktop_5.50.0_amd64.deb ->
/var/cache/distfiles/signal-desktop_5.50.0_amd64.deb
├── files -> /var/db/repos/gentoo/net-im/signal-desktop-bin/files >> ├── homedir
├── temp
│ ├── build.log
│ ├── eclass-debug.log
│ ├── environment
│ └── logging
└── work
├── opt
└── usr
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 18:46:04 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,093 |