Skip to contentSkip to conversation

boinc: new package

PATCH Superseded Fabrice Fontaine 2 participants 4 messages Mar 4, 2017 – Mar 6, 2017

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boinc: new package

Open-source software for volunteer computing and grid computing.

Use the idle time on your computer to cure diseases, study global warming, discover pulsars, and do many other types of scientific research.

https://boinc.berkeley.edu

---
 package/Config.in                                  |   1 +
 .../0001-Fix-LDFLAGS-for-cross-compilation.patch   | 127 +++++++++++++++++++++
 package/boinc/Config.in                            |  20 ++++
 package/boinc/S99boinc-client                      |  37 ++++++
 package/boinc/boinc-client.service                 |  10 ++
 package/boinc/boinc.hash                           |   3 +
 package/boinc/boinc.mk                             |  66 +++++++++++
 7 files changed, 264 insertions(+)
 create mode 100644 package/boinc/0001-Fix-LDFLAGS-for-cross-compilation.patch
 create mode 100644 package/boinc/Config.in
 create mode 100644 package/boinc/S99boinc-client
 create mode 100644 package/boinc/boinc-client.service
 create mode 100644 package/boinc/boinc.hash
 create mode 100644 package/boinc/boinc.mk
package/Config.in +1 -0
index bf9843c..8c73cb8 100644
@@ -1490,6 +1490,7 @@ menu "Networking applications"
 	source "package/bluez5_utils/Config.in"
 	source "package/bmon/Config.in"
 	source "package/boa/Config.in"
+	source "package/boinc/Config.in"
 	source "package/bridge-utils/Config.in"
 	source "package/bwm-ng/Config.in"
 	source "package/c-icap/Config.in"
package/boinc/0001-Fix-LDFLAGS-for-cross-compilation.patch new file +127 -0

127 lines not on this page · raw message

package/boinc/Config.in new file +20 -0
new file mode 100644
index 0000000..ca1b283
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_BOINC
+	bool "boinc"
+	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_WCHAR
+	help
+	  Open-source software for volunteer computing and grid
+	  computing.
+
+	  Use the idle time on your computer to cure diseases, study
+	  global warming, discover pulsars, and do many other types of
+	  scientific research.
+
+	  https://boinc.berkeley.edu
+
+comment "boinc needs a toolchain w/ C++, threads, wchar"
+	depends on BR2_USE_MMU
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_USE_WCHAR
package/boinc/S99boinc-client new file +37 -0
new file mode 100644
index 0000000..f4b2a2c
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+NAME=boinc_client
+PIDFILE=/var/run/$NAME.pid
+DAEMON=/usr/bin/$NAME
+
+start() {
+	printf "Starting $NAME: "
+	start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON
+	[ $? = 0 ] && echo "OK" || echo "FAIL"
+}
+stop() {
+	printf "Stopping $NAME: "
+	start-stop-daemon -K -q -p $PIDFILE
+	[ $? = 0 ] && echo "OK" || echo "FAIL"
+}
+restart() {
+	stop
+	start
+}
+
+case "$1" in
+  start)
+	start
+	;;
+  stop)
+	stop
+	;;
+  restart|reload)
+	restart
+	;;
+  *)
+	echo "Usage: $0 {start|stop|restart|reload}"
+	exit 1
+esac
+
+exit $?
package/boinc/boinc-client.service new file +10 -0
new file mode 100644
index 0000000..9de940e
@@ -0,0 +1,10 @@
+[Unit]
+Description=BOINC client
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/boinc_client
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
package/boinc/boinc.hash new file +3 -0
new file mode 100644
index 0000000..cc8eb6d
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256	d58c654e8234aab7261bb90685ac3eb6a94a122b2df4f66e62c8276ab5dfd4f9	boinc-26198.tar.gz
+sha256	39dc32290378ab5ed258944b80140adc48613677e1792701d6fbeba1b0aa60e3	25c2f1839753a2695c62cc4d4edb7e88345af8cb.patch
package/boinc/boinc.mk new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 boinc: new package

Hello,

