[Buildroot] [PATCH] check-package: support symlinks to the script
Ricardo Martincoski
ricardo.martincoski at gmail.com
Sun Apr 1 20:40:42 UTC 2018
Hello,
On Sun, Apr 01, 2018 at 05:05 PM, Arnout Vandecappelle (Essensium/Mind) wrote:
> The check-package script finds base_dir (= the Buildroot directory) and
> cd's into it. To be able to support relative paths as arguments, it
> first recalculates the arguments relative to base_dir.
>
> However, if there is a symlink anywhere on the path to the
> check-package script, the relative paths will be wrong. To solve this,
> use realpath() instead of abspath(), so symlinks are resolved before
> calculating the relative path.
>
> Cc: Ricardo Martincoski <ricardo.martincoski at gmail.com>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Acked-by: Ricardo Martincoski <ricardo.martincoski at gmail.com>
Sorry. I forgot about this use case.
Thank you for fixing it.
Regards,
Ricardo
More information about the buildroot
mailing list