Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42111 - Zope 2.6.4 ebuild missing an option
Summary: Zope 2.6.4 ebuild missing an option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-18 21:07 UTC by Jesse Adelman
Modified: 2004-03-14 04:32 UTC (History)
0 users

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


Attachments
zope-2.6.4-r1.ebuild (zope-2.6.4-r1.ebuild,5.08 KB, application/octet-stream)
2004-02-20 13:59 UTC, Jodok Batlogg (RETIRED)
Details
files/2.6.4/zope.confd (zope.confd,956 bytes, application/octet-stream)
2004-02-20 14:00 UTC, Jodok Batlogg (RETIRED)
Details
files/2.6.4/zope.initd (zope.initd,3.76 KB, application/octet-stream)
2004-02-20 14:01 UTC, Jodok Batlogg (RETIRED)
Details
files/2.6.4/stx_i18n-0.9.9.patch (stx_i18n-0.9.9.patch,4.36 KB, application/octet-stream)
2004-02-20 14:02 UTC, Jodok Batlogg (RETIRED)
Details
files/stx_i18n-1.0.0.patch (stx_i18n-1.0.0.patch,7.89 KB, patch)
2004-02-27 12:18 UTC, Jodok Batlogg (RETIRED)
Details | Diff
zope-2.6.4-r2.ebuild.patch (zope-2.6.4-r2.ebuild.patch,3.97 KB, patch)
2004-02-27 12:31 UTC, Jodok Batlogg (RETIRED)
Details | Diff
zope-2.6.4-r2.ebuild.patch (zope-2.6.4-r2.ebuild.patch,3.61 KB, patch)
2004-03-13 15:38 UTC, Jodok Batlogg (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Adelman 2004-02-18 21:07:56 UTC
Hi, all. Just found that the new 2.6.4 ebuild doesn't add this to /etc/conf.d/zope-2_6_4:

ZOPE_OPTS="-u zope"

The ebuild does add the user, and does have the user setup in /etc/zope-config.conf.

While an easy bug to fix, it might flummox a new Zope user who doesn't have an earlier ebuild installed to compare configs against.

Reproducible: Always
Steps to Reproduce:
1. emerge zope
2. /etc/init.d/zope-2_6_4 start
3.


Actual Results:  
In /var/log/zope/zope-2_6_4:

2004-02-18T20:54:13 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File //usr/share/zope//zope-2.6.4/z2.py, line 843, in ?
SystemExit: A user was not specified to setuid to; fix this to start as root (se
e doc/SETUID.txt)

Expected Results:  
Services start, parent Zope process creates subprocess under "zope" user context.
Comment 1 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 13:56:47 UTC
o.k., i think i fixed it :)
i've added some more features - kutsuya, i'll be happy if they make their way to portage..

- added private environment variable ZOPE_ENCODING. based on this zope stx will be patched to allow unicode (necessary e.g. for german)
- files/2.6.4/conf.d holds the information for the environment (ZOPEOPTS -u zope)
- files/2.6.4/init.d is now also filled in with the right python version

- logging: two log files are created. zope-2_6_4 is the "normal" log file, zope-2_6_4.log is the startup log of zope. the second is quite useful when zope won't startup
Comment 2 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 13:59:58 UTC
Created attachment 25996 [details]
zope-2.6.4-r1.ebuild

fixed ebuild, some additional features
Comment 3 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 14:00:45 UTC
Created attachment 25997 [details]
files/2.6.4/zope.confd
Comment 4 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 14:01:27 UTC
Created attachment 25998 [details]
files/2.6.4/zope.initd
Comment 5 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 14:02:15 UTC
Created attachment 25999 [details]
files/2.6.4/stx_i18n-0.9.9.patch
Comment 6 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-20 14:18:51 UTC
one thing we should think about: python-version...
- "everybody" is running zope2.6 on py2.3 although it is not officially supported by zope corp...
i think we should move to py 2.3.3
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-21 04:17:47 UTC
please always post diffs. i was told that the stx patch isn't needed anymore
Comment 8 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-27 12:18:14 UTC
Created attachment 26482 [details, diff]
files/stx_i18n-1.0.0.patch

1.0.0 patch is more recent.
Comment 9 Jodok Batlogg (RETIRED) gentoo-dev 2004-02-27 12:31:31 UTC
Created attachment 26484 [details, diff]
zope-2.6.4-r2.ebuild.patch

introduced useflag utf-8
used stx-patch 1.0.0
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2004-02-29 06:01:37 UTC
sorry, your patch does not apply correctly to current 2.6.4 ebuild:

patching file zope-2.6.4.ebuild
Hunk #2 succeeded at 38 with fuzz 2.
Hunk #3 FAILED at 86.
Hunk #4 FAILED at 102.
Hunk #5 FAILED at 137.
Hunk #6 FAILED at 145.
4 out of 6 hunks FAILED -- saving rejects to file zope-2.6.4.ebuild.rej
Comment 11 Jodok Batlogg (RETIRED) gentoo-dev 2004-03-13 15:38:37 UTC
Created attachment 27315 [details, diff]
zope-2.6.4-r2.ebuild.patch

unbelievable :) i looks like i have diffed sth. else than the original
ebuild...
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-14 04:32:21 UTC
it still does not apply, don't know what you are doing ;)

applied it per hand though :)