I tried to add the Zope Tutorial for both zope-2_6_1 and zope zope-2_6_2 when an error message reports that you need gadfly wich is instead installed. I browsed in gentoo forums in hope for a solution but at last I had to decide to make a work-around for zope-2_6_2, at first, and another one for zope-2_6_2. Here I copy an excerpt from my posts together with the work-around. for zope-2_6_1 ------------------------------ With zope (2_6_1) up&running cd /var/lib/zope/zope-2_6_1 chown zope var chgrp zope-2_6_1 var cd var (if the directory gadfly does not exist do mkdir gadfly) chmod 770 gadfly chown zope gadfly chgrp zope-2_6_1 gadfly cd gadfly (if the directory demo exist, skip the line following this one) mkdir demo chmod 770 demo chown zope demo chgrp zope-2_6_1 demo ------------------------------------ Now you can add the Tutorial. ------------------------------- for zope-2_6_2 ---------------------- chown zope /var/lib/zope/zope-2_6_2/var or chown zope /var/lib/zope/zope-your-version/var in my case ls -l /var/lib/zope/zope-2_6_2 total 3 drwxrwx--- 2 zope zope-2_6_2 80 Nov 18 11:54 Extensions drwxrwx--- 17 zope zope-2_6_2 736 Nov 18 17:00 Products drwxrwx--- 2 zope zope-2_6_2 80 Nov 18 11:54 import drwxrwx--T 3 zope zope-2_6_2 304 Nov 18 17:06 var You do not need to touch (create or change permmissions) of gadfly directory in var. You do not need to add Z Gadfly Database Connection. Just add Zope Tutorial after changing var ownership. ----------------------------- Notice: Please do not forget to change back ownership of var in /var/lib/zope/zope-2_6_1 or /var/lib/zope/zope-2_2_6_2 (complete path /var/lib/zope/your-zope-version/var) directory to root. This applies both to zope-2_6_1 and zope-2_6_2 once the Tutorial has been added. If you want to verify what would happen if you forget... try to stop and start (or restart) zope... --------------------- I hope this would help the mantainer of the Zope ebuild. Ciao, g. Reproducible: Always Steps to Reproduce: 1.Emerge zope 2.6.2 or zope 2.6.2 2.Add the Zope tutorial 3. Actual Results: Please have a look in the Details of this message. Expected Results: Please have a look in the Details of this message. ghost zope # emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test9-gentoo) ================================================================= System uname: 2.6.0-test9-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml alsa gdbm berkdb slang readline arts bonobo svga java mysql postgres X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis motif opengl mozilla ldap cups gnome gtk -kde -qt" ghost zope #
so what package do we need to fix?
both package net-zope/zope version 2.6.1 and package net-zope/zope version 2.6.2
..ehem, sorry, is it better to enter two bugs, one for each of the versions affected?
sorry, but i can't see what i have to change exactly
no, one bug is enough
ix proposed for version 2.6.1 cannot be applied to version 2.6.2 -------------- for version 2.6.1 you cannot add the Zope Tutorial unless you change ownership of /var/lib/zope/zope-2_6_1/var from root to zope user and add the gadfly directory and then add the demo directory in it. owner of both the gadfly and the demo directory must be set to zope, while group must be set to zope-2_6_1 (chmod 770 too) Anyway if you did not set ownership of /var/lib/zope/zope-2_6_1/var back to root (after Tutorial add) other problems are going show up. -------------- for version 2.6.2 a simple change of ownership of directory /var/lib/zope/zope-2_6_2/var from root to zope will suffice -------------- (I am anyway very sorry, but I am not confident enough to alter the ebuild directly because I am new to gentoo and I still need time to learn the portage system... if you think that we have a resonable amount of time, I can try to learn a bit more of gentoo preparing a new ebuild to fix this issue.)
this works for me with zope-2.6.2-r1, my permissions are: heino zope-2_6_2 # l total 2 drwxrwx--- 2 zope zope-2_6_2 80 Oct 30 15:49 Extensions drwxrwx--- 2 zope zope-2_6_2 48 Oct 30 15:49 Products drwxrwx--- 2 zope zope-2_6_2 80 Oct 30 15:49 import drwxrwx--T 3 root zope-2_6_2 408 Dec 13 13:59 var and zope is added to the zope-2_6_2 group, please try again
see my last comment