diff options
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb index cf833de22c..7d151bb9dc 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2408.0.bb | |||
@@ -100,16 +100,18 @@ do_install_ptest() { | |||
100 | # some tests need to write to this directory as user 'daemon' | 100 | # some tests need to write to this directory as user 'daemon' |
101 | chmod 777 -R ${D}${PTEST_PATH}/tests | 101 | chmod 777 -R ${D}${PTEST_PATH}/tests |
102 | 102 | ||
103 | # do NOT need to rebuild Makefile itself | 103 | sed -e '# do NOT need to rebuild Makefile itself' \ |
104 | sed -i 's/^Makefile:.*$/Makefile:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 104 | -e 's/^Makefile:.*$/Makefile:/' \ |
105 | # do NOT need to rebuild $(check_PROGRAMS) | 105 | -e '# do NOT need to rebuild $(check_PROGRAMS)' \ |
106 | sed -i 's/^check-TESTS:.*$/check-TESTS:/' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 106 | -e 's/^check-TESTS:.*$/check-TESTS:/' \ |
107 | 107 | -e '# fix the srcdir, top_srcdir' \ | |
108 | # fix the srcdir, top_srcdir | 108 | -e 's,^\(srcdir = \).*,\1${PTEST_PATH}/tests,' \ |
109 | sed -i 's,^\(srcdir = \).*,\1${PTEST_PATH}/tests,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 109 | -e 's,^\(top_srcdir = \).*,\1${PTEST_PATH}/tests,' \ |
110 | sed -i 's,^\(top_srcdir = \).*,\1${PTEST_PATH}/tests,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 110 | -e '# fix the abs_top_builddir' \ |
111 | # fix the abs_top_builddir | 111 | -e 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' \ |
112 | sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile | 112 | -e '# fix the path to test-driver' \ |
113 | -e '/^\(SH_\)\?LOG_DRIVER/s/(top_srcdir)/(top_builddir)/' \ | ||
114 | -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile | ||
113 | 115 | ||
114 | # install test-driver | 116 | # install test-driver |
115 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} | 117 | install -m 644 ${S}/test-driver ${D}${PTEST_PATH} |