]> code.ossystems Code Review - openembedded-core.git/commitdiff
dnf: Use lnr to create relative symlinks
authorSerhii Popovych <spopovyc@cisco.com>
Wed, 29 Mar 2017 18:02:52 +0000 (18:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Mar 2017 08:58:59 +0000 (09:58 +0100)
Make use of lnr while creating relative symlinks to enable
builds on host with old ln that does not support -r option.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dnf/dnf_git.bb

index b6b6ceaff13e7336c274ad1af9f63d49d0a6e1f5..1194928ac91bd591d59bc338fc04a459f6420d75 100644 (file)
@@ -31,8 +31,8 @@ RDEPENDS_${PN}_class-target += "python3-core python3-codecs python3-netclient py
 # .spec file in dnf source tree does (and then Fedora and dnf documentation
 # says that dnf binary is plain 'dnf').
 do_install_append() {
-        ln -s -r ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf
-        ln -s -r ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic
+        lnr ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf
+        lnr ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic
 }
 
 # Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in