diff options
-rw-r--r-- | meta-oe/recipes-extended/boinc/boinc-client/0001-scripts-Do-not-check-for-files-on-build-host.patch | 52 | ||||
-rw-r--r-- | meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb | 18 |
2 files changed, 60 insertions, 10 deletions
diff --git a/meta-oe/recipes-extended/boinc/boinc-client/0001-scripts-Do-not-check-for-files-on-build-host.patch b/meta-oe/recipes-extended/boinc/boinc-client/0001-scripts-Do-not-check-for-files-on-build-host.patch new file mode 100644 index 0000000000..6d9e94cb8a --- /dev/null +++ b/meta-oe/recipes-extended/boinc/boinc-client/0001-scripts-Do-not-check-for-files-on-build-host.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 8a8305c78143438e2bd497d55188a0da3442db08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 27 Apr 2022 09:11:38 -0700 | ||
4 | Subject: [PATCH] scripts: Do not check for files on build host | ||
5 | |||
6 | This will result in varied behaviour depending upon what kind of host is | ||
7 | used to build it. We dont want that. Instead check for these files and | ||
8 | dirs in staging area and create these markers in recipe via a | ||
9 | do_install_prepend to aide install piece a bit here ( systemd vs | ||
10 | sysvinit ) etc. | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE-Specific] | ||
13 | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | client/scripts/Makefile.am | 10 +++++----- | ||
17 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
18 | |||
19 | diff --git a/client/scripts/Makefile.am b/client/scripts/Makefile.am | ||
20 | index 2a53203d84..62a0defa93 100644 | ||
21 | --- a/client/scripts/Makefile.am | ||
22 | +++ b/client/scripts/Makefile.am | ||
23 | @@ -2,21 +2,21 @@ | ||
24 | |||
25 | install-exec-hook: | ||
26 | chmod +x boinc-client | ||
27 | - if [ -d /etc/init.d ] ; then \ | ||
28 | + if [ -d $(DESTDIR)/etc/init.d ] ; then \ | ||
29 | $(INSTALL) -d $(DESTDIR)$(sysconfdir)/init.d ; \ | ||
30 | $(INSTALL) -b boinc-client $(DESTDIR)$(sysconfdir)/init.d/boinc-client ; \ | ||
31 | fi | ||
32 | - if [ -d /usr/lib/systemd/system ] ; then \ | ||
33 | + if [ -d $(DESTDIR)/usr/lib/systemd/system ] ; then \ | ||
34 | $(INSTALL) -d $(DESTDIR)/usr/lib/systemd/system/ ; \ | ||
35 | $(INSTALL_DATA) boinc-client.service $(DESTDIR)/usr/lib/systemd/system/boinc-client.service ; \ | ||
36 | - elif [ -d /lib/systemd/system ] ; then \ | ||
37 | + elif [ -d $(DESTDIR)/lib/systemd/system ] ; then \ | ||
38 | $(INSTALL) -d $(DESTDIR)/lib/systemd/system/ ; \ | ||
39 | $(INSTALL_DATA) boinc-client.service $(DESTDIR)/lib/systemd/system/boinc-client.service ; \ | ||
40 | fi | ||
41 | - if [ -d /etc/sysconfig ] ; then \ | ||
42 | + if [ -d $(DESTDIR)/etc/sysconfig ] ; then \ | ||
43 | $(INSTALL) -d $(DESTDIR)$(sysconfdir)/sysconfig ; \ | ||
44 | $(INSTALL_DATA) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/sysconfig/boinc-client ; \ | ||
45 | - elif [ -d /etc/default ] ; then \ | ||
46 | + elif [ -d $(DESTDIR)/etc/default ] ; then \ | ||
47 | $(INSTALL) -d $(DESTDIR)$(sysconfdir)/default ; \ | ||
48 | $(INSTALL_DATA) $(srcdir)/boinc-client.conf $(DESTDIR)$(sysconfdir)/default/boinc-client ; \ | ||
49 | else \ | ||
50 | -- | ||
51 | 2.36.0 | ||
52 | |||
diff --git a/meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb b/meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb index abcb304d30..8f85a508e7 100644 --- a/meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb +++ b/meta-oe/recipes-extended/boinc/boinc-client_7.18.1.bb | |||
@@ -35,6 +35,7 @@ SRC_URI = "git://github.com/BOINC/boinc;protocol=https;branch=${BRANCH} \ | |||
35 | file://boinc-AM_CONDITIONAL.patch \ | 35 | file://boinc-AM_CONDITIONAL.patch \ |
36 | file://gtk-configure.patch \ | 36 | file://gtk-configure.patch \ |
37 | file://4563.patch \ | 37 | file://4563.patch \ |
38 | file://0001-scripts-Do-not-check-for-files-on-build-host.patch \ | ||
38 | " | 39 | " |
39 | 40 | ||
40 | inherit gettext autotools pkgconfig features_check systemd | 41 | inherit gettext autotools pkgconfig features_check systemd |
@@ -75,17 +76,14 @@ do_compile:prepend () { | |||
75 | sed -i -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${B}/libtool | 76 | sed -i -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${B}/libtool |
76 | } | 77 | } |
77 | 78 | ||
78 | do_install:append() { | 79 | do_install:prepend() { |
79 | if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)} -a \ | 80 | # help script install a bit to do right thing for OE |
80 | -e ${D}${nonarch_libdir}/systemd/system/boinc-client.service; then | 81 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
81 | install -d ${D}${systemd_system_unitdir} | 82 | mkdir -p ${D}${systemd_system_unitdir} |
82 | mv \ | 83 | else |
83 | ${D}${nonarch_libdir}/systemd/system/boinc-client.service \ | 84 | mkdir -p ${D}${sysconfdir}/init.d |
84 | ${D}${systemd_system_unitdir}/boinc-client.service | ||
85 | rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}/systemd/system \ | ||
86 | ${D}${nonarch_libdir}/systemd \ | ||
87 | ${D}${nonarch_libdir} | ||
88 | fi | 85 | fi |
86 | mkdir -p ${D}${sysconfdir}/default | ||
89 | } | 87 | } |
90 | 88 | ||
91 | SYSTEMD_SERVICE:${PN} = "boinc-client.service" | 89 | SYSTEMD_SERVICE:${PN} = "boinc-client.service" |