summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-11-10 11:12:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-10 19:27:29 +0000
commitc0583c6bfc13c0f3031b8bc87407485b3fe9856f (patch)
tree3edadc5eeef4a38998b28c29c30e39738dcc01f3 /meta/recipes-core/ncurses
parent974df2f61c9c7fbdb79f825f1b8d70299b72fa2c (diff)
downloadpoky-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/ncurses')
-rw-r--r--meta/recipes-core/ncurses/ncurses.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 64cce329aa..3f04545465 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -242,10 +242,10 @@ do_install() {
242 mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir} 242 mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir}
243 rm ${D}${libdir}/libtinfo.so 243 rm ${D}${libdir}/libtinfo.so
244 244
245 # Use lnr to ensure this is a relative link despite absolute paths 245 # Use ln -rs to ensure this is a relative link despite absolute paths
246 # (as we can't know the relationship between base_libdir and libdir). 246 # (as we can't know the relationship between base_libdir and libdir).
247 # At some point we can rely on coreutils 8.16 which has ln -r. 247 # At some point we can rely on coreutils 8.16 which has ln -r.
248 lnr ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so 248 ln -rs ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so
249 fi 249 fi
250 if [ -d "${D}${includedir}/ncurses" ]; then 250 if [ -d "${D}${includedir}/ncurses" ]; then
251 for f in `find ${D}${includedir}/ncurses -name "*.h"` 251 for f in `find ${D}${includedir}/ncurses -name "*.h"`