diff options
author | Ross Burton <ross@burtonini.com> | 2021-11-10 11:12:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-10 19:27:29 +0000 |
commit | c0583c6bfc13c0f3031b8bc87407485b3fe9856f (patch) | |
tree | 3edadc5eeef4a38998b28c29c30e39738dcc01f3 /meta/recipes-core/os-release/os-release.bb | |
parent | 974df2f61c9c7fbdb79f825f1b8d70299b72fa2c (diff) | |
download | poky-c0583c6bfc13c0f3031b8bc87407485b3fe9856f.tar.gz |
meta: use ln -rs instead of lnr
lnr is a script in oe-core that creates relative symlinks, with the same
behaviour as `ln --relative --symlink`. It was added back in 2014[1] as
not all of the supported host distributions at the time shipped
coreutils 8.16, the first release with --relative.
However the oldest coreutils release in the supported distributions is
now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln.
[1] 6ae3b85eaffd1b0b6914422e8de7c1230723157d
(From OE-Core rev: 1ca455a98de4c713f58df0a537d4c982d256cd68)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/os-release/os-release.bb')
-rw-r--r-- | meta/recipes-core/os-release/os-release.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index 38ee4f993b..8847fe30c3 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb | |||
@@ -47,7 +47,7 @@ do_compile[vardeps] += "${OS_RELEASE_FIELDS}" | |||
47 | do_install () { | 47 | do_install () { |
48 | install -d ${D}${nonarch_libdir} ${D}${sysconfdir} | 48 | install -d ${D}${nonarch_libdir} ${D}${sysconfdir} |
49 | install -m 0644 os-release ${D}${nonarch_libdir}/ | 49 | install -m 0644 os-release ${D}${nonarch_libdir}/ |
50 | lnr ${D}${nonarch_libdir}/os-release ${D}${sysconfdir}/os-release | 50 | ln -rs ${D}${nonarch_libdir}/os-release ${D}${sysconfdir}/os-release |
51 | } | 51 | } |
52 | 52 | ||
53 | FILES:${PN} += "${nonarch_libdir}/os-release" | 53 | FILES:${PN} += "${nonarch_libdir}/os-release" |