Hi Fabio, 2006. 06. 15, csütörtök keltezéssel 10.52-kor Fabio Tranchitella ezt írta: > ... Debian didn't changed the distribution path. Taken from > debian/rules:
Confirmed that it should, indeed, be /lib/python. > ./configure \ > --prefix=/usr/lib/$(ZOPE) \ > --with-python=$(PYTHONBIN) \ > --force > $(PYTHONBIN) install.py build > > AFAIK, there is no Debian modification and the upstream build system, > when called as above, will install under > $PREFIX/lib/python2.4/site-packages. > > Do you have any suggestion/patch to workaround this behaviour, instead > of exporting ZOPE_HOME inside the skeletons? Yes. Please change --prefix to --home. I can not identify how the difference is triggered exactly, but note that the original Makefile also uses --home. About my original proposal, the ZOPE_HOME export: it is not necessary then, it seems however to be an upstream inconsistency, because if ZOPE_HOME is not exported, what is the point of defining it at all. (Not a Debian issue, just wanted to note it.) Attached patch that resolves the correct /lib/python path in rules. (Also please don't forget in addition to change the SOFTWARE_HOME paths in all the skeletons too.) -- Balazs Ree
--- debian/rules 2006-06-18 13:45:43.000000000 +0200 +++ /tmp/rules 2006-06-18 13:30:37.000000000 +0200 @@ -84,7 +84,7 @@ # Install Zope and remove *.pyc cd z && $(PYTHONBIN) install.py install \ - --skip-build --prefix $(DEBIAN)/usr/lib/zope$(ZVER) + --skip-build --home $(DEBIAN)/usr/lib/zope$(ZVER) find $(DEBIAN) -name '*.pyc' | xargs -r rm -r # FHS enforcement @@ -113,15 +113,15 @@ fi; else rm -f $$i~ ; fi ; \ done - rm $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/zope/formlib/LICENSE.txt \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/Products/Five/COPYING.txt \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/Products/Five/doc/ZopePublicLicense.txt \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/docutils/COPYING.txt \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/pytz/LICENSE.txt - - chmod 755 $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/DocumentTemplate/release.sh \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/ZPublisher/Client.py \ - $(DEBIAN)/usr/lib/zope2.9/lib/python2.4/site-packages/ZPublisher/Test.py + rm $(DEBIAN)/usr/lib/zope2.9/lib/python/zope/formlib/LICENSE.txt \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/Five/COPYING.txt \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/Products/Five/doc/ZopePublicLicense.txt \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/docutils/COPYING.txt \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/pytz/LICENSE.txt + + chmod 755 $(DEBIAN)/usr/lib/zope2.9/lib/python/DocumentTemplate/release.sh \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/ZPublisher/Client.py \ + $(DEBIAN)/usr/lib/zope2.9/lib/python/ZPublisher/Test.py chmod 644 $(DEBIAN)/usr/lib/zope2.9/bin/stats.py \ $(DEBIAN)/usr/lib/zope2.9/bin/reindex_catalog.py \
signature.asc
Description: Ez az üzenetrész digitális aláírással van ellátva