Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Every update of zope products requires fixing symlink
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cableguy
n00b
n00b


Joined: 03 May 2004
Posts: 12

PostPosted: Thu Sep 16, 2004 11:05 am    Post subject: Every update of zope products requires fixing symlink Reply with quote

Hi all!

I am having some trouble about maintaining my zope products up-to-date.

Zope products ebuilds install into /usr/share/zproduct/productname-version/ProductName.

This structure is problematic - it is impossible to add the line "products /usr/share/zproducts" to zope.conf, since zope searches for it in /usr/share/zproduct/ProductName.

To resolve it, I ended up with creating many symlinks from my zope instance. For example I have: /var/lib/zope/zope-2.7.2/Products/CMFCore -> /usr/share/zproduct/cmf-1.4.7/CMFCore.

The problem is that everytime each of these products is updated, the symbolic links break, since the old versions are automatically removed.

Does anyone have a solution to this problem?
Back to top
View user's profile Send private message
CapnKirk
n00b
n00b


Joined: 17 Aug 2004
Posts: 74
Location: Philadelphia, PA

PostPosted: Mon Sep 20, 2004 12:51 pm    Post subject: Reply with quote

It's not well-documented, but the "Gentoo Way" for installing Zope Products is
Code:
# emerge [the Product]
# zprod-manager add

Then select your product (usually all of them that are not selected) and install them.

If you have done that and still have those problems, then I'd suggest backing up your Data.fs file to somewhere safe, unemerge Zope and all Products and start over with the procedure above. Then move your Data.fs file back to your instance directory and restart Zope.

You should not have to make these symlinks. That's not how it's intended to work with the Zope Product installs.

HTH,

Kirk
Back to top
View user's profile Send private message
radek
Retired Dev
Retired Dev


Joined: 02 Aug 2003
Posts: 11
Location: Kraków,Poland,Europe

PostPosted: Tue Sep 28, 2004 9:14 pm    Post subject: zprod-manager Reply with quote

Symlinks work, but due to the fact that you can have many instances of many versions of zope, you should have _copies_ of products in each instance. do not use symlinks or it will bite You at some point of time.

if you have default instance set (zope-config --zidef-set) which you can check on 'cat /var/lib/zope/.default' and you have emerge zprod-manager, then after emerging any zope product, it will be copied into default instance.

please test also zprod-manager-0.2 it has some bugfixes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum