rsyslog: fix wrong option of PACKAGECONFIG[valgrind]
PATCH 1/1 rsyslog: fix wrong option of PACKAGECONFIG[valgrind]
The source configure.ac shows:
--enable-valgrind: Enable somes special code that rsyslog core developers
consider useful for testing.Do NOT use if you don't exactly know what you are doing, except if told so by rsyslog developers.
NOT to be used by distro maintainers for building regular packages.
--without-valgrind-testbench:
Don't use valgrind in testbench
PACKAGECONFIG[valgrind] should use '--without-valgrind-testbench' And after this fix, the code which removes the valgrind depended ptest cases for arm,mips is no longer needed.
--- meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +1 -7
@@ -74,7 +74,7 @@ PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," -PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," +PACKAGECONFIG[valgrind] = ",--without-valgrind-testbench,valgrind," TESTDIR = "tests" do_compile_ptest() {
@@ -98,12 +98,6 @@ do_install_ptest() { # fix the abs_top_builddir sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - # valgrind is not compatible with arm and mips, - # so remove related test cases if there is no valgrind. - if [ x${VALGRIND} = x ]; then - sed -i '/udp-msgreduc-/d' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - fi - # install test-driver install -m 644 ${S}/test-driver ${D}${PTEST_PATH}
Signature · 1 line
2.23.0
this seems to be applicable on master as well. Can you check if we need it on master.
Quoted 50 lines · haiqing
The source configure.ac shows:
--enable-valgrind: Enable somes special code that rsyslog core developers
consider useful for testing.Do NOT use if you don't exactly know what you are doing, except if told so by rsyslog developers.
NOT to be used by distro maintainers for building regular packages.--without-valgrind-testbench:
Don't use valgrind in testbenchPACKAGECONFIG[valgrind] should use '--without-valgrind-testbench' And after this fix, the code which removes the valgrind depended ptest cases for arm,mips is no longer needed.
Signed-off-by Haiqing Bai <[email protected]>--- meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +1
-7@@ -74,7 +74,7 @@ PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," -PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," +PACKAGECONFIG[valgrind] = ",--without-valgrind-testbench,valgrind," TESTDIR = "tests" do_compile_ptest() {@@ -98,12 +98,6 @@ do_install_ptest() { # fix the abs_top_builddir sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - # valgrind is not compatible with arm and mips, - # so remove related test cases if there is no valgrind. - if [ x${VALGRIND} = x ]; then - sed -i '/udp-msgreduc-/d' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - fi - # install test-driver install -m 644 ${S}/test-driver ${D}${PTEST_PATH}
Yes, master also need this and the patch can be applied on master. Thanks.
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Wednesday, September 16, 2020 12:15 AM
To: Bai, Haiqing <[email protected]>; [email protected]
Subject: Re: [oe][meta-oe][zeus][PATCH] rsyslog: fix wrong option of PACKAGECONFIG[valgrind]
this seems to be applicable on master as well. Can you check if we need it on master.
Quoted 52 lines · haiqing
The source configure.ac shows:
--enable-valgrind: Enable somes special code that rsyslog core developers
consider useful for testing.Do NOT use if you don't exactly know what you are doing, except if told so by rsyslog developers.
NOT to be used by distro maintainers for building regular packages.--without-valgrind-testbench:
Don't use valgrind in testbenchPACKAGECONFIG[valgrind] should use '--without-valgrind-testbench' And after this fix, the code which removes the valgrind depended ptest cases for arm,mips is no longer needed.
Signed-off-by Haiqing Bai <[email protected]>--- meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +1
-1@@ -74,7 +74,7 @@ PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," -PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," +PACKAGECONFIG[valgrind] = ",--without-valgrind-testbench,valgrind," TESTDIR = "tests" do_compile_ptest() {@@ -98,12 +98,6 @@ do_install_ptest() { # fix the abs_top_builddir sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,'${D}${PTEST_PATH}/${TESTDIR}/Makefile
meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +0
-6- # valgrind is not compatible with arm and mips, - # so remove related test cases if there is no valgrind. - if [ x${VALGRIND} = x ]; then - sed -i '/udp-msgreduc-/d' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - fi - # install test-driver install -m 644 ${S}/test-driver ${D}${PTEST_PATH}
Quoted 3 lines · Haiqing
Yes, master also need this and the patch can be applied on master. Thanks.
I have staged it for master. I think it will be needed on dunfell too Armin.
Quoted 61 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Khem Raj
Sent: Wednesday, September 16, 2020 12:15 AM
To: Bai, Haiqing <[email protected]>; [email protected]
Subject: Re: [oe][meta-oe][zeus][PATCH] rsyslog: fix wrong option of PACKAGECONFIG[valgrind]this seems to be applicable on master as well. Can you check if we need it on master.
Quoted 52 lines · haiqing
The source configure.ac shows:
--enable-valgrind: Enable somes special code that rsyslog core developers
consider useful for testing.Do NOT use if you don't exactly know what you are doing, except if told so by rsyslog developers.
NOT to be used by distro maintainers for building regular packages.--without-valgrind-testbench:
Don't use valgrind in testbenchPACKAGECONFIG[valgrind] should use '--without-valgrind-testbench' And after this fix, the code which removes the valgrind depended ptest cases for arm,mips is no longer needed.
Signed-off-by Haiqing Bai <[email protected]>--- meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +1
-1@@ -74,7 +74,7 @@ PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5," PACKAGECONFIG[postgresql] = "--enable-pgsql,--disable-pgsql,postgresql," PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," -PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," +PACKAGECONFIG[valgrind] = ",--without-valgrind-testbench,valgrind," TESTDIR = "tests" do_compile_ptest() {@@ -98,12 +98,6 @@ do_install_ptest() { # fix the abs_top_builddir sed -i 's,^\(abs_top_builddir = \).*,\1${PTEST_PATH}/,'${D}${PTEST_PATH}/${TESTDIR}/Makefile
meta-oe/recipes-extended/rsyslog/rsyslog_8.1910.0.bb +0
-6- # valgrind is not compatible with arm and mips, - # so remove related test cases if there is no valgrind. - if [ x${VALGRIND} = x ]; then - sed -i '/udp-msgreduc-/d' ${D}${PTEST_PATH}/${TESTDIR}/Makefile - fi - # install test-driver install -m 644 ${S}/test-driver ${D}${PTEST_PATH}