Package: zope-textindexng2 Version: 1:2.0.8-4 Severity: normal [I had to report this bug on an i386 machine as reportbug currently segfaults on amd64.]
When this package is built on the amd64 architecture, the files that are to go in the /usr/lib/python2.2/site-packages/zope-textindexng2 directory fail to be installed. This is not obvious when the package is being built, but leads to numerous test errors during installation of the package [1]. I tracked this down to the debian/install file. The following patch allowed me to build the package correctly on amd64 and it now installs with all tests passing: --- debian/install.orig 2005-02-09 22:25:08.575769172 -0500 +++ debian/install 2005-02-09 22:10:34.499301101 -0500 @@ -1,2 +1,3 @@ build/lib.linux-i686-2.2/* usr/lib/python2.2/site-packages/zope-textindexng2 +build/lib.linux-x86_64-2.2/* usr/lib/python2.2/site-packages/zope-textindexng2 debian/zope-textindexng2.pth usr/lib/python2.2/site-packages/ I just added the line for the x86_64 architecture. This works because dh_install ignores patterns that do not match. However, if someone is building both the i386 and amd64 version of the package in the same build directory and forgets to do a clean between each build, then they could end up with a bad package where the amd64 files overwrite the i386 ones. The alternative is to have one install file for each architecture. Is this even possible? How is this situation handled in other packages? Thanks, Per [1] Errors from apt-get when installing the broken package: Setting up zope-textindexng2 (2.0.8-4) ... Adding /usr/lib/zope/lib/python to sys.path. Module testStopwords.py failed to load exceptions.ImportError: No module named indexsupport File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testStopwords.py", line 12, in ? from Products.TextIndexNG2.Stopwords import Stopwords File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Stopwords.py", line 21, in ? from indexsupport import stopwordfilter Module testNormalizer.py failed to load exceptions.ImportError: No module named normalizer File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testNormalizer.py", line 11, in ? import normalizer Module testGermanQueryParser.py failed to load exceptions.ImportError: No module named TXNGSplitter File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testGermanQueryParser.py", line 12, in ? from Products.TextIndexNG2.parsers.GermanQueryParser import Parser File "/usr/lib/zope/lib/python/Products/TextIndexNG2/parsers/__init__.py", line 24, in ? mod = __import__(p, globals(), globals(), __path__) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/parsers/GermanQueryParser/__init__.py", line 1, in ? from GermanQueryParser import Parser File "/usr/lib/zope/lib/python/Products/TextIndexNG2/parsers/GermanQueryParser/GermanQueryParser.py", line 17, in ? from Products.TextIndexNG2.ParseTree import * File "/usr/lib/zope/lib/python/Products/TextIndexNG2/ParseTree.py", line 19, in ? import TXNGSplitter Module testTXNGSplitter.py failed to load exceptions.ImportError: No module named TXNGSplitter File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testTXNGSplitter.py", line 11, in ? from TXNGSplitter import TXNGSplitter Module testTextIndexNG.py failed to load exceptions.ImportError: cannot import name Evaluator File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testTextIndexNG.py", line 12, in ? from Products.TextIndexNG2 import TextIndexNG File "/usr/lib/zope/lib/python/Products/TextIndexNG2/TextIndexNG.py", line 37, in ? from ParseTree import Evaluator Module testPyQueryParser.py failed to load exceptions.ImportError: cannot import name WordNode File "/usr/lib/zope/utilities/testrunner.py", line 60, in getSuiteFromFile module=imp.load_module(name, file, pathname, desc) File "testPyQueryParser.py", line 14, in ? from Products.TextIndexNG2.ParseTree import WordNode, TruncNode, GlobNode, SimNode, LTruncNode testDocids (testStorage.StorageTests) ... ERROR testInterface (testStorage.StorageTests) ... ERROR testReindex (testStorage.StorageTests) ... ERROR testReindexRemoving (testStorage.StorageTests) ... ERROR testSimple (testStorage.StorageTests) ... ERROR testWordFrequency (testStorage.StorageTests) ... ERROR testInterface (testLexiconNG.StandardLexiconTests) ... ERROR testLeftTruncation (testLexiconNG.StandardLexiconTests) ... ERROR testRightTruncation (testLexiconNG.StandardLexiconTests) ... ERROR testSimple (testLexiconNG.StandardLexiconTests) ... ERROR testgetWordIdLatin1 (testLexiconNG.StandardLexiconTests) ... ERROR testgetWordIdList (testLexiconNG.StandardLexiconTests) ... ERROR testgetWordIdUnicode (testLexiconNG.StandardLexiconTests) ... ERROR ====================================================================== ERROR: testDocids (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testInterface (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testReindex (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testReindexRemoving (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testSimple (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testWordFrequency (testStorage.StorageTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testStorage.py", line 20, in setUp self._storage = SR.getRegisteredObject('StandardStorage')() File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardStorage" not registered in registry "storages" ====================================================================== ERROR: testInterface (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testLeftTruncation (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testRightTruncation (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testSimple (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testgetWordIdLatin1 (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testgetWordIdList (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ====================================================================== ERROR: testgetWordIdUnicode (testLexiconNG.StandardLexiconTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "testLexiconNG.py", line 27, in setUp self._lexicon = LR.getRegisteredObject('StandardLexicon')(truncate_left=1) File "/usr/lib/zope/lib/python/Products/TextIndexNG2/Registry.py", line 47, in getRegisteredObject raise RegistryException, \ RegistryException: "StandardLexicon" not registered in registry "lexicons" ---------------------------------------------------------------------- Ran 13 tests in 0.004s FAILED (errors=13) ====================================================================== OVERALL FAILED (total errors=13) dpkg: error processing zope-textindexng2 (--configure): subprocess post-installation script returned error exit status 1 -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages zope-textindexng2 depends on: ii catdoc 0.93.4-2 MS-Word to TeX or plain text conve ii debconf 1.4.30.11 Debian configuration management sy ii gs-common 0.3.6-0.1 Common files for different Ghostsc ii ppthtml 0.5.1-2 A program for converting Microsoft ii wv 1.0.2-0.1 Convert and preview Microsoft Word ii xpdf-utils 3.00-12 Portable Document Format (PDF) sui ii zope 2.6.4-1.6 Open Source Web Application Server -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]