boinc: update patches

As suggested in https://github.com/termux/termux-packages/issues/5048#issuecomment-614472026.
This commit is contained in:
Leonid Pliushch 2020-04-16 14:53:18 +03:00
parent 925e0d79c7
commit effc800730
4 changed files with 14 additions and 14 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Open-source software for volunteer computing"
TERMUX_PKG_LICENSE="GPL-3.0"
_MAJOR_VERSION=7.16
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/BOINC/boinc/archive/client_release/${_MAJOR_VERSION}/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=caa567da8d3eb50859efe2eeba1c23c7b27d3b0f15b548136e75302713b25303
TERMUX_PKG_DEPENDS="libandroid-shmem, libc++, libcurl, openssl, zlib"
@ -18,7 +19,6 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
TERMUX_PKG_CONFFILES="etc/boinc-client.conf"
termux_step_pre_configure() {
CPPFLAGS+=" -DANDROID"
LDFLAGS+=" -llog"
LDFLAGS+=" -landroid-shmem"
./_autosetup
}

View File

@ -0,0 +1,12 @@
diff -uNr boinc-client_release-7.16-7.16.6/lib/synch.cpp boinc-client_release-7.16-7.16.6.mod/lib/synch.cpp
--- boinc-client_release-7.16-7.16.6/lib/synch.cpp 2020-03-23 07:13:30.000000000 +0200
+++ boinc-client_release-7.16-7.16.6.mod/lib/synch.cpp 2020-04-16 14:37:09.972107225 +0300
@@ -18,7 +18,7 @@
// interfaces for accessing sempahores
-#ifndef ANDROID
+#ifndef __ANDROID__
#include "config.h"
#include <cstdio>

View File

@ -1,12 +0,0 @@
diff -uNr boinc-client_release-7.14-7.14.3/lib/synch.h boinc-client_release-7.14-7.14.3.mod/lib/synch.h
--- boinc-client_release-7.14-7.14.3/lib/synch.h 2020-03-10 01:47:48.000000000 +0000
+++ boinc-client_release-7.14-7.14.3.mod/lib/synch.h 2020-03-20 10:26:50.144236854 +0000
@@ -18,7 +18,7 @@
#ifndef BOINC_SYNCH_H
#define BOINC_SYNCH_H
-#include <sys/sem.h>
+#include <linux/sem.h>
extern int create_semaphore(key_t);
extern int destroy_semaphore(key_t);