Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295636 - [gnustep overlay] SOGo live ebuilds
Summary: [gnustep overlay] SOGo live ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Gnustep project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-04 10:40 UTC by steveb
Modified: 2011-04-21 13:48 UTC (History)
3 users (show)

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


Attachments
files/sogo.envd (sogo.envd,78 bytes, text/plain)
2009-12-04 10:40 UTC, steveb
Details
files/sogod.confd (sogod.confd,2.96 KB, text/plain)
2009-12-04 10:40 UTC, steveb
Details
files/sogod.initd (sogod.initd,1.75 KB, text/plain)
2009-12-04 10:41 UTC, steveb
Details
files/sogod.initd-r3 (sogod.initd-r3,1.70 KB, text/plain)
2009-12-04 10:41 UTC, steveb
Details
sogo-1.1.0.ebuild (sogo-1.1.0.ebuild,4.52 KB, text/plain)
2009-12-04 10:41 UTC, steveb
Details
sogo-999999.ebuild (sogo-999999.ebuild,6.17 KB, text/plain)
2009-12-04 10:42 UTC, steveb
Details
sogo-1.1.0.ebuild (sogo-1.1.0.ebuild,4.53 KB, text/plain)
2009-12-15 00:30 UTC, steveb
Details
sogo-999999.ebuild (sogo-999999.ebuild,6.19 KB, text/plain)
2009-12-15 00:30 UTC, steveb
Details
gnustep-apps/sogo/sogo-999999-r2.ebuild (sogo-999999-r2.ebuild,6.42 KB, text/plain)
2010-01-08 15:12 UTC, steveb
Details
gnustep-apps/sogo/sogo-1.1.0-r1.ebuild (sogo-1.1.0-r1.ebuild,4.76 KB, text/plain)
2010-01-08 15:13 UTC, steveb
Details
gnustep-apps/sogo/files/sogod.initd-r4 (sogod.initd-r4,1.70 KB, text/plain)
2010-01-08 15:14 UTC, steveb
Details
/etc/apache2/modules.d/50_mod_proxy.conf (50_mod_proxy.conf,176 bytes, text/plain)
2010-01-08 21:12 UTC, tataia
Details
The SOGo configuration file for Apache (SOGo.conf,2.93 KB, text/plain)
2010-01-08 21:13 UTC, tataia
Details
The SOGo configuration file for Apache (50_mod_proxy.conf,172 bytes, text/plain)
2010-01-08 21:22 UTC, tataia
Details
gnustep-apps/sogo/files/sogod.initd (sogod.initd,1.72 KB, text/plain)
2010-01-09 02:06 UTC, steveb
Details
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild (sogo-1.1.0-r2.ebuild,4.84 KB, text/plain)
2010-01-09 02:07 UTC, steveb
Details
gnustep-apps/sogo/sogo-999999-r3.ebuild (sogo-999999-r3.ebuild,6.49 KB, text/plain)
2010-01-09 02:07 UTC, steveb
Details
gnustep-apps/sogo/sogo-999999-r3.ebuild (sogo-999999-r3.ebuild,6.46 KB, text/plain)
2010-01-09 02:13 UTC, steveb
Details
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild (sogo-1.1.0-r2.ebuild,4.80 KB, text/plain)
2010-01-09 02:13 UTC, steveb
Details
gnustep-apps/sogo/sogo-999999-r3.ebuild (sogo-999999-r3.ebuild,6.71 KB, text/plain)
2010-01-09 10:44 UTC, steveb
Details
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild (sogo-1.1.0-r2.ebuild,5.05 KB, text/plain)
2010-01-09 10:44 UTC, steveb
Details
gnustep-apps/sogo/sogo-999999.ebuild (sogo-999999.ebuild,5.88 KB, text/plain)
2010-01-12 15:52 UTC, steveb
Details
gnustep-apps/sogo/sogo-1.1.0.ebuild (sogo-1.1.0.ebuild,4.52 KB, text/plain)
2010-01-12 15:53 UTC, steveb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steveb 2009-12-04 10:40:08 UTC
Ebuilds for SOGo 1.1.0 and an Ebuild for the trunk (from their Monotone repository) version.

Reproducible: Always
Comment 1 steveb 2009-12-04 10:40:38 UTC
Created attachment 211987 [details]
files/sogo.envd
Comment 2 steveb 2009-12-04 10:40:50 UTC
Created attachment 211988 [details]
files/sogod.confd
Comment 3 steveb 2009-12-04 10:41:05 UTC
Created attachment 211990 [details]
files/sogod.initd
Comment 4 steveb 2009-12-04 10:41:16 UTC
Created attachment 211991 [details]
files/sogod.initd-r3
Comment 5 steveb 2009-12-04 10:41:38 UTC
Created attachment 211993 [details]
sogo-1.1.0.ebuild

