[Buildroot] [PATCH] vim: install /bin/vi as a relative symlink
arnout at mind.be
Thu Jul 26 08:39:59 UTC 2018
On 24-07-18 10:30, Thomas Petazzoni wrote:
> On Tue, 24 Jul 2018 09:55:40 +0200, Arnout Vandecappelle wrote:
>> The thing is, I don't believe that relying on BR2_ROOTFS_MERGED_USR is the
>> right approach. I've had projects with a usr -> . symlink in a custom skeleton,
>> for instance. We could of course declare such a skeleton invalid, but I don't
>> think that it is checked currently. Also I can imagine that there could be other
>> custom skeleton layouts that could create problems.
>> We already use ln --relative in a few places, isn't that the easiest solution?
> ln --relative is not supported on old distros, we even have a patch on
> systemd to remove its use of ln --relative.
Crap, yes, I had done a quick grep, found some hits, and didn't notice it were
patches *removing* the --relative.
I would still very much prefer to create a relative symlink automagically. Some
1. Install a proper host-coreutils if the system-provided one is too old
(similar to cmake). Meh.
2. Always make absolute symlinks (pointing to target dir) and at some point call
https://github.com/brandt/symlinks to convert absolute to relative.
3. Make an 'ln' wrapper that converts absolute to relative, using e.g. the shell
scriptlet from .
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot