[oe-commits] [meta-openembedded] 01/07: meta-oe: onig: avoid using 'install' with both -D and -t options

git at git.openembedded.org git at git.openembedded.org
Fri Feb 21 22:21:52 UTC 2020


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

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 7513625706f28ef7bed57fb679d755ae0398a087
Author: Mark Asselstine <mark.asselstine at windriver.com>
AuthorDate: Fri Feb 21 10:20:56 2020 -0500

    meta-oe: onig: avoid using 'install' with both -D and -t options
    
    Older versions of 'install' (prior to 8.23) do not allow the -D and -t
    options to be used together. (see coreutils commit 15d092f94a3a
    [install: allow options -D and -t to be used together]). On build
    hosts such as CentOS7, which has install v8.22, we therefor see a
    failure: install:
    
        failed to access ‘...onig/6.9.4-r0/image/usr/lib64/onig/ptest/tests/’:
            No such file or directory
    
    We definitely don't want to avoid using useful features of tools but
    throughout meta-openembedded the mkdir approach is used so let's stick
    to it and avoid causing undo issues at the expense of one extra line
    of code.
    
    Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-support/onig/onig_6.9.4.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/onig/onig_6.9.4.bb b/meta-oe/recipes-support/onig/onig_6.9.4.bb
index cfa86f0..50d9f52 100644
--- a/meta-oe/recipes-support/onig/onig_6.9.4.bb
+++ b/meta-oe/recipes-support/onig/onig_6.9.4.bb
@@ -28,5 +28,6 @@ do_compile_ptest() {
 }
 
 do_install_ptest() {
-    install -Dm0755 -t ${D}${PTEST_PATH}/tests/ ${B}/test/.libs/*
+    mkdir -p ${D}${PTEST_PATH}/tests
+    install -m 0755 -t ${D}${PTEST_PATH}/tests/ ${B}/test/.libs/*
 }

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


More information about the Openembedded-commits mailing list