SOGo 1.1.0 Ebuild
Comment 6 steveb 2009-12-04 10:42:03 UTC
Created attachment 211994 [details]
sogo-999999.ebuild

SOGo trunk version
Comment 7 steveb 2009-12-04 10:58:19 UTC
The older Ebuilds from the GNUstep overlay where to chaotic (IMHO) so I rewrote them completely. Both of them are now EAPI 2 Ebuilds.

There are still some open issues with SOGo that need to be addressed upstream. All of the patches that I have posted here are as well submitted upstream. If you want then I can post links to each of them. Just let me know.

I have not added any patches/information to the Ebuilds regarding documentation. The documentation is in some parts wrong. For example: If some one is using SQL for authentication then SOGoAuthenticationMethod should be set to LDAP regardless what the documentation is saying. Without setting it to LDAP the SQL authentication will not work. Their documentation is not mentioning that but you find that info in their mailing list.

And, and, and... it's just a huge mess. And since Gentoo is using GNUstep make >= 2 things get even more complicated. I have submitted all the patches upstream but somehow they only care for Debian (which is using ancient gnustep make) and for Red Hat. All other distros (beside Ubuntu) do not seem to exist in SOGo land.
Comment 8 Bernard Cafarelli gentoo-dev 2009-12-04 13:51:17 UTC
Thanks a lot for both reports! I'll try to review it ASAP.

Does this give you a fully working SOGo? (apart from the documentation errors)
Comment 9 steveb 2009-12-04 14:08:54 UTC
(In reply to comment #8)
> Thanks a lot for both reports! I'll try to review it ASAP.
> 
> Does this give you a fully working SOGo? (apart from the documentation errors)
> 
YES! SOPE and SOGo are a PIA to set up. It took me days of testing and fiddling around with the whole build system to get it up and running. The whole build process they use is just a full mess. Errors all over the place. And then when I finally got it to compile I had issues installing it. Damn! Again fiddling around to get it to install the proper way. And after all that stress... still not working. Turned out that SOPE/SOGo is ultra sensitive when you have custom LDFLAGS (that's the reason I added those additional tests inside the Ebuild to help other Gentoo users to not run into the same issue as I did). But wait! That's not all! The code has issues as well. Agr! Just an example: using MySQL 5 with UTF8 and what do I see? They create a field with 256 characters and declare it as the primary key. BANG! MySQL can't make primary keys longer then 1000 bytes (and it seems that I am the first one to run into this. Yeah. I know. We are in 2009 and UTF8 is not something introduced a bunch of days ago. But what should I say?). When that happened the first time I did not understand the whole GNUstep stuff enough to find the error. But I did not give up and found error by error and fixed each of them to get SOGo up and running on Gentoo. Posting on their bug tracker is fruitless. The guys from Inverse are so overloaded that you don't get any response. Very frustrating. The guys from SOPE don't care much either. But anyway... here are now the Ebuilds and Gentoo users can with the help of those Ebuilds install very easy SOPE/SOGo.

btw: Their new packages don't build the module for Apache. And I have not forced the build since I don't use Apache but nginx. IMHO we should make a separate Ebuild just for the Apache module. Nginx works flawless with SOGo. Just a bunch of rewrites and a proxy statement to SOGo and that's it. Fast, lean, sexy. Perfect! What does one want more?
Comment 10 steveb 2009-12-09 22:39:04 UTC
(In reply to comment #8)
> Thanks a lot for both reports! I'll try to review it ASAP.
> 
> Does this give you a fully working SOGo? (apart from the documentation errors)
> 
Did you had the chance to test both ebuilds? Any feedback/news?
Comment 11 steveb 2009-12-15 00:30:15 UTC
Created attachment 213053 [details]
sogo-1.1.0.ebuild
Comment 12 steveb 2009-12-15 00:30:30 UTC
Created attachment 213054 [details]
sogo-999999.ebuild
Comment 13 steveb 2010-01-08 15:12:45 UTC
Created attachment 215656 [details]
gnustep-apps/sogo/sogo-999999-r2.ebuild
Comment 14 steveb 2010-01-08 15:13:05 UTC
Created attachment 215657 [details]
gnustep-apps/sogo/sogo-1.1.0-r1.ebuild
Comment 15 steveb 2010-01-08 15:14:20 UTC
Created attachment 215659 [details]
gnustep-apps/sogo/files/sogod.initd-r4
Comment 16 steveb 2010-01-08 19:06:22 UTC
(In reply to comment #8)
> Thanks a lot for both reports! I'll try to review it ASAP.
> 
> Does this give you a fully working SOGo? (apart from the documentation errors)
> 
btw: Here another user that was/is able to build SOPE and SOGo with the help of the Ebuilds -> http://bugs.gentoo.org/show_bug.cgi?id=295634#c47

Would be really nice if you could look at the Ebuilds and if possible push them to the GNUstep overlay. IMHO they are on par (if not better since they handle so many cases that the old Ebuilds don't do) with the older Ebuilds for SOPE/SOGo.

I hate to see them lurking here in b.g.o for months without status change. It makes me feel to have wasted so much time on building them and un-bugging both apps only to see them being not widely used. Give me at least some feedback about their progress and what else you need me to fix in order to get them in the GNUstep overlay.
Comment 17 tataia 2010-01-08 21:10:54 UTC
Steve,
The new ebuild it'ok.No problem to build it.Still a problem with init.d script

samba init.d # /etc/init.d/sogod start
 * Starting SOGo service ...
/sbin/start-stop-daemon: unrecognized option '--stdout'
Try `/sbin/start-stop-daemon --help' for more information.                [ !! ]

The file sogod is not copied in to /etc/conf.d
Sogo needs apache to be compiled with proxy and proxy_balancer module, so is needed a patch for this.

and add -D PROXY in conf.d/apache

Also sogo need SOGo.conf for apache

With a little work it will be ready soon I guess
  

 
Comment 18 tataia 2010-01-08 21:12:31 UTC
Created attachment 215711 [details]
/etc/apache2/modules.d/50_mod_proxy.conf
Comment 19 tataia 2010-01-08 21:13:52 UTC
Created attachment 215713 [details]
The SOGo configuration file for Apache
Comment 20 tataia 2010-01-08 21:16:54 UTC
Thanks to Steve the ebuild it's working.
I already synced Thunderbird addresbook and read my email with sogo
Comment 21 tataia 2010-01-08 21:22:27 UTC
Created attachment 215717 [details]
The SOGo configuration file for Apache
Comment 22 steveb 2010-01-09 01:27:03 UTC
> Still a problem with init.d script
> 
> samba init.d # /etc/init.d/sogod start
>  * Starting SOGo service ...
> /sbin/start-stop-daemon: unrecognized option '--stdout'
> Try `/sbin/start-stop-daemon --help' for more information.                [ !!
> ]
> 
Okay. This tells me you are using the 1.1.0 Ebuild and not the 999999 Ebuild. Right?


> The file sogod is not copied in to /etc/conf.d
>
Need to check that.


> Sogo needs apache
>
That is not true. I have no Apache installed and am running SOGo. I use nginx instead of Apache.


> to be compiled with proxy and proxy_balancer module, so is
> needed a patch for this.
> 
Who needs a patch for this? SOGo?


> and add -D PROXY in conf.d/apache
> 
> Also sogo need SOGo.conf for apache
> 
> With a little work it will be ready soon I guess
> 
Aha. Now I see. Yes. If you go with Apache then you need to configure it in order to be able to act as an Proxy / Load Balancer.
Comment 23 steveb 2010-01-09 01:30:39 UTC
(In reply to comment #21)
> Created an attachment (id=215717) [details]
> The SOGo configuration file for Apache
> 
This is not needed. It is already the standard in Gentoo Apache to have those settings in httpd.conf.

The only thing needed is to add "-D PROXY" to APACHE2_OPTS in /etc/conf.d/apache2
Comment 24 steveb 2010-01-09 01:45:12 UTC
(In reply to comment #17)
> The file sogod is not copied in to /etc/conf.d
>
That is right for the SOGo 1.1.0 Ebuilds. The SOGo 999999 Ebuild is only using that file. The 1.1.0 Ebuild and init.d script does not need nor use that file.
Comment 25 steveb 2010-01-09 02:06:32 UTC
Created attachment 215761 [details]
gnustep-apps/sogo/files/sogod.initd
Comment 26 steveb 2010-01-09 02:07:05 UTC
Created attachment 215762 [details]
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild
Comment 27 steveb 2010-01-09 02:07:35 UTC
Created attachment 215764 [details]
gnustep-apps/sogo/sogo-999999-r3.ebuild
Comment 28 steveb 2010-01-09 02:12:31 UTC
The new Ebuilds do now install an Apache configuration as a document and the init.d script for the 1.1.0 branch now does not use any more the option "--stdout" for the log.
Comment 29 steveb 2010-01-09 02:13:22 UTC
Created attachment 215766 [details]
gnustep-apps/sogo/sogo-999999-r3.ebuild

Fixed an error in the Ebuild with newdoc.
Comment 30 steveb 2010-01-09 02:13:39 UTC
Created attachment 215767 [details]
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild

Fixed an error in the Ebuild with newdoc.
Comment 31 tataia 2010-01-09 09:00:21 UTC
(In reply to comment #22)
> Okay. This tells me you are using the 1.1.0 Ebuild and not the 999999 Ebuild.
> Right?
Right

> That is not true. I have no Apache installed and am running SOGo. I use nginx
> instead of Apache.
You're right 
> Aha. Now I see. Yes. If you go with Apache then you need to configure it in
> order to be able to act as an Proxy / Load Balancer.
Yes 

Comment 32 tataia 2010-01-09 09:01:00 UTC
(In reply to comment #23)
> The only thing needed is to add "-D PROXY" to APACHE2_OPTS in
> /etc/conf.d/apache2
ok 

Comment 33 steveb 2010-01-09 10:44:06 UTC
Created attachment 215786 [details]
gnustep-apps/sogo/sogo-999999-r3.ebuild

Added note about configuring Apache for SOGo.
Comment 34 steveb 2010-01-09 10:44:50 UTC
Created attachment 215788 [details]
gnustep-apps/sogo/sogo-1.1.0-r2.ebuild

Added note about configuring Apache for SOGo.
Comment 35 steveb 2010-01-09 10:45:48 UTC
The attachment 50 [details]_mod_proxy.conf is not needed because the Ebuild installs now an example SOGo-Apache.conf.
Comment 36 Bernard Cafarelli gentoo-dev 2010-01-12 15:00:11 UTC
(In reply to comment #16)
Delay in reviewing is caused by the usual: me being the only one working on this, other Gentoo (NX,ftp,chromium,...) taking time, real life (especially in december), ... you name it! But your work is definitly much much appreciated, even if progress on my part can be slow sometimes :/

As I don't think I'll have time soon to really check this, I've juste cleaned a few lines and added the ebuild as 1.1.0-r1 in the gnustep overlay
Same remarks as sope ebuild btw, also I've dropped env.d file, as it sets the same paths as sope env file (also sope env file would be better if dnynamically generated in the ebuild from the real current gnustep environment)
Comment 37 steveb 2010-01-12 15:37:02 UTC
(In reply to comment #36)
> (In reply to comment #16)
> Delay in reviewing is caused by the usual: me being the only one working on
> this, other Gentoo (NX,ftp,chromium,...) taking time, real life (especially in
> december), ... you name it! But your work is definitly much much appreciated,
> even if progress on my part can be slow sometimes :/
> 
> As I don't think I'll have time soon to really check this, I've juste cleaned a
> few lines and added the ebuild as 1.1.0-r1 in the gnustep overlay
> Same remarks as sope ebuild btw, also I've dropped env.d file, as it sets the
> same paths as sope env file (also sope env file would be better if dnynamically
> generated in the ebuild from the real current gnustep environment)
> 
Thanks for the feedback. One issue however. SOPE must be build with LDAP else SOGo will not work. So you should have this in the Ebuild:
DEPEND="gnustep-libs/sope[ldap,mysql?,postgres?]
Comment 38 Bernard Cafarelli gentoo-dev 2010-01-12 15:49:53 UTC
Thanks, fixed! I had made it conditional to test the compilation, and forgot to revert it. 
Comment 39 steveb 2010-01-12 15:52:36 UTC
Created attachment 216233 [details]
gnustep-apps/sogo/sogo-999999.ebuild

Processing feedback from Bernard Cafarelli.
Comment 40 steveb 2010-01-12 15:53:07 UTC
Created attachment 216234 [details]
gnustep-apps/sogo/sogo-1.1.0.ebuild

Processing feedback from Bernard Cafarelli.
Comment 41 steveb 2010-01-12 15:54:12 UTC
I think those bug reports should be changed to only include the live Ebuilds.
Comment 42 steveb 2010-01-12 16:02:43 UTC
(In reply to comment #38)
> Thanks, fixed! I had made it conditional to test the compilation, and forgot to
> revert it. 
> 
No problem. We make a good team :)
Comment 43 Bernard Cafarelli gentoo-dev 2010-01-13 15:17:28 UTC
Same as sope, -9999 is in overlay too now. Thanks a lot for your hard work, next stop after gnustep-make is fixed, move it in tree :)
Comment 44 steveb 2010-01-13 15:39:04 UTC
(In reply to comment #43)
> Same as sope, -9999 is in overlay too now. Thanks a lot for your hard work,
> next stop after gnustep-make is fixed, move it in tree :)
> 
Looks okay to me. I am now going to close this bug report.