Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 338909

Summary: net-p2p/gnunet: new package
Product: Gentoo Linux Reporter: Vitaly Minko <vitaly.minko>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement CC: anton.kochkov, axiator, bugs+gentoo, bugzie, emery, fssirc, gentoo.wayne, hasufell, mail, nikoli, stlman, tg-gen, v_2e
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gnunet.org/gnunet092
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 497550, 518632    
Bug Blocks: 209078, 542084    
Attachments: Ebuild for the GNUnet 0.9.0pre1.
Default config file for the GNUnet 0.9.0pre1.
Default config file for the init script.
Init script for the GNUnet 0.9.0pre1.
A patch for the GNUnet 0.9.0pre1
Updated ebuild for the GNUnet 0.9.0pre1.
Ebuild for the GTK UI for GNUnet 0.9.0pre1.
Ebuild for the GNU libextractor-0.6.2.
Ebuild for GNUnet-SVN
Default config file for the init script.
Init script for GNUnet SVN
Default config file for GNUnet SVN
Updated ebuild for GNUnet-SVN
Ebuild for GNUnet 0.9.0pre3
Init script for the GNUnet 0.9.0pre3.
Config file for the new init script.
Default config for GNUnet 0.9.0pre3.
Updated default config for GNUnet 0.9.0pre3.
Slightly updated ebuild for GNUnet-SVN
Updated default config file for GNUnet SVN
New default config file for the init script for GNUnet SVN.
New init script for GNUnet SVN
Updated ebuild for GNUnet-SVN.
Ebuild for GNUnet 0.9.2
Default config for GNUnet 0.9.2
Init script for the GNUnet 0.9.2
Config file for the new init script.
GNUnet 0.10.1 ebuild (forced with -j1)
GNUnet 0.10.1 (updated)
install-0.10.1.diff. Fetched from Zugaina overlay and updated to this version.

Description Vitaly Minko 2010-09-27 10:00:25 UTC
From the official web-site:

"This release adds support for UNIX domain sockets, systemd-compatibility, improves performance on many fronts and fixes numerous bugs. A rewrite of gnunet-gtk for 0.9.x is also available for the first time. This is an alpha release and it is likely that protocols and APIs will still change slightly before 0.9.0. However, we believe that the APIs are now stable enough that code written against them will only need minor changes to be compatible with 0.9.0."
Comment 1 Vitaly Minko 2010-09-27 10:02:16 UTC
Created attachment 248775 [details]
Ebuild for the GNUnet 0.9.0pre1.
Comment 2 Vitaly Minko 2010-09-27 10:04:59 UTC
Created attachment 248776 [details]
Default config file for the GNUnet 0.9.0pre1.
Comment 3 Vitaly Minko 2010-09-27 10:05:44 UTC
Created attachment 248778 [details]
Default config file for the init script.
Comment 4 Vitaly Minko 2010-09-27 10:06:05 UTC
Created attachment 248779 [details]
Init script for the GNUnet 0.9.0pre1.
Comment 5 Vitaly Minko 2010-09-27 10:15:01 UTC
Created attachment 248780 [details, diff]
A patch for the GNUnet 0.9.0pre1

This patch expands the HOSTLISTFILE variable. I.e. it allows to use other variables in the parameter value, for example:
HOSTLISTFILE = $SERVICEHOME/hostlist/learned.data
instead of
HOSTLISTFILE = /var/lib/gnunet/hostlist/learned.data
Comment 6 Vitaly Minko 2010-09-27 10:19:51 UTC
Created attachment 248782 [details]
Updated ebuild for the GNUnet 0.9.0pre1.

The redundant debug patch is removed.
Comment 7 Vitaly Minko 2010-09-27 10:20:52 UTC
Created attachment 248784 [details]
Ebuild for the GTK UI for GNUnet 0.9.0pre1.
Comment 8 Vitaly Minko 2010-09-27 10:22:07 UTC
Created attachment 248786 [details]
Ebuild for the GNU libextractor-0.6.2.

Required by gnunet-0.9.0.
Comment 9 Vitaly Minko 2010-12-10 16:30:56 UTC
Created attachment 256833 [details]
Ebuild for GNUnet-SVN
Comment 10 Vitaly Minko 2010-12-10 16:31:26 UTC
Created attachment 256834 [details]
Default config file for the init script.
Comment 11 Vitaly Minko 2010-12-10 16:31:46 UTC
Created attachment 256836 [details]
Init script for GNUnet SVN
Comment 12 Vitaly Minko 2010-12-10 16:32:39 UTC
Created attachment 256838 [details]
Default config file for GNUnet SVN
Comment 13 Vitaly Minko 2011-01-04 21:53:46 UTC
dodir is replaced with keepdir.
Comment 14 Vitaly Minko 2011-01-04 21:54:43 UTC
Created attachment 258853 [details]
Updated ebuild for GNUnet-SVN 

