Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236931 - ebuild for sci-misc/boinc-6.2.15
Summary: ebuild for sci-misc/boinc-6.2.15
Status: RESOLVED DUPLICATE of bug 234360
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-07 08:24 UTC by Myckel Habets
Modified: 2008-11-08 11:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sci-misc/boinc-6.2.15 ebuild (boinc-6.2.15.ebuild,3.30 KB, text/plain)
2008-09-07 08:25 UTC, Myckel Habets
Details
modified export-tarball from boinc project (script 1 of 2 for generating tarball) (export-tarball,2.93 KB, text/plain)
2008-09-07 08:26 UTC, Myckel Habets
Details
2nd script for downloading boinc tarball. Modify before use! (boinc-tarball.sh,264 bytes, text/plain)
2008-09-07 08:27 UTC, Myckel Habets
Details
Updated export-tarball script (export-tarball,3.03 KB, text/plain)
2008-09-08 18:55 UTC, Myckel Habets
Details
modified version (boinc-6.2.15.ebuild,6.71 KB, text/plain)
2008-09-15 00:41 UTC, Orson Teodoro
Details
patch to squelch warnings (boinc-6.2.15-mute-extern-proj-redefs.patch,1.13 KB, text/plain)
2008-09-18 23:08 UTC, Orson Teodoro
Details
optional strip cflags patch (boinc-6.2.15-strip-cflags.patch,411 bytes, patch)
2008-09-18 23:12 UTC, Orson Teodoro
Details | Diff
fixes default list size on project page (boinc-6.2.15-fix-project-list-size.patch,508 bytes, patch)
2008-09-18 23:14 UTC, Orson Teodoro
Details | Diff
updated ebuild (boinc-6.2.15.ebuild,7.70 KB, text/plain)
2008-09-19 00:05 UTC, Orson Teodoro
Details
remove autoconnect use flag (boinc-6.2.15.ebuild,7.69 KB, text/plain)
2008-09-19 02:18 UTC, Orson Teodoro
Details
generate_tarball.sh (generate_tarball.sh,3.34 KB, text/plain)
2008-10-23 15:18 UTC, Tomáš Chvátal (RETIRED)
Details
boinc-6.2.15.ebuild (boinc-6.2.15.ebuild,6.33 KB, text/plain)
2008-10-23 15:21 UTC, Tomáš Chvátal (RETIRED)
Details
boinc-6.2.15.ebuild (boinc-6.2.15.ebuild,6.37 KB, text/plain)
2008-10-23 15:40 UTC, Tomáš Chvátal (RETIRED)
Details
generate_tarball.sh ca-bundle.crt fixed (generate_tarball-fixed.sh,3.41 KB, text/plain)
2008-10-31 10:29 UTC, Olivier Mondoloni
Details
boinc-6.2.15 ebuild several cosmetic fixes (boinc-6.2.15.ebuild,6.39 KB, text/plain)
2008-10-31 10:33 UTC, Olivier Mondoloni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myckel Habets 2008-09-07 08:24:21 UTC
There is already an ebuild for boinc-6.2.16 in bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=234360 , but this isn't officially released by the BOINC developers. This ebuild is made to include the latest stable (recomended) release into portage.

Some BOINC project servers are giving messages that the newest version in portage is outdated and that the user should upgrade. This is the reason for the bug report of this ebuild.

I've used the 5.8.15 ebuild as template for this one and made a few updates:
* wxGTK 2.8 is now used instead of the 2.6 version (2.8 is stable on all archs that BOINC supports).
* The source tarball doesn't contain a configure script, but does contain a script to generate this. The ebuild starts this script to bootstrap the source.
* Solves bug http://bugs.gentoo.org/show_bug.cgi?id=173469

I've got the source tarball, but I think it is to large to upload into bugzilla. I will include scripts that can generate this source tarball

Reproducible: Always

Steps to Reproduce:
1. Download scripts boinc-tarball.sh and export-tarball
2. Modify the DESTINATION var in boinc-tarball.sh
3. Execute boinc-tarball.sh (this might fail at the svn step when the server generates an error, just repeat it until it works)
4. Move the tarball boinc-6.2.15.tar.bz2 to /usr/portage/distfiles
5. Download the ebuild and put it in your overlay dir.
6. Copy the files/ dir from the normal portage boinc dir to the boinc dir in the overlay dir.
7. Emerge boinc and wait for it to install.

Actual Results:  
boinc-6.2.15 gets installed

Expected Results:  
installation of boinc version 6.2.15

Client says it's a pre-release. Could be because of regenerated version.h from version.h.in
Comment 1 Myckel Habets 2008-09-07 08:25:36 UTC
Created attachment 164777 [details]
sci-misc/boinc-6.2.15 ebuild
Comment 2 Myckel Habets 2008-09-07 08:26:55 UTC
Created attachment 164779 [details]
modified export-tarball from boinc project (script 1 of 2 for generating tarball)
Comment 3 Myckel Habets 2008-09-07 08:27:40 UTC
Created attachment 164780 [details]
2nd script for downloading boinc tarball. Modify before use!
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-07 11:42:43 UTC
Assigning, but please use the existing bug next time.
Comment 5 Myckel Habets 2008-09-08 18:55:41 UTC
Created attachment 164947 [details]
Updated export-tarball script

Updated the export-tarball script to generate a boinc-6.2.15 tarball that doesn't generate the "pre-release" message in the gui-client anymore.
Comment 6 Orson Teodoro 2008-09-15 00:41:22 UTC
Created attachment 165439 [details]
modified version

This other version of the ebuild includes support for 
*selecting languages (LINGUAS),
*correcting the desktop entry path to pick up the locale for the GUI,
*bindist for both x86 and amd64 archs (closing bug 155671),
*installing missing icons,
*debug use flag,
*correcting the source location of ca-bundle.crt.  I haven't tested the use of this because I am not part of the World Community Grid project.  You might want to check http://boinc.berkeley.edu/trac/wiki/Error/Scheduler%20request%20failed for more info.  
*installs missing headers required to build the setiathome

I also merged changes that corrected the categories for desktop entry, apache optional dependency, and runtime dependency changes, and others.

The svnrepo use flag fetches the source code off boinc servers instead of using a tarball.  So you have 3 methods to install off this ebuild.
Comment 7 Myckel Habets 2008-09-15 06:03:35 UTC
(In reply to comment #6)
> Created an attachment (id=165439) [edit]
> modified version
> 

I see you used the following in the new ebuild:

aclocal -I m4 || die "aclocal failed."
autoheader || die "autoheader failed."
automake || die "automake failed."
autoconf || die "autoconf failed."

I don't think this is recommended to use in portage, see bug:
http://bugs.gentoo.org/show_bug.cgi?id=226615
Comment 8 Orson Teodoro 2008-09-18 23:08:49 UTC
Created attachment 165758 [details]
patch to squelch warnings

removes config.h from headers so that packages that compile against boinc do not get redefinition spam VERSION, PACKAGE_VERSION, etc for setiathome-6.03
Comment 9 Orson Teodoro 2008-09-18 23:12:04 UTC
Created attachment 165760 [details, diff]
optional strip cflags patch

This removes upstream cflags that automatically get preappeneded to client for those who do not want ffast-math O3 etc.
Comment 10 Orson Teodoro 2008-09-18 23:14:47 UTC
Created attachment 165762 [details, diff]
fixes default list size on project page

When you view the list of projects to attach to project in the GUI manager, it is very small. This makes the list larger.
Comment 11 Orson Teodoro 2008-09-19 00:05:29 UTC
Created attachment 165764 [details]
updated ebuild

In this ebuild, we bootstrap using eautoreconf and the ebuild should produce cleaner output.  I ran it directly because there was error long time ago when trying to bootstrap with eautoreconf previously.  Inspecting _autosetup, it essentially did the same when running it directly.  I compiled astropulse-4.28 I later found out that I had a version mismatch with libtool and the fix was to delete "${S}"/m4/libtool.m4.  I removed libtool.m4 from all three of my ebuilds then ran eautoreconf ... now they are all error free.

There was a fix for auto connecting the GUI.  When you run the desktop menu link for boinc manager, it cannot find gui_rpc_auth.cfg.  I saw that if you set the make_desktop_entry path to /var/lib/boinc, it will still not read gui_rpc_auth.cfg.  So we fix the script to first cd into /var/lib/boinc then make it run boinc_gui/boincmgr then later force make_desktop_entry from eutils to force the users to run the scripts to allow the gui to read gui_rpc_auth.cfg.  If you want to allow non-root users to autoconnect the GUI to the daemon, manually set the file permission to 644 from 600 which was the default on the creation of the this file.  Or... you can run as root or try sudo instead and it will auto connect.

Also, we provide a symlink the _locale_ to the datadir to get the translation on the tabs to show properly because it assumes the locales are in the running dir.  Coincidentally, boinc manager (GUI) also assumes gui_rpc_auth.cfg is in the current dir.

This should be my final change to this ebuild.
Comment 12 Orson Teodoro 2008-09-19 02:18:46 UTC
Created attachment 165804 [details]
remove autoconnect use flag

removing use flag cruft
Comment 13 Joshua Jackson (RETIRED) gentoo-dev 2008-09-30 22:00:53 UTC
Orson,

Great work on working on some of the bugs, would like to talk to you about the work you've done and some ways to improve it and or some ways that it might come across better. Poke me on irc if you get the chance and we can discuss it.
Comment 14 Hanno Zysik (geki) 2008-10-19 20:26:25 UTC
Any chance to get this into sci gentoo overlay at least? :)
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-23 15:18:24 UTC
Created attachment 169578 [details]
generate_tarball.sh

Straigth forward tool for generating tarball.
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-23 15:21:59 UTC
Created attachment 169580 [details]
boinc-6.2.15.ebuild

This is ebuild using various features from boinc bugs around.

Those two patchfiles are sam es those two here just with other versioning. So download and rename or modify ebuild.
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2008-10-23 15:40:51 UTC
Created attachment 169582 [details]
boinc-6.2.15.ebuild

Whopsie i posted older revision of that file, now posting correct one.
Comment 18 Olivier Mondoloni 2008-10-31 10:29:58 UTC
Created attachment 170399 [details]
generate_tarball.sh ca-bundle.crt fixed

I modify this script to leave ca-bundle.crt in curl directory but wipe out include, mswin and patches subdirectories.
Comment 19 Olivier Mondoloni 2008-10-31 10:33:20 UTC
Created attachment 170400 [details]
boinc-6.2.15 ebuild several cosmetic fixes

This ebuild has been modified to reflect actual 6.2.15 patch names and ca-bundle.crt in curl directory (copy in /var/lib/boinc).
Comment 20 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-08 11:01:00 UTC
Hi there, this bug is actually obsoleted by bug #234360, please review the ebuild proposed there.

Also please note that the use of bindist in this ebuild is completely wrong, bindist is for things that must be disabled for various reasons for distributed precompiled packages (for example). What you want to do is in fact write a boinc-bin ebuild that will only be keyworded on supported arches.

*** This bug has been marked as a duplicate of bug 234360 ***
Comment 21 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-08 11:03:08 UTC
ftr, boinc-bin ebuild request is filled as bug #155671