summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/daemontools/daemontools/0001-daemontools-native-Fix-a-warning.patch26
-rw-r--r--meta-oe/recipes-support/daemontools/daemontools/cross-compile.patch4
-rw-r--r--meta-oe/recipes-support/daemontools/daemontools_0.76.bb24
3 files changed, 8 insertions, 46 deletions
diff --git a/meta-oe/recipes-support/daemontools/daemontools/0001-daemontools-native-Fix-a-warning.patch b/meta-oe/recipes-support/daemontools/daemontools/0001-daemontools-native-Fix-a-warning.patch
deleted file mode 100644
index 8d9577d5ff..0000000000
--- a/meta-oe/recipes-support/daemontools/daemontools/0001-daemontools-native-Fix-a-warning.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From a43a3327ccd4b06a3bcf0c87d518a97c6b39ac02 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Sat, 6 Aug 2016 02:09:53 +0900
4Subject: [PATCH] daemontools: Fix a warning
5
6To fix the warning as following:
7
8WARNING: daemontools-native-0.76-r0 do_populate_sysroot: File '/build-poky/tmp/sysroots/x86_64-linux/usr/bin/chkshsgr' from daemontools-native was already stripped, this will prevent future debugging!
9
10Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
11---
12 src/conf-ld | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/conf-ld b/src/conf-ld
16index 59a0de7..1d0518a 100644
17--- a/src/conf-ld
18+++ b/src/conf-ld
19@@ -1,3 +1,3 @@
20-gcc -s
21+gcc
22
23 This will be used to link .o files into an executable.
24--
252.7.4
26
diff --git a/meta-oe/recipes-support/daemontools/daemontools/cross-compile.patch b/meta-oe/recipes-support/daemontools/daemontools/cross-compile.patch
index f164c2d10d..9c07d758ae 100644
--- a/meta-oe/recipes-support/daemontools/daemontools/cross-compile.patch
+++ b/meta-oe/recipes-support/daemontools/daemontools/cross-compile.patch
@@ -30,7 +30,7 @@ diff -Nurp daemontools-0.76.orig/src/Makefile daemontools-0.76/src/Makefile
30 hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \ 30 hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \
31 tryshsgr.c warn-shsgr 31 tryshsgr.c warn-shsgr
32- ./chkshsgr || ( cat warn-shsgr; exit 1 ) 32- ./chkshsgr || ( cat warn-shsgr; exit 1 )
33+ chkshsgr || ( cat warn-shsgr; exit 1 ) 33+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
34 ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h 34 ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
35 35
36 haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c 36 haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c
@@ -39,7 +39,7 @@ diff -Nurp daemontools-0.76.orig/src/Makefile daemontools-0.76/src/Makefile
39 readproctitle rts.tests setlock setuidgid softlimit supervise svc \ 39 readproctitle rts.tests setlock setuidgid softlimit supervise svc \
40 svok svscan svscanboot svstat tai64n tai64nlocal 40 svok svscan svscanboot svstat tai64n tai64nlocal
41- env - /bin/sh rts.tests 2>&1 | cat -v > rts 41- env - /bin/sh rts.tests 2>&1 | cat -v > rts
42+ echo "Warning: We can not run test on cross target." 42+ echo "Warning: We can not run test on cross target. - ignoring env - /bin/sh rts.tests 2>&1 | cat -v > rts"
43 43
44 scan_ulong.o: compile scan.h scan_ulong.c 44 scan_ulong.o: compile scan.h scan_ulong.c
45 ./compile scan_ulong.c 45 ./compile scan_ulong.c
diff --git a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
index d674e03781..b99116da70 100644
--- a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
+++ b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
@@ -16,24 +16,18 @@ LIC_FILES_CHKSUM = "file://src/prot.c;beginline=1;endline=1;md5=96964cadf07e8f8c
16LICENSE = "PD" 16LICENSE = "PD"
17 17
18SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \ 18SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \
19 file://0001-error.h-include-errno.h-instead-of-extern-int.diff \ 19 file://0001-error.h-include-errno.h-instead-of-extern-int.diff \
20 file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff " 20 file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff \
21 21 file://cross-compile.patch \
22SRC_URI_append_class-target = "file://cross-compile.patch \ 22 file://0001-daemontools-Fix-QA-Issue.patch \
23 file://0001-daemontools-Fix-QA-Issue.patch " 23"
24
25SRC_URI_append_class-native = "file://0001-daemontools-native-Fix-a-warning.patch "
26 24
27SRC_URI[md5sum] = "1871af2453d6e464034968a0fbcb2bfc" 25SRC_URI[md5sum] = "1871af2453d6e464034968a0fbcb2bfc"
28SRC_URI[sha256sum] = "a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f" 26SRC_URI[sha256sum] = "a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f"
29 27
30S = "${WORKDIR}/admin/${BPN}-${PV}" 28S = "${WORKDIR}/admin/${BP}"
31
32DEPENDS += "daemontools-native"
33DEPENDS_class-native = ""
34 29
35do_compile() { 30do_compile() {
36 echo "int main() { return 0; }" >${S}/src/chkshsgr.c
37 ./package/compile 31 ./package/compile
38} 32}
39 33
@@ -41,12 +35,6 @@ do_install() {
41 install -d ${D}/${bindir} 35 install -d ${D}/${bindir}
42} 36}
43 37
44do_install_append_class-native() {
45 install -m 755 ${S}/compile/chkshsgr ${D}/${bindir}
46}
47
48do_install_append_class-target() { 38do_install_append_class-target() {
49 install -m755 ${S}/command/* ${D}/${bindir} 39 install -m755 ${S}/command/* ${D}/${bindir}
50} 40}
51
52BBCLASSEXTEND = "native"