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.
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
Created attachment 25996 [details] zope-2.6.4-r1.ebuild fixed ebuild, some additional features
Created attachment 25997 [details] files/2.6.4/zope.confd
Created attachment 25998 [details] files/2.6.4/zope.initd
Created attachment 25999 [details] files/2.6.4/stx_i18n-0.9.9.patch
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
please always post diffs. i was told that the stx patch isn't needed anymore
Created attachment 26482 [details, diff] files/stx_i18n-1.0.0.patch 1.0.0 patch is more recent.
Created attachment 26484 [details, diff] zope-2.6.4-r2.ebuild.patch introduced useflag utf-8 used stx-patch 1.0.0
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
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...
it still does not apply, don't know what you are doing ;) applied it per hand though :)