While that might work for them, it obviously doesn't at a higherGo for it, I think that there is no good solution for this case.
packaging level. Per Policy Section 10.1, I'm bringing this to d-devel
for any comments or suggestions on my plan for packaging the MinIO
Client. Following what several other distributions have done[2], I'm
planning to name the source/binary packages "minio-client" and the
binary provided from that package will be `mcli`.
On Apr 21, Mathias Gibbens <gibmat@debian.org> wrote:
While that might work for them, it obviously doesn't at a higher
packaging level. Per Policy Section 10.1, I'm bringing this to d-devel
for any comments or suggestions on my plan for packaging the MinIO
Client. Following what several other distributions have done[2], I'm
planning to name the source/binary packages "minio-client" and the
binary provided from that package will be `mcli`.
Go for it, I think that there is no good solution for this case.
Everybody who cares then will manually create a mc -> mcli symlink.
Marco d'Itri <md@Linux.IT> writes:
On Apr 21, Mathias Gibbens <gibmat@debian.org> wrote:
While that might work for them, it obviously doesn't at a higher packaging level. Per Policy Section 10.1, I'm bringing this to d-devel for any comments or suggestions on my plan for packaging the MinIO Client. Following what several other distributions have done[2], I'm planning to name the source/binary packages "minio-client" and the
binary provided from that package will be `mcli`.
+1
Go for it, I think that there is no good solution for this case.
Everybody who cares then will manually create a mc -> mcli symlink.
Several Homebrew packages uses an approach that I regard as superior to
what the debian ecosystem provides for this problem: putting files in a
path that users can add to their $PATH to get upstreams' desired binary
name, when there is a conflict with a historically established name. So
for this example, minio-client could create a symlink like this
/usr/libexec/minio-client/bin/mc -> /usr/bin/mcli
and users who really want the upstream behaviour can solve this by
modifying environment variables.
Mathias Gibbens <gibmat@debian.org> writes:
On Sun, 2024-04-21 at 18:47 +0200, Simon Josefsson wrote:...
/usr/libexec/minio-client/bin/mc -> /usr/bin/mcli
Might I suggest that the link goes the other way, so that the symlink
lives in /usr/bin? That way the existence of the lib directory is
somewhat self-documenting.
If you're looking for examples, it seems that fd-find and binutils-avr
do something like this (although they seem to be linking into ../lib/ presumably for historical reasons).
On Sun, 2024-04-21 at 18:47 +0200, Simon Josefsson wrote:...
/usr/libexec/minio-client/bin/mc -> /usr/bin/mcli
Philip Hands <phil@hands.com> writes:
Might I suggest that the link goes the other way, so that the symlink
lives in /usr/bin? That way the existence of the lib directory is
somewhat self-documenting.
I'm also not sure where a good path component to store such binaries are, libexec or lib? Or share?
Go for it, I think that there is no good solution for this case.
Everybody who cares then will manually create a mc -> mcli symlink.
On Mon, 22 Apr 2024 at 09:44:12 +0200, Simon Josefsson wrote:
Philip Hands <phil@hands.com> writes:
Might I suggest that the link goes the other way, so that the symlink lives in /usr/bin? That way the existence of the lib directory is somewhat self-documenting.
Having the real executable in /usr/lib(exec) and the symlink in /usr/bin
also makes it possible to be somewhat consistent with packages that don't normally add themselves to the PATH at all, but could be added to the PATH
by a system integrator, sysadmin or user on specialized systems.
/usr/libexec/minio-client/bin/mc -> /usr/bin/mcli
Might I suggest that the link goes the other way, so that the symlink
lives in /usr/bin? That way the existence of the lib directory is
somewhat self-documenting.
Am Mon, Apr 22, 2024 at 09:28:29AM +0200 schrieb Philip Hands:
/usr/libexec/minio-client/bin/mc -> /usr/bin/mcli
Might I suggest that the link goes the other way, so that the symlink
lives in /usr/bin? That way the existence of the lib directory is
somewhat self-documenting.
That's an interesting hint. In Debian Med we are using a common
directories
/usr/lib/debian-med/bin/
/usr/lib/debian-med/man/
where those binaries will be moved to and have some kind of a
README.Debian template[1]. Changing this to have the real executable / manpage to /usr/lib/debian-med/* makes sense.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 21:14:17 |
Calls: | 6,707 |
Calls today: | 1 |
Files: | 12,239 |
Messages: | 5,351,864 |