Re: Another Python namespace pollution
Matthias Klose <[email protected]>
| Newsgroups | gmane.comp.gcc.patches,gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
On 27.01.2011 20:54, Gerald Pfeifer wrote: > On Thu, 27 Jan 2011, Gary Benson wrote: >>> The files should reside in a directory that is private to gcc or >>> at least mangled with the gcc version it comes from. Otherwise >>> multiple parallel gcc installations conflict. >> Ah, ok, that shouldn't be too hard. I'll get working on a patch. > > Thanks! > > In case you are wondering where to put them, there is prior art > based on Tom's fix: > > ./share/gcc-4.6.0/python/libstdcxx/__init__.py<--- The good > ./share/gcc-4.6.0/python/libstdcxx/v6/printers.py > ./share/gcc-4.6.0/python/libstdcxx/v6/__init__.py > ./share/python/classfile.py<--- The bad > ./share/python/aotcompile.py > ./lib/libstdc++.so.6-gdb.py<--- The ugly :-) afaiu the latter one is by design, and has to match the shared object name.