mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
initscripts: add function log_success_msg/log_failure_msg/log_warning_msg
* add function log_success_msg/log_failure_msg/log_warning_msg, some packages still use these functions, like mariadb, refer [1], without these function, with sysV init manager, mariadb will report error: root@qemux86-64:~# /etc/init.d/mysqld status /etc/init.d/mysqld: line 383: log_success_msg: command not found * remove RCONFLICTS with lsbinitscripts, LSB support already remove in [2] [1] https://github.com/MariaDB/server/blob/main/support-files/mysql.server.sh#L104 [2] https://git.openembedded.org/openembedded-core/commit/?id=fb064356af615d67d85b65942103bf943d84d290 [3] https://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html (From OE-Core rev: 1956cb8e04c586b555f51bc68b74ad5d5cf1a043) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
parent
2fe0f26f45
commit
35a23e1596
|
@ -92,3 +92,24 @@ passed() {
|
|||
echo -n -e "${BRACKET}[${SUCCESS} PASS ${BRACKET}]${NORMAL}"
|
||||
return $rc
|
||||
}
|
||||
|
||||
log_success_msg()
|
||||
{
|
||||
echo -n $@
|
||||
success
|
||||
echo
|
||||
}
|
||||
|
||||
log_failure_msg()
|
||||
{
|
||||
echo -n $@
|
||||
failure
|
||||
echo
|
||||
}
|
||||
|
||||
log_warning_msg()
|
||||
{
|
||||
echo -n $@
|
||||
warning
|
||||
echo
|
||||
}
|
||||
|
|
|
@ -54,7 +54,6 @@ RDEPENDS:${PN} = "initd-functions \
|
|||
# Recommend pn-functions so that it will be a preferred default provider for initd-functions
|
||||
RRECOMMENDS:${PN} = "${PN}-functions"
|
||||
RPROVIDES:${PN}-functions = "initd-functions"
|
||||
RCONFLICTS:${PN}-functions = "lsbinitscripts"
|
||||
FILES:${PN}-functions = "${sysconfdir}/init.d/functions*"
|
||||
FILES:${PN}-sushell = "${base_sbindir}/sushell"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user