Closed GoogleCodeExporter closed 1 year ago
Unfortunately I don't have free time for it. May be I'll make ebuild in the end
of March.
Original comment by ygorbunov@gmail.com
on 5 Mar 2012 at 4:42
I've compiled this information.
Could be useful for writing the ebuild for the new version.
Server: Seen in openerp-server ebuild or Server documentation section
(http://doc.openerp.com/v6.1/install/linux/server/index.html)
Web: Seen in openerp-web ebuild or Web Client documentation section
(http://doc.openerp.com/v6.1/install/linux/web/index.html)
Disclaimer: The documentation for the 6.1 version seems to be based on 6.0
reference documentation and is not really up to date. It is a mess because
comments seems to be shared and are embedded all around. It still has
references to the inexistent separate tar-ball for the web client in 6.1
version.
Original comment by goo...@gmail.com
on 2 Apr 2012 at 7:20
Attachments:
Apparently openerp-web has disappeared because now openerp-server is a complete
WSGI application.
This could trigger an additional dependency for any WSGI compatible server.
Original comment by goo...@gmail.com
on 19 Apr 2012 at 5:44
openerp-server includes WSGI applications.
There are many options to deploy openerp-server 6.1 web client.
Two options are Apache HTTP Server with mod_wsgi and Gunicorn.
An example configuration file for Gunicorn found in
http://thu.openerp.com/open-days-2012/gunicorn-draft.html#%2814%29
"""
import openerp
bind = '127.0.0.1:8069'
pidfile = '.gunicorn.pid'
workers = 4
on_starting = openerp.wsgi.core.on_starting
when_ready = openerp.wsgi.core.when_ready
pre_request = openerp.wsgi.core.pre_request
post_request = openerp.wsgi.core.post_request
conf = openerp.tools.config
conf['addons_path'] =
'/home/openerp/addons/trunk,/home/openerp/web/trunk/addons'
"""
Original comment by goo...@gmail.com
on 23 Apr 2012 at 7:21
The server has its WSGI entry point located in the `openerp.wsgi` module. It
is simply named `application`.
Assembling the pieces together, launching the server with multiple processes
is a simple as:
> gunicorn openerp:wsgi.core.application -c /path/to/gunicorn.conf.py
Original comment by goo...@gmail.com
on 23 Apr 2012 at 7:37
More information at
http://www.openerp.com/node/1106
Original comment by goo...@gmail.com
on 23 Apr 2012 at 7:39
Apparently, it is still possible to run openerp-server as a stand alone multi
thread HTTP server. Internally, openerp-server 6.1 uses WSGI so is not the same
web server as the 6.0 version. It is not a separate package. It is included
with the openerp-server.
So you can run OpenERP stand alone (with the included web server) or as a WSGI
application.
I propose to go for the easiest configuration (stand alone probably) and let
other more complex WSGI deployments triggered by USE flags in future ebuilds
versions.
mod_wsgi flag for Apache2 with mod_wsgi
gunicorn flag for Gunicorn
Original comment by goo...@gmail.com
on 23 Apr 2012 at 8:05
Thank you, googuy.
I will start after May 15.
Original comment by ygorbunov@gmail.com
on 23 Apr 2012 at 9:02
I attach a new version of the previous document with a few comments added.
Finally I'm going to try the manual installation so I could verify if OpenERP
works with those dependencies or if any package is missing.
I'll keep you informed.
Original comment by goo...@gmail.com
on 30 May 2012 at 6:09
Attachments:
OpenERP 6.1 installed manually with the documented dependencies in the attached
document and for now apparently working fine.
dev-python/python-ldap could be optional as it should be only needed by the
module users_ldap. USE flag candidate?
Original comment by goo...@gmail.com
on 13 Jun 2012 at 6:15
openerp-6.1.1_p20120617-r1.ebuild with stand alone multi thread HTTP server
(zsi) is ready.
Original comment by ygorbunov@gmail.com
on 2 Jul 2012 at 6:49
Great work!
I'll try it.
Is the python flag needed for dev-libs/libxslt and dev-libs/libxml2?
I noticed that dev-python/lxml already depends on those packages but apparently
doesn't force the python flag.
So maybe the ebuild could be simplified by putting only lxml as a dependency
and removing libxslt and libxml2.
Original comment by goo...@gmail.com
on 4 Jul 2012 at 7:00
I'll test dev-libs/libxslt and dev-libs/libxml2 without python flag later.
Second step is a gunicorn and zsi use flags.
Original comment by ygorbunov@gmail.com
on 4 Jul 2012 at 7:30
Why you choosed version 6.1-20120617-233256?
Why not doing an ebuild based on the latest version found at
http://nightly.openerp.com/6.1/nightly/src/openerp-6.1-latest.tar.gz
or
http://nightly.openerp.com/6.1/releases/openerp-6.1-latest.tar.gz
Original comment by goo...@gmail.com
on 4 Jul 2012 at 7:33
The init script has:
depend() {
after postgresql
}
What happens if you don't activate the postgres flag because you don't have the
database in localhost?
Original comment by goo...@gmail.com
on 4 Jul 2012 at 7:40
openerp-6.1-latest.tar.gz is changed every night. I need to fix distfile and
it's checksum.
Original comment by ygorbunov@gmail.com
on 4 Jul 2012 at 7:40
>after postgresql
I will fix it
Original comment by ygorbunov@gmail.com
on 4 Jul 2012 at 7:40
`openerp-6.1.1_p20120617-r2.ebuild`:
dev-libs/libxslt[python] and dev-libs/libxml2[python] depends are removed.
Removing "after postgresql" depend in init script if postgres use flag is
missing.
Original comment by ygorbunov@gmail.com
on 7 Jul 2012 at 11:38
`openerp-6.1.1_p20120617-r3.ebuild`:
Openerp depends on dev-python/vatnumber
Original comment by ygorbunov@gmail.com
on 8 Jul 2012 at 8:17
About the removal of dev-libs/libxslt[python] and dev-libs/libxml2[python]:
If the python flag is not really needed, both are already dev-python/lxml
dependencies.
It is better to remove them and simplify.
About CDEPEND in the ebuild, I suggest the following patch:
---
/var/lib/layman/yarik-overlay/app-office/openerp/openerp-6.1.1_p20120617-r3.ebui
ld 2012-07-09 21:22:35.713241122 +0200
+++
/var/lib/layman/yarik-overlay/app-office/openerp/openerp-6.1.1_p20120617-r3.ebui
ld 2012-07-09 21:53:27.203009755 +0200
@@ -18,6 +18,7 @@
IUSE="postgres ldap ssl"
CDEPEND="postgres? ( dev-db/postgresql-server )
+ !postgres? ( dev-db/postgresql-base )
dev-python/lxml
dev-python/psycopg:2
dev-python/pychart
Original comment by goo...@gmail.com
on 9 Jul 2012 at 7:56
Original issue reported on code.google.com by
goo...@gmail.com
on 5 Mar 2012 at 3:49