summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-09-05 16:37:22 -0700
committerKhem Raj <raj.khem@gmail.com>2018-09-08 13:32:12 -0700
commit467fe56ba4c0d09c96612105a48bc7c9ab66cad5 (patch)
tree0d4d91f722be01b0ad0a76205c044cf1329bbc88 /meta-oe/recipes-extended
parent0eab9697b3f9cf9280fbfda5968ba2a6b8c51a39 (diff)
downloadmeta-openembedded-467fe56ba4c0d09c96612105a48bc7c9ab66cad5.tar.gz
boinc: Upgrade to 7.12
* Fixes build wth OpenSSL 1.1.x * Drop cross compile patch, not needed anymore * Package systemd support * Drop no-pie flags, works ok with PIE now * autotools-brokensep is no longer needed Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended')
-rw-r--r--meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch98
-rw-r--r--meta-oe/recipes-extended/boinc/boinc-client_7.12.bb (renamed from meta-oe/recipes-extended/boinc/boinc-client_7.6.33.bb)24
2 files changed, 16 insertions, 106 deletions
diff --git a/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch b/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch
deleted file mode 100644
index 287391a52..000000000
--- a/meta-oe/recipes-extended/boinc/boinc-client/cross-compile.patch
+++ /dev/null
@@ -1,98 +0,0 @@
1Remove rpath, its bad for cross compiling to encode
2build time rpaths
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5Upstream-Status: Pending
6
7Index: boinc-client_release-7.6-7.6.33/api/Makefile.am
8===================================================================
9--- boinc-client_release-7.6-7.6.33.orig/api/Makefile.am
10+++ boinc-client_release-7.6-7.6.33/api/Makefile.am
11@@ -43,18 +43,18 @@ endif
12
13 lib_LTLIBRARIES = libboinc_api.la
14 libboinc_api_la_SOURCES = $(api_files)
15-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
16+libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
17
18 if BUILD_GRAPHICS_API
19 lib_LTLIBRARIES += libboinc_graphics2.la
20 libboinc_graphics2_la_SOURCES = $(graphics2_files)
21 libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/samples/image_libs
22-libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION) -ljpeg
23+libboinc_graphics2_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -ljpeg
24 endif #BUILD_GRAPHICS_API
25
26 lib_LTLIBRARIES += libboinc_opencl.la
27 libboinc_opencl_la_SOURCES = $(opencl_files)
28-libboinc_opencl_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
29+libboinc_opencl_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
30
31 if INSTALL_HEADERS
32 ## install only headers that are meant for exporting the API !!
33Index: boinc-client_release-7.6-7.6.33/lib/Makefile.am
34===================================================================
35--- boinc-client_release-7.6-7.6.33.orig/lib/Makefile.am
36+++ boinc-client_release-7.6-7.6.33/lib/Makefile.am
37@@ -173,7 +173,7 @@ lib_LTLIBRARIES = libboinc.la
38 libboinc_la_SOURCES = $(generic_sources) $(mac_sources) $(win_sources)
39 libboinc_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
40 libboinc_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
41-libboinc_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
42+libboinc_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
43 libboinc_la_LIBADD =
44
45 if ENABLE_BOINCCRYPT
46@@ -181,7 +181,7 @@ lib_LTLIBRARIES += libboinc_crypt.la
47 libboinc_crypt_la_SOURCES = crypt.cpp
48 libboinc_crypt_la_CFLAGS = $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CFLAGS)
49 libboinc_crypt_la_CXXFLAGS = $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS) $(SSL_CXXFLAGS)
50-libboinc_crypt_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -static -version-number $(LIBBOINC_VERSION)
51+libboinc_crypt_la_LDFLAGS = -static -version-number $(LIBBOINC_VERSION)
52 libboinc_crypt_la_LIBADD =
53 endif
54
55@@ -190,7 +190,7 @@ lib_LTLIBRARIES += libboinc_fcgi.la
56 libboinc_fcgi_la_SOURCES = $(libfcgi_sources) $(mac_sources) $(win_sources)
57 libboinc_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
58 libboinc_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CXXFLAGS) $(PICFLAGS) $(PTHREAD_CFLAGS)
59-libboinc_fcgi_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
60+libboinc_fcgi_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
61 libboinc_fcgi_la_LIBADD =
62 endif
63 # end of "if ENABLE_FCGI"
64Index: boinc-client_release-7.6-7.6.33/sched/Makefile.am
65===================================================================
66--- boinc-client_release-7.6-7.6.33.orig/sched/Makefile.am
67+++ boinc-client_release-7.6-7.6.33/sched/Makefile.am
68@@ -26,7 +26,7 @@ lib_LTLIBRARIES = libsched.la
69 libsched_la_SOURCES = $(libsched_sources)
70 libsched_la_CFLAGS = $(AM_CPPFLAGS)
71 libsched_la_CXXFLAGS = $(AM_CPPFLAGS)
72-libsched_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
73+libsched_la_LDFLAGS= -version-number $(LIBBOINC_VERSION)
74 libsched_la_LIBADD= $(SSL_LIBS)
75
76 ## install only headers that are meant for exporting the API !!
77@@ -48,7 +48,7 @@ lib_LTLIBRARIES += libsched_fcgi.la
78 libsched_fcgi_la_SOURCES = $(libsched_sources)
79 libsched_fcgi_la_CFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
80 libsched_fcgi_la_CXXFLAGS = -D_USING_FCGI_ $(AM_CPPFLAGS)
81-libsched_fcgi_la_LDFLAGS= -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
82+libsched_fcgi_la_LDFLAGS= -version-number $(LIBBOINC_VERSION)
83 libsched_fcgi_la_LIBADD=
84
85 endif
86Index: boinc-client_release-7.6-7.6.33/zip/Makefile.am
87===================================================================
88--- boinc-client_release-7.6-7.6.33.orig/zip/Makefile.am
89+++ boinc-client_release-7.6-7.6.33/zip/Makefile.am
90@@ -61,7 +61,7 @@ endif
91
92 lib_LTLIBRARIES = libboinc_zip.la
93 libboinc_zip_la_SOURCES = $(libboinc_zip_sources)
94-libboinc_zip_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
95+libboinc_zip_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
96 libboinc_zip_la_LIBADD =
97
98 # Some OSs may not prefix libraries with lib.
diff --git a/meta-oe/recipes-extended/boinc/boinc-client_7.6.33.bb b/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
index 99b43fa3f..e505bb4c5 100644
--- a/meta-oe/recipes-extended/boinc/boinc-client_7.6.33.bb
+++ b/meta-oe/recipes-extended/boinc/boinc-client_7.12.bb
@@ -29,21 +29,19 @@ DEPENDS = "curl \
29 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk+ libnotify xcb-util libxscrnsaver', '', d)} \ 29 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk+ libnotify xcb-util libxscrnsaver', '', d)} \
30 nettle \ 30 nettle \
31" 31"
32 32SRCREV = "bd12338dbd29083daa5a4b022592ca31ff68cd98"
33SRC_URI = "https://github.com/BOINC/boinc/archive/client_release/7.6/${PV}.tar.gz \ 33BRANCH = "client_release/7/${PV}"
34SRC_URI = "git://github.com/BOINC/boinc;protocol=https;branch=${BRANCH} \
34 file://boinc-AM_CONDITIONAL.patch \ 35 file://boinc-AM_CONDITIONAL.patch \
35 file://opengl_m4_check.patch \ 36 file://opengl_m4_check.patch \
36 file://cross-compile.patch \
37 file://gtk-configure.patch \ 37 file://gtk-configure.patch \
38" 38"
39SRC_URI[md5sum] = "437b4b98e384b4bda4ef7056e68166ac"
40SRC_URI[sha256sum] = "c4b1c29b9655013e0ac61dddf47ad7f30f38c46159f02a9d9dc8ab854e99aa6d"
41 39
42inherit gettext autotools-brokensep pkgconfig distro_features_check 40inherit gettext autotools pkgconfig distro_features_check systemd
43 41
44REQUIRED_DISTRO_FEATURES += "opengl" 42REQUIRED_DISTRO_FEATURES += "opengl"
45 43
46S = "${WORKDIR}/${BPN}_release-7.6-${PV}" 44S = "${WORKDIR}/git"
47 45
48EXTRA_OECONF += "\ 46EXTRA_OECONF += "\
49 --enable-libraries \ 47 --enable-libraries \
@@ -75,5 +73,15 @@ do_compile_prepend () {
75 sed -i -e 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec=""|g' ${B}/${TARGET_SYS}-libtool 73 sed -i -e 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec=""|g' ${B}/${TARGET_SYS}-libtool
76 sed -i -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${B}/${TARGET_SYS}-libtool 74 sed -i -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${B}/${TARGET_SYS}-libtool
77} 75}
76do_install_append() {
77 if [ -e ${D}${libdir}/systemd/system/boinc-client.service ]; then
78 install -D -m 0644 \
79 ${D}${libdir}/systemd/system/boinc-client.service \
80 ${D}${systemd_system_unitdir}/boinc-client.service
81 rm -rf ${D}${libdir}/systemd
82 fi
83}
84
85SYSTEMD_SERVICE_${PN} = "boinc-client.service"
78 86
79SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" 87FILES_${PN} += "${libdir}/systemd"