GNOME Bugzilla – Bug 759824
build: Use symlinks for nmtui
Last modified: 2016-01-07 16:48:40 UTC
Created attachment 317834 [details] [review] [PATCH] build: Use symlinks for nmtui Make /usr/bin/nmtui-* symbolic links to /usr/bin/nmtui. Using symlinks makes it simpler to spot then hard links. Also, when building the package on Debian, the package uses DESTDIR= as part of the build process and then copies the files into the final binary packages. Using hard links results in file copies, i.e. wastes disk space. I've been shipping that patch for a while in Debian and would like to see it go upstream.
lgtm. But I forgot why they are symlinks in the first place. danw, do you know?
(In reply to Thomas Haller from comment #1) > lgtm. But I forgot why they are symlinks in the first place. I guess you mean "hard links"?
(In reply to Thomas Haller from comment #1) > lgtm. But I forgot why they are [hard links] in the first place. There was no reason. That's how I happened to write it, and later when someone (actually, Michael I think) suggested we should use symlinks instead, I checked what other packages did, and found little consistency, so we left it as it was. Though, scanning /bin now, it does look like there are more symlinks than hard links.
If there aren't other constraints, maybe I prefer symlinks over hard links because it's more explicit from a 'ls' that they point to the same file. So patch LGTM.
applied: master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=39fc73eed9a2f63638f8736b3f9f9d4e816207db nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=c96b1ca343bc0f66f733dcd3bd41ef0c7a45b506 After discussing on IRC, I pushed a follow-up patch which gets rid of the "cd" http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=39d6976e89e97249cda9a2d915bc399541ee9d46