* [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/
@ 2021-05-18 21:31 Anna Vyalkova
0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2021-05-18 21:31 UTC (permalink / raw
To: gentoo-commits
commit: 9ef3db2b3aa5cd4812a7392764a2cb1bf3160fe7
Author: Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Tue May 18 19:54:19 2021 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue May 18 21:31:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ef3db2b
sci-misc/boinc-wrapper: initial import
Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>
sci-misc/boinc-wrapper/Manifest | 1 +
.../boinc-wrapper/boinc-wrapper-7.16.16.ebuild | 50 ++++++++++++++++++++++
sci-misc/boinc-wrapper/files/makefile.patch | 10 +++++
sci-misc/boinc-wrapper/metadata.xml | 11 +++++
4 files changed, 72 insertions(+)
diff --git a/sci-misc/boinc-wrapper/Manifest b/sci-misc/boinc-wrapper/Manifest
new file mode 100644
index 000000000..5238eec52
--- /dev/null
+++ b/sci-misc/boinc-wrapper/Manifest
@@ -0,0 +1 @@
+DIST boinc-7.16.16.tar.gz 49599131 BLAKE2B 819ab85c19a684144711f77e669b892aa73c006b81c1d7ef7adbd9d580e1e8473ae27b52dc17953ee677c70fc78ed15df936afd740e629715f30f2b81d84ea6f SHA512 dd7042e176d6506c70de7866556ae73b2f45734df92038086d5b0414751f3da08dc571c49f0c26d747d3fb2577674d3ff8cdec7d3563861eaaaa5af9c1db0a0e
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
new file mode 100644
index 000000000..e19b25ceb
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools toolchain-funcs
+
+MY_PV=$(ver_cut 1-2)
+
+DESCRIPTION="use non-BOINC apps with BOINC"
+HOMEPAGE="https://boinc.berkeley.edu/trac/wiki/WrapperApp"
+
+SRC_URI="https://github.com/BOINC/boinc/archive/client_release/${MY_PV}/${PV}.tar.gz -> boinc-${PV}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+S="${WORKDIR}/boinc-client_release-${MY_PV}-${PV}/samples/wrapper"
+
+LICENSE="LGPL-3+ regexp-UofT"
+SLOT="0"
+
+RDEPEND="
+ ~sci-misc/boinc-${PV}
+ ~dev-libs/boinc-zip-${PV}
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/makefile.patch )
+DOCS=( ReadMe.txt job.xml )
+
+src_prepare() {
+ default
+
+ cd ../.. || die
+ eautoreconf
+ bash ./generate_svn_version.sh || die
+}
+
+src_configure() {
+ cd ../.. || die
+ econf --enable-pkg-devel --disable-static
+}
+
+src_compile() {
+ tc-export CC CXX
+ default
+}
+
+src_install() {
+ default
+ newbin wrapper boinc-wrapper
+}
diff --git a/sci-misc/boinc-wrapper/files/makefile.patch b/sci-misc/boinc-wrapper/files/makefile.patch
new file mode 100644
index 000000000..6e0359ec3
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/makefile.patch
@@ -0,0 +1,10 @@
+--- a/Makefile
++++ b/Makefile
+@@ -41,5 +41,5 @@
+ regexp_memory.o \
+ regexp_report.o
+
+-wrapper: wrapper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a $(REGEXP_OBJS)
+- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) libstdc++.a $(PTHREAD) -lboinc_api -lboinc -lboinc_zip
++wrapper: wrapper.o $(REGEXP_OBJS)
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) $(PTHREAD) -lboinc_api -lboinc -lboinc_zip
diff --git a/sci-misc/boinc-wrapper/metadata.xml b/sci-misc/boinc-wrapper/metadata.xml
new file mode 100644
index 000000000..a07d56d79
--- /dev/null
+++ b/sci-misc/boinc-wrapper/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>cyber+gentoo@sysrq.in</email>
+ <name>Anna</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">BOINC/boinc</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/
@ 2021-07-22 8:29 Anna Vyalkova
0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2021-07-22 8:29 UTC (permalink / raw
To: gentoo-commits
commit: f39fafa2e2bea2f49382d52411d96ca321036d42
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Jul 22 08:15:34 2021 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Jul 22 08:27:40 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f39fafa2
sci-misc/boinc-wrapper: revbump (new eclass)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild | 35 ++++++++++++++++++++++
sci-misc/boinc-wrapper/files/config.override.h | 8 +++++
2 files changed, 43 insertions(+)
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild
new file mode 100644
index 000000000..91ccc4e18
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.17-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+BOINC_SUBMODULE="samples/wrapper"
+inherit boinc
+
+DESCRIPTION="Wrapper to use non-BOINC apps with BOINC"
+HOMEPAGE="https://boinc.berkeley.edu/trac/wiki/WrapperApp"
+
+KEYWORDS="~amd64 ~arm64 ~x86"
+LICENSE="LGPL-3+ regexp-UofT"
+SLOT="0"
+
+# sci-misc/boinc doesn't have all necessary headers, so
+# we have to include from build root. All that said,
+# versions must not mismatch.
+RDEPEND="
+ ~sci-misc/boinc-${PV}
+ >=dev-libs/boinc-zip-${PV}
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch )
+DOCS=( job.xml )
+
+boinc_require_source
+
+boinc_override_config "${FILESDIR}"/config.override.h
+
+src_install() {
+ einstalldocs
+ newbin wrapper boinc-wrapper
+}
diff --git a/sci-misc/boinc-wrapper/files/config.override.h b/sci-misc/boinc-wrapper/files/config.override.h
new file mode 100644
index 000000000..bd1c1b892
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/config.override.h
@@ -0,0 +1,8 @@
+#ifndef BOINC_CONFIG_H
+#define BOINC_CONFIG_H
+
+#define HAVE_SYS_RESOURCE_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_SYS_WAIT_H 1
+
+#endif
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/
@ 2024-10-07 0:31 Anna Vyalkova
0 siblings, 0 replies; 3+ messages in thread
From: Anna Vyalkova @ 2024-10-07 0:31 UTC (permalink / raw
To: gentoo-commits
commit: 42e0a8a1ee13b7b1fae200eed02165c1329f3a27
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Oct 7 00:17:04 2024 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Oct 7 00:17:04 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=42e0a8a1
sci-misc/boinc-wrapper: fix deps & task suspending
1. Apply a patch to revert upstream switch to SIGTSTP signal for task
suspending, which never works.
2. Skip OpenGL check, so libboinc_graphics is never built.
Closes: https://bugs.gentoo.org/939899
Closes: https://bugs.gentoo.org/939902
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../boinc-wrapper/boinc-wrapper-26018-r2.ebuild | 54 ++++++++++++++++++++++
.../files/boinc-wrapper-26018-sigstop.patch | 28 +++++++++++
2 files changed, 82 insertions(+)
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-26018-r2.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-26018-r2.ebuild
new file mode 100644
index 000000000..57e857ec5
--- /dev/null
+++ b/sci-misc/boinc-wrapper/boinc-wrapper-26018-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools edo
+
+DESCRIPTION="Wrapper to use non-BOINC apps with BOINC"
+HOMEPAGE="https://boinc.berkeley.edu/trac/wiki/WrapperApp"
+SRC_URI="https://github.com/BOINC/boinc/archive/refs/tags/wrapper/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Info-ZIP LGPL-3+ regexp-UofT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+DOCS=( job.xml )
+
+PATCHES=( "${FILESDIR}"/${PN}-26018-sigstop.patch )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ edo bash generate_svn_version.sh
+
+ local myeconfargs=(
+ # build libraries only
+ --enable-pkg-devel
+ --disable-fcgi
+
+ # link with libboinc_api statically
+ --disable-shared
+ --enable-static
+
+ # do not build libboinc_graphics
+ --without-x
+ ax_cv_check_gl_libgl=no
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake
+ emake -C samples/wrapper
+}
+
+src_install() {
+ cd samples/wrapper || die
+
+ einstalldocs
+ newbin wrapper boinc-wrapper
+}
diff --git a/sci-misc/boinc-wrapper/files/boinc-wrapper-26018-sigstop.patch b/sci-misc/boinc-wrapper/files/boinc-wrapper-26018-sigstop.patch
new file mode 100644
index 000000000..d36f118f6
--- /dev/null
+++ b/sci-misc/boinc-wrapper/files/boinc-wrapper-26018-sigstop.patch
@@ -0,0 +1,28 @@
+Smaller version of a patch merged upstream in
+https://github.com/BOINC/boinc/pull/3045, not released yet.
+
+Author: Benn Snyder <benn.snyder@gmail.com>
+Bug: https://bugs.gentoo.org/939902
+
+diff --git a/lib/proc_control.cpp b/lib/proc_control.cpp
+index 71f783d02f..090574ca4b 100644
+--- a/lib/proc_control.cpp
++++ b/lib/proc_control.cpp
+@@ -256,7 +256,7 @@ void suspend_or_resume_descendants(bool resume) {
+ int pid = getpid();
+ get_descendants(pid, descendants);
+ for (unsigned int i=0; i<descendants.size(); i++) {
+- kill(descendants[i], resume?SIGCONT:SIGTSTP);
++ kill(descendants[i], resume?SIGCONT:SIGSTOP);
+ }
+ #endif
+ }
+@@ -269,7 +269,7 @@ void suspend_or_resume_process(int pid, bool resume) {
+ pids.push_back(pid);
+ suspend_or_resume_threads(pids, 0, resume, false);
+ #else
+- ::kill(pid, resume?SIGCONT:SIGTSTP);
++ ::kill(pid, resume?SIGCONT:SIGSTOP);
+ #endif
+ }
+
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-07 0:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-22 8:29 [gentoo-commits] repo/proj/guru:dev commit in: sci-misc/boinc-wrapper/files/, sci-misc/boinc-wrapper/ Anna Vyalkova
-- strict thread matches above, loose matches on Subject: below --
2024-10-07 0:31 Anna Vyalkova
2021-05-18 21:31 Anna Vyalkova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox