[oe-commits] [openembedded-core] 01/02: dnf: Use lnr to create relative symlinks

git at git.openembedded.org git at git.openembedded.org
Thu Mar 30 09:03:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit dd162286921ccac4981e091de1df4c36d5cfbf5b
Author: Serhii Popovych <spopovyc at cisco.com>
AuthorDate: Wed Mar 29 18:02:52 2017 +0000

    dnf: Use lnr to create relative symlinks
    
    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 at cisco.com>
    Signed-off-by: Serhii Popovych <spopovyc at cisco.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/dnf/dnf_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/dnf/dnf_git.bb b/meta/recipes-devtools/dnf/dnf_git.bb
index b6b6cea..1194928 100644
--- a/meta/recipes-devtools/dnf/dnf_git.bb
+++ b/meta/recipes-devtools/dnf/dnf_git.bb
@@ -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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list