mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-16 18:40:03 +00:00
314df95684
* Fix prototype declaration and too many arguments function errors due to outdated style
byte_chr.c:9:1: error: number of arguments doesn't match prototype
9 | {
| ^
In file included from byte_chr.c:3:
byte.h:6:21: error: prototype declaration
6 | extern unsigned int byte_chr();
| ^~~~~~~~
...
./compile buffer_get.c
buffer_get.c: In function 'oneread':
buffer_get.c:12:9: error: too many arguments to function 'op'; expected 0, have 3
12 | r = op(fd,buf,len);
| ^~ ~~
...
supervise.c: In function 'doit':
supervise.c:144:11: error: too many arguments to function 'wait_nohang'; expected 0, have 1
144 | r = wait_nohang(&wstat);
| ^~~~~~~~~~~ ~~~~~~
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
58 lines
2.2 KiB
BlitzBasic
58 lines
2.2 KiB
BlitzBasic
SUMMARY = "DJB daemontools"
|
|
HOMEPAGE = "http://cr.yp.to/daemontools.html"
|
|
DESCRIPTION = "supervise monitors a service. It starts the service and restarts the \
|
|
service if it dies. The companion svc program stops, pauses, or restarts \
|
|
the service on sysadmin request. The svstat program prints a one-line \
|
|
status report. \
|
|
multilog saves error messages to one or more logs. It optionally timestamps \
|
|
each line and, for each log, includes or excludes lines matching specified \
|
|
patterns. It automatically rotates logs to limit the amount of disk space \
|
|
used. If the disk fills up, it pauses and tries again, without losing any \
|
|
data."
|
|
|
|
SECTION = "System/Servers"
|
|
|
|
LIC_FILES_CHKSUM = "file://src/prot.c;beginline=1;endline=1;md5=96964cadf07e8f8c1e2ffb3b507dd647"
|
|
LICENSE = "PD"
|
|
|
|
DEPENDS += "coreutils"
|
|
|
|
SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \
|
|
file://0001-error.h-include-errno.h-instead-of-extern-int.diff \
|
|
file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff \
|
|
file://cross-compile.patch \
|
|
file://0001-daemontools-Fix-QA-Issue.patch \
|
|
file://warnings.patch \
|
|
file://0001-Fix-signature-of-main-function.patch \
|
|
file://0001-fix-prototype-declaration-with-gcc-15.patch \
|
|
"
|
|
|
|
SRC_URI[sha256sum] = "a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f"
|
|
|
|
UPSTREAM_CHECK_URI = "http://cr.yp.to/daemontools/install.html"
|
|
|
|
S = "${WORKDIR}/admin/${BP}"
|
|
|
|
do_compile() {
|
|
./package/compile
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}/${bindir}
|
|
}
|
|
|
|
do_install:append:class-target() {
|
|
install -m755 ${S}/command/* ${D}/${bindir}
|
|
}
|
|
|
|
inherit update-alternatives
|
|
ALTERNATIVE_PRIORITY = "100"
|
|
ALTERNATIVE:${PN} = "svc svok"
|
|
|
|
# http://errors.yoctoproject.org/Errors/Details/766886/
|
|
# pathexec_run.c:19:17: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
# pathexec_run.c:19:22: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
# pathexec_run.c:36:18: error: passing argument 2 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
# pathexec_run.c:36:23: error: passing argument 3 of 'execve' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
CC += "-Wno-error=incompatible-pointer-types"
|