Quoted 4 lines · Fabrice Fontaine

+ lib_LTLIBRARIES = libboinc_api.la
+ libboinc_api_la_SOURCES = $(api_files)
+-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION) ++libboinc_api_la_LDFLAGS = -rpath $(libdir) -version-number $(LIBBOINC_VERSION)

You should also remove the -rpath $(libdir) variable, because the -rpath option also causes the linker to look into $(libdir) during the build process:

'-rpath=DIR'
Add a directory to the runtime library search path. This is used when linking an ELF executable with shared objects. All '-rpath' arguments are concatenated and passed to the runtime linker, which uses them to locate shared objects at runtime. The '-rpath' option is also used when locating shared objects which are needed by shared objects explicitly included in the link; see the description of the '-rpath-link' option. If '-rpath' is not used when linking an ELF executable, the contents of the environment variable 'LD_RUN_PATH' will be used if it is defined.

package/boinc/boinc.mk line 8

Quoted 2 lines
package/boinc/boinc.mk new file +2 -0
+BOINC_VERSION = 26198
+BOINC_SITE = $(call github,BOINC,boinc,vboxwrapper/$(BOINC_VERSION))

What is this vboxwrapper/<xyz> version?

package/boinc/boinc.mk line 10

Quoted 2 lines
package/boinc/boinc.mk new file +2 -0
+BOINC_LICENSE = LGPLv3
+BOINC_LICENSE_FILES = COPYING COPYING.LESSER 

COPYING contains the text of the GPLv3, so are you sure the entire project is under LGPLv3 ?

package/boinc/boinc.mk line 36

Quoted 4 lines
package/boinc/boinc.mk new file +4 -0
+ifeq ($(BR2_PACKAGE_LIBCURL)$(BR2_PACKAGE_OPENSSL),yy)
+BOINC_DEPENDENCIES += \
+	libcurl \
+	openssl

One line is enough for this assignment.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 boinc: new package

Dear Thomas,

Thanks for your quick review.

2017-03-04 15:48 GMT+01:00 Thomas Petazzoni <
[email protected]>:

Quoted 26 lines

Hello,

Quoted 3 lines · Fabrice Fontaine

+ lib_LTLIBRARIES = libboinc_api.la
+ libboinc_api_la_SOURCES = $(api_files) +-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number

$(LIBBOINC_VERSION)

Quoted 1 line

++libboinc_api_la_LDFLAGS = -rpath $(libdir) -version-number

$(LIBBOINC_VERSION)

You should also remove the -rpath $(libdir) variable, because the -rpath option also causes the linker to look into $(libdir) during the build process:

'-rpath=DIR'
Add a directory to the runtime library search path. This is used when linking an ELF executable with shared objects. All '-rpath' arguments are concatenated and passed to the runtime linker, which uses them to locate shared objects at runtime. The '-rpath' option is also used when locating shared objects which are needed by shared objects explicitly included in the link; see the description of the '-rpath-link' option. If '-rpath' is not used when linking an ELF executable, the contents of the environment variable 'LD_RUN_PATH' will be used if it is defined.

Quoted 8 lines

OK done

package/boinc/boinc.mk line 8

Quoted 2 lines
package/boinc/boinc.mk new file +2 -0
+BOINC_VERSION = 26198
+BOINC_SITE = $(call github,BOINC,boinc,vboxwrapper/$(BOINC_VERSION))

What is this vboxwrapper/<xyz> version?

All github releases since July 2016 starts with vboxwrapper. I suppose

that's becaue the "standard" way of installing boinc is through virtual box. vboxwrapper is the name of the boinc package installed inside virtual box. This package can contain the client, the server, the manager, ...

Quoted 6 lines

package/boinc/boinc.mk line 10

Quoted 2 lines
package/boinc/boinc.mk new file +2 -0
+BOINC_LICENSE = LGPLv3
+BOINC_LICENSE_FILES = COPYING COPYING.LESSER

COPYING contains the text of the GPLv3, so are you sure the entire project is under LGPLv3 ?

I made a quick search and I found only LGPL in source files, moreover README.md, wikipedia and https://boinc.berkeley.edu also mention only LGPL. Should I remove COPYING from the list?

Quoted 8 lines

package/boinc/boinc.mk line 36

Quoted 5 lines
package/boinc/boinc.mk new file +4 -0
+ifeq ($(BR2_PACKAGE_LIBCURL)$(BR2_PACKAGE_OPENSSL),yy)
+BOINC_DEPENDENCIES += \
+     libcurl \
+     openssl

One line is enough for this assignment.

OK done

Quoted 9 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Best Regards,

Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170304/c5978e95/attachment.html>

#3 lore raw

PATCH 1/1 boinc: new package

Dear Thomas,

2017-03-04 17:41 GMT+01:00 Fabrice Fontaine <[email protected]>:

Quoted 40 lines

Dear Thomas,

Thanks for your quick review.

2017-03-04 15:48 GMT+01:00 Thomas Petazzoni <thomas.petazzoni@free- electrons.com>:

Quoted 33 lines

Hello,

Quoted 3 lines · Fabrice Fontaine

+ lib_LTLIBRARIES = libboinc_api.la
+ libboinc_api_la_SOURCES = $(api_files) +-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir)

-version-number $(LIBBOINC_VERSION)

Quoted 1 line

++libboinc_api_la_LDFLAGS = -rpath $(libdir) -version-number

$(LIBBOINC_VERSION)

You should also remove the -rpath $(libdir) variable, because the -rpath option also causes the linker to look into $(libdir) during the build process:

'-rpath=DIR'
Add a directory to the runtime library search path. This is used when linking an ELF executable with shared objects. All '-rpath' arguments are concatenated and passed to the runtime linker, which uses them to locate shared objects at runtime. The '-rpath' option is also used when locating shared objects which are needed by shared objects explicitly included in the link; see the description of the '-rpath-link' option. If '-rpath' is not used when linking an ELF executable, the contents of the environment variable 'LD_RUN_PATH' will be used if it is defined.

OK done

package/boinc/boinc.mk line 8

Quoted 2 lines
package/boinc/boinc.mk new file +2 -0
+BOINC_VERSION = 26198
+BOINC_SITE = $(call github,BOINC,boinc,vboxwrapper/$(BOINC_VERSION))

What is this vboxwrapper/<xyz> version?

Quoted 5 lines
Quoted 1 line

All github releases since July 2016 starts with vboxwrapper. I suppose

that's becaue the "standard" way of installing boinc is through virtual box. vboxwrapper is the name of the boinc package installed inside virtual box. This package can contain the client, the server, the manager, ...

My assumption was wrong as stated by Christian in
https://github.com/BOINC/boinc/pull/1798. So, the v2 of my patch will reference client_release tag. I will add a comment to explain that it can be used to build only the client and the manager and that the server has no versioning.

Quoted 10 lines
Quoted 6 lines

+BOINC_LICENSE = LGPLv3

Quoted 1 line

+BOINC_LICENSE_FILES = COPYING COPYING.LESSER

COPYING contains the text of the GPLv3, so are you sure the entire project is under LGPLv3 ?

I made a quick search and I found only LGPL in source files, moreover README.md, wikipedia and https://boinc.berkeley.edu also mention only LGPL. Should I remove COPYING from the list?

Concerning the license, the BOINC project confirmed that it is LGPL. From their understanding, COPYING must be present, see last comment of
https://github.com/BOINC/boinc/pull/1798.

Quoted 19 lines
Quoted 7 lines

+ifeq ($(BR2_PACKAGE_LIBCURL)$(BR2_PACKAGE_OPENSSL),yy)

package/boinc/boinc.mk line 36

Quoted 3 lines
package/boinc/boinc.mk new file +3 -0
+BOINC_DEPENDENCIES += \
+     libcurl \
+     openssl

One line is enough for this assignment.

OK done

Quoted 9 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Quoted 4 lines

Best Regards,

Fabrice

Best Regards,

Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170306/c075a78c/attachment.html>