Summary: | Zope 2.7.2 - Permissions on /usr/lib/zope-2.7.2 set incorrectly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeff Balderson <jtb68> |
Component: | Current packages | Assignee: | net-zope (OBSOLETE) <net-zope+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | jeff.kowalczyk, jesse |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | Sparc | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to fix bug 59217 and 58562 |
Description
Jeff Balderson
2004-08-02 19:23:24 UTC
The permissions are set in the setup_security called at the end of src_install. The zope group isn't added until after this has run (in pkg_preinst) - moving the setup_security call to pkg_postinst could sort it out I can confirm having similar permissions-related startup issues with Zope 2.7.2 on x86. This problem may not be confined to Sparc alone. Only by running zopectl with the "foreground" command did I determine that Zope could not reach the Python packages that it needed. Altering group ownership to "zope" for the /usr/lib/zope-2.7.2 tree solved the problem. Created attachment 37193 [details, diff] Patch to fix bug 59217 and 58562 Changes include: - ZS_DIR and ZI_DIR should no longer have double slashes at beginning (fixes bug 58562) - all dir variables now have END slashes. Fixed a few places where it was inconsistant. - moved setup_security call from src_install into pkg_preinst. If setup_security waits until pkg_postinst, the files are already merged into the system. (fixes bug #59217) Suggested change: - a better way (?) to correctly delete .default. Another thing... After I made the necessary fixes to the ebuild, I tried doing an emerge zope (while zope-2.7.2 was still installed) and none of the permissions got fixed.... Why is that? Shouldn't the permissions from an ebuild's image overwrite whatever is on the system? Is this a philosophical question that should be moved to the forum? Or is this an "emerge" tool bug? So what I had to do is emerge -C zope-2.7.2, then emerge zope and the permissions were fixed.. Weird.. I challenge somebody else to try this and see if I'm right. > So what I had to do is emerge -C zope-2.7.2, then emerge zope and the permissions
> were fixed.. Weird.. I challenge somebody else to try this and see if I'm right.
I tried out the zope-2.7.2.ebuild, having applied your patch, and can confirm that this is indeed the case. I removed /usr/lib/zope-2.7.2 prior to re-emerging to rectify the problem.
By the way, these are the components I am now using (in the net-zope category): net-zope/epoz-0.8.2 * net-zope/plonetranslations-0.1 * net-zope/formulator-1.6.2 * net-zope/cmfquickinstallertool-1.5.0 * net-zope/ploneerrorreporting-0.11 * net-zope/plone-2.0.4 * net-zope/portaltransforms-1.0.4 * net-zope/cmfactionicons-0.9 * net-zope/cmf-1.4.7 * net-zope/groupuserfolder-2.0.1 * net-zope/placelesstranslationservice-1.0_rc8 * net-zope/zope-2.7.2 * net-zope/cmfformcontroller-1.0.3_beta * net-zope/btreefolder2-1.0.1 * net-zope/externaleditor-0.8 * net-zope/archetypes-1.2.5_rc5 * This bug has been stagnant for nearly a month now. As the current ebuild is unusable and this patch works, can we get this patch into portage sooner than later? It's not as if it's doing anything crazy. It's fine if it remains masked ~x86 while any other issues are sorted out. Thanks. -Jacob *** Bug 58562 has been marked as a duplicate of this bug. *** finally applied in zope-2.7.2-r1 Apparently, one too many slashes were removed in the ebuild. zope-2.7.2-r2 improperly installs itself into /usr/libzope-2.7.2 instead of usr/lib/zope-2.7.2 Easy to fix with mv. Wow, got bitten by the "too many slashes" myself. Too bad I zapped my entire zope installation in attempting to fix that before seeing this bug... :( added the missing slash - sorry :) NOTE: the ebuild doesn't require zope-config as dependency. you still can use it, but it's not default anymore. the permissions in the /usr/lib are more restrictive... we treat zope like a "normal" library. |