Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120004 - [multilib-strict] net-zope/zope-3.2.0 config script
Summary: [multilib-strict] net-zope/zope-3.2.0 config script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 152547
  Show dependency tree
 
Reported: 2006-01-22 19:35 UTC by AJ Armstrong
Modified: 2007-04-13 15:30 UTC (History)
2 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 AJ Armstrong 2006-01-22 19:35:31 UTC
Problem
-------
After installing zope-3.2.0 on an amd64 system in order to test it for keywording, the following error is generated when attempting to configure using:

oberon ~ # emerge --config =zope-3.2.0

Configuring pkg...

 * Instance zope-3.2.0 creation, calling mkzopeinstance..
Could not locate Zope software installation!
 * Patching /var/lib/zope/zope-3.2.0/etc/zdaemon.conf
sed: can't read /var/lib/zope/zope-3.2.0/etc/zdaemon.conf: No such file or directory
 * Default instance created at /var/lib/zope/zope-3.2.0
 * Created default zope user 'admin' with password 'admin'.
 * System uid/gid for instance is: zope:zope.
 * To start instance (default ports 8080,8021) use: /etc/init.d/zope-3.2.0 start
 * To start instance on every restart use: rc-update -a zope-3.2.0 default

On checking, the directory /var/lib/zope/zope-3.2.0/ then only includes an empty log file.  The new default zope instance will not start.

Analysis
---------
pkg_config() calls mkzopeinstance.

mkzopeinstance is a python script to generate a new zope instance that includes the following lines:

for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
  <DELETIA>
else:
    try:
        import zope.app.server
    except ImportError:
        print >>sys.stderr, "Could not locate Zope software installation!"
        sys.exit(1)

The issue appears to be that the script references "lib", but the directory /usr/lib64/zope-3.2.0 contains a "lib64" directory.  Renaming it to lib apparently resolves issue.

This problem is apparently due to the fact that the ebuild properly uses multilib environment vars ($get_libdir) in some places, but some scripts are not aware of this fact.
Comment 1 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-03-18 11:04:37 UTC
amd64 guys - how is it generaly solved? patching or UPSTREAM?

anyway, i have no access to (and knowledge of) amd64 dir layaouts - can someone provide more info here about paths being used?
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-07-20 06:27:34 UTC
upstream would be perfect, but often we end up patching it ourselfs
Comment 3 Pacho Ramos gentoo-dev 2007-04-13 15:30:01 UTC
Fixed in net-zope/zope-3.3.0