dodir is replaced with keepdir.
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-20 06:11:31 UTC
*** Bug 379433 has been marked as a duplicate of this bug. ***
Comment 16 Vitaly Minko 2011-09-28 07:10:24 UTC
Created attachment 288043 [details]
Ebuild for GNUnet 0.9.0pre3
Comment 17 Vitaly Minko 2011-09-28 07:12:35 UTC
Created attachment 288045 [details]
Init script for the GNUnet 0.9.0pre3.
Comment 18 Vitaly Minko 2011-09-28 07:13:26 UTC
Created attachment 288047 [details]
Config file for the new init script.
Comment 19 Vitaly Minko 2011-09-28 07:17:12 UTC
Created attachment 288049 [details]
Default config for GNUnet 0.9.0pre3.
Comment 20 Vitaly Minko 2011-10-02 20:20:17 UTC
Created attachment 288601 [details]
Updated default config for GNUnet 0.9.0pre3.

Disabled GID/UID checks in the default config.
The hostlist patch is marked as obsolete since it's no longer required.
Comment 21 Vitaly Minko 2011-10-09 18:20:19 UTC
Created attachment 289387 [details]
Slightly updated ebuild for GNUnet-SVN
Comment 22 Vitaly Minko 2011-10-09 18:21:26 UTC
Created attachment 289389 [details]
Updated default config file for GNUnet SVN
Comment 23 Vitaly Minko 2011-10-09 18:23:49 UTC
Created attachment 289391 [details]
New default config file for the init script for GNUnet SVN.
Comment 24 Vitaly Minko 2011-10-09 18:24:33 UTC
Created attachment 289393 [details]
New init script for GNUnet SVN
Comment 25 Vitaly Minko 2012-01-09 16:42:38 UTC
Created attachment 298401 [details]
Updated ebuild for GNUnet-SVN.

.
Comment 26 Samuli Suominen (RETIRED) gentoo-dev 2012-02-29 07:49:21 UTC
*** Bug 399651 has been marked as a duplicate of this bug. ***
Comment 27 Anthony Basile gentoo-dev 2012-03-01 03:13:41 UTC
(In reply to comment #26)
> *** Bug 399651 has been marked as a duplicate of this bug. ***

Okay I'm going to try to save this package in my spare time.
Comment 28 Vitaly Minko 2012-03-03 18:55:22 UTC
Created attachment 304143 [details]
Ebuild for GNUnet 0.9.2
Comment 29 Vitaly Minko 2012-03-03 18:56:00 UTC
Created attachment 304145 [details]
Default config for GNUnet 0.9.2
Comment 30 Vitaly Minko 2012-03-03 18:56:45 UTC
Created attachment 304147 [details]
Init script for the GNUnet 0.9.2
Comment 31 Vitaly Minko 2012-03-03 18:57:36 UTC
Created attachment 304149 [details]
Config file for the new init script.
Comment 32 Anthony Basile gentoo-dev 2012-03-23 23:58:36 UTC
Sorry guys, I've looked at gnunet off and on for the last month and it is in bad shape.  I don't have time for something needing this much work.  If anyone wants to pickup from where I left off, I left the ebuild and accompanying files on my overlay:

http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=tree;f=net-p2p/gnunet;h=9771b7794fe575e804f77fb8e32af6381fbcaa1e;hb=fa85d5b925dfd7506690a8cf700b710df5ef7c72

@Vitaly.  There are several QA problems with the ebuilds you're proposing.  You might want to look at where I was heading.
Comment 33 Pacho Ramos gentoo-dev 2012-04-06 19:40:45 UTC
dropped
Comment 34 Emery Hemingway 2013-08-13 03:08:45 UTC
There is a live ebuild in the emery overlay that builds as of today, but comes with this declaimer:

"THIS SVN VERSION OF GNUNET IS INCOMPATIBLE TO ALL PREVIOUS RELEASES. WE ARE WORKING ON CHANGING FUNDAMENTAL PARTS OF THE CRYPTOGRAPHIC PARTS OF THE SYSTEM."
Comment 36 Julian Ospald 2013-09-09 23:07:39 UTC
I think it was not properly documented why this package was dropped, but I remember some maintenance problems.

I think it should be added again.
Comment 37 Samuli Suominen (RETIRED) gentoo-dev 2013-09-10 12:24:47 UTC
(In reply to Julian Ospald (hasufell) from comment #36)
> I think it was not properly documented why this package was dropped, but I
> remember some maintenance problems.
> 
> I think it should be added again.

It was because the current version in tree was incompatible w/ libextractor
And nobody was intrested in packaging new version of gnunet
So yes, it can be readded at will
Comment 38 Vince C. 2014-06-03 15:26:41 UTC
Hi all.  I tried GNUnet from the ebuild submitted by Emery Hemingway in comment #35. I saved his ebuild as gnunet-0.10.1.ebuild.

I had to do a few adjustments. I will post my adjusted ebuild as an attachment here. The main change I had to do was to force MAKEOPTS=-j1 otherwise the ebuild failed during the install phase (FTR -j5 here). I saw a report saying it fails with -j4. I also linked to >=libgcrypt-1.6 and it compiled without error. I yet have to test the binaries and see if they run fine.

Note that the ebuild only builds part of all the features in the new GNUnet 0.10.* as there is no dependency upon libopus, libpulse, libogg, python-zbar or TeX Live.
Comment 39 Vince C. 2014-06-04 06:41:34 UTC
Created attachment 378212 [details]
GNUnet 0.10.1 ebuild (forced with -j1)

Adjusted version of Emery Hemingway's ebuild in comment #35 . Forcing -j1 otherwise install phase might fail.
Comment 40 Julian Ospald 2014-06-05 19:54:30 UTC
(In reply to Vince C. from comment #39)
> Created attachment 378212 [details]
> GNUnet 0.10.1 ebuild (forced with -j1)
> 
> Adjusted version of Emery Hemingway's ebuild in comment #35 . Forcing -j1
> otherwise install phase might fail.

* eutils.eclass is missing from inherit
* autools-utils.eclass is missing from inherit or remove autotools-utils_src_prepare
* subversion.eclass is missing from inherit or remove subversion_src_prepare
* overuse of REQUIRED_USE ...this variable is meant for libraries, so that reverse deps don't break
* the ebuild currently has no runtime-deps
Comment 41 Vince C. 2014-07-29 12:01:19 UTC
(In reply to Julian Ospald (hasufell) from comment #40)
>...
> * eutils.eclass is missing from inherit
> * autools-utils.eclass is missing from inherit or remove
> autotools-utils_src_prepare
> * subversion.eclass is missing from inherit or remove subversion_src_prepare
> * overuse of REQUIRED_USE ...this variable is meant for libraries, so that
> reverse deps don't break
> * the ebuild currently has no runtime-deps

Well, that makes a list of things to fix ;-). I'm not at all an ebuild specialist so thanks a lot for the hints. I'll update the ebuild ASAP.

I actually avoided any subversion dependency as I totally ignore how it should work in an ebuild. However since I wanted to focus on the latest release I think it's not necessary to include SVN management at all.

As for the REQUIRED_USE, I guess the author wanted to restrict database systems to only one. I don't know if that's necessary though. I guess I can safely remove that thing. Do you have any advice?
Comment 42 Vince C. 2014-07-31 01:18:03 UTC
Created attachment 381924 [details]
GNUnet 0.10.1 (updated)

Updated the ebuild according to Julian Ospald (comment #40)... I hope ;-) .

GNUnet also depends on gnurl, which I described in bug #518632. The latter has therefore be added as a required runtime dependency.
Comment 43 Vince C. 2014-07-31 01:26:55 UTC
Created attachment 381926 [details, diff]
install-0.10.1.diff. Fetched from Zugaina overlay and updated to this version.

This file is present in Zugaina overlay but as a matter of precaution I add it here as it is referred to by the ebuild. File name updated to match the reference from the ebuild.
Comment 44 Vince C. 2014-07-31 22:24:51 UTC
... also forgot to mention:

I changed libmicrohttpd dependency with required USE flag "messages" after reading ( http://boringtech.com/blog/2013/07/gentoo-gnunet-build-linker-error-mhd_post_process/ ) that GNUnet would fail to compile otherwise. I assumed it is still true although I did not verify. Yet.
Comment 45 Dmitry Dzhus 2014-08-02 16:54:44 UTC
(In reply to Vince C. from comment #42)
> Created attachment 381924 [details]
> GNUnet 0.10.1 (updated)

What does "http" USE-flag do?
Comment 46 Vince C. 2014-11-08 16:45:42 UTC
(In reply to Dmitry Dzhus from comment #45)
> (In reply to Vince C. from comment #42)
> > Created attachment 381924 [details]
> > GNUnet 0.10.1 (updated)
> 
> What does "http" USE-flag do?

Sorry, just saw your comment. Use flag "http" selects microhttpd, an optional, lightweight HTTP server or proxy that GNUnet conditionally depends upon.
Comment 47 lynX 2017-02-20 10:46:53 UTC
youbroketheinternet overlay is taking care of this one, currently