i'm curious about RH packaging policy that dictates that some
command variants are packaged for fedora to install with symlinks
and others with hardlinks.

  trivial example in /usr/bin on my fedora 27 system:

  -rwsr-xr-x.   1 root root        52984 Aug  2  2017 at
  lrwxrwxrwx.   1 root root            2 Aug  2  2017 atq -> at
  lrwxrwxrwx.   1 root root            2 Aug  2  2017 atrm -> at

so even though all of those "commands" are in the very same directory,
atq and atrm are supported via symlinks, not hardlinks.

  OTOH, consider the "git" command, also in /usr/bin:

  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git

as you can see, there are 116 hardlinks to that executable, pretty
much all of them in /usr/libexec/git-core:

  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git
  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-add
  -rwxr-xr-x.   1 root root   41441 Feb 16 15:03 git-add--interactive
  -rwxr-xr-x.   3 root root 2273360 Feb 16 15:03 git-am
  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-annotate
  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-apply
  -rwxr-xr-x. 116 root root 2273360 Feb 16 15:03 git-archive
  ... big snip ...

is there a reason that "at" uses symlinks, while "git" installs with
hardlinks? one would imagine that it would be the other way around --
given that the "at" variations are all in the same directory,
hardlinks would seem to be the better choice since there is no
possibility of crossing filesystem boundaries.

  also, what if i manually partitioned while installing, and put
/usr/bin and /usr/libexec in separate partitions? (yes, i realize
that's not the standard these days -- all of /usr defaults to a single
partition -- but i'm assuming i still have the freedom to do something
that unwise.) would git then switch to symlinks to support all those
command name variants?

  just curious about how decisions like this are made WRT to
packaging.

rday
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to