Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120970 - app-admin/zope-config-0.5 makes invalid zope instances on multilib systems
Summary: app-admin/zope-config-0.5 makes invalid zope instances on multilib systems
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 12:45 UTC by Patrick McLean
Modified: 2012-03-18 17:09 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McLean gentoo-dev 2006-01-30 12:45:06 UTC
This is with net-zope/zope-2.9.0:

running zope-config makes a zope instance where bin/zopectl contains something like this:

ZOPE_HOME="/usr/lib/zope-2.9.0"
INSTANCE_HOME="/var/lib/zope/zope-test"
CONFIG_FILE="/var/lib/zope/zope-test/etc/zope.conf"
SOFTWARE_HOME="/usr/lib/zope-2.9.0/lib/python"

The "lib" references are not multilib compatible, they should contain the output of get_libdir (part of multilib.eclass).
Comment 1 Pacho Ramos gentoo-dev 2007-04-13 15:39:42 UTC
Seems fixed in 3.3.0:
# grep -r /usr/lib *
zope-3.3.0/bin/test:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/zopeservice.py:SOFTWARE_HOME=r'/usr/lib64/zope-3.3.0/lib/python'
zope-3.3.0/bin/static-apidoc:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/debugzope:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/runzope:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/zpasswd:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/zopectl:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/pyskel:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/scriptzope:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
zope-3.3.0/bin/i18nextract:SOFTWARE_HOME = r"/usr/lib64/zope-3.3.0/lib/python"
Comment 2 Pacho Ramos gentoo-dev 2007-04-13 15:42:02 UTC
Ups, sorry, is a problem with zope-config :'(
Comment 3 Santiago M. Mola (RETIRED) gentoo-dev 2008-09-24 18:31:54 UTC
Zope team, do you plan to fix this?
Comment 4 Radoslaw Stachowiak (RETIRED) gentoo-dev 2008-09-25 16:30:19 UTC
Yep. we do.
Comment 5 Kirk Lowery 2009-07-28 13:17:37 UTC
box: amd64 -nomultilib (i.e., pure 64 bit)
zope-config: 0.6

I think that the following errors may be the same as specified here. On attempting to install a zope 3.3.1 instance, I get:

/usr/sbin/zope-config: line 96: /usr/lib/zope-3.3.1/bin/mkzopeinstance.py: No such file or directory
mkdir: cannot create directory `/var/log/zope/zope-3.3.1': File exists
rm: cannot remove `/var/lib/zope/zope-3.3.1/log': No such file or directory
ln: creating symbolic link `/var/lib/zope/zope-3.3.1/log': No such file or directory
install: cannot stat `/usr/lib/zope-3.3.1/skel/zope.initd': No such file or directory
sed: can't read /var/lib/zope/zope-3.3.1/etc/zope.conf: No such file or directory
sed: can't read /etc/init.d//zope-3.3.1: No such file or directory
useradd: user zope exists
Adding user zope to group zope
chown: cannot access `/var/lib/zope/zope-3.3.1': No such file or directory
chmod: cannot access `/var/lib/zope/zope-3.3.1': No such file or directory
chmod: cannot access `/var/lib/zope/zope-3.3.1': No such file or directory
chmod: cannot access `/var/lib/zope/zope-3.3.1': No such file or directory
Note: Review settings in /var/lib/zope/zope-3.3.1/etc/zope.conf.
Then you can start your new instance with:
	/etc/init.d/zope-3.3.1 start
************

There are two problems here:

1. the "lib" vs "lib64" path in the first line.
2. in line 5 above, the path says "skel", but in /usr/lib/zope-3.3.1 and /usr/lib64/zope-3.3.1 the directory name is "zopeskel".

Can anyone suggest a workaround so that I can install an instance of 3.3.1?

TIA!
Comment 6 Agostino Sarubbo gentoo-dev 2012-02-01 13:01:56 UTC
this package is masked, removing amd64 from CC
Comment 7 Pacho Ramos gentoo-dev 2012-03-18 17:09:54 UTC
this was dropped