User account creation filtered due to spam.

Bug 40289

Summary: [4.5 Regression] share/libstdc++/python/ pollutes common namespace
Product: gcc Reporter: Gerald Pfeifer <gerald>
Component: libstdc++Assignee: Tom Tromey <tromey>
Severity: normal CC: gcc-bugs
Priority: P3    
Version: 4.5.0   
Target Milestone: 4.5.0   
Host: Target:
Build:,, Known to work:
Known to fail: Last reconfirmed: 2009-05-29 17:26:59
Bug Depends on:    
Bug Blocks: 346, 51368    

Description Gerald Pfeifer 2009-05-29 11:11:57 UTC
This patch

  2009-05-28  Tom Tromey  <>
            Phil Muldoon  <>
            Jonathan Wakely  <>

        * python/, , python/libstdcxx/,
        python/libstdcxx/v6/, python/libstdcxx/v6/,
        python/, python/ New files.
        * configure, Rebuild.
        * acinclude.m4 (glibcxx_SUBDIRS): Add python.
        * (SUBDIRS): Add python.

pollutes global namespace under $PREFIX with


which will create conflicts when installing several versions of GCC under
the same $PREFIX.

This is common practice under FreeBSD, for example, where the ports
have been using --program-suffix, --libdir, --libexecdir just fine for
many years.
Comment 1 Richard Biener 2009-05-29 11:26:32 UTC
It probably needs to be split into a separate package for distributors (or go
with a libstdc++ library package).  As long as it is configurable whether these
files get installed the situation is IMHO ok.
Comment 2 Tom Tromey 2009-05-29 18:11:43 UTC
I'm working on a fix.

Distro folks will probably want to rewrite the "hook" file and stick
it somewhere else.  The auto-loading search path is documented in the
gdb manual.
Comment 3 Tom Tromey 2009-06-10 22:58:38 UTC
Subject: Bug 40289

Author: tromey
Date: Wed Jun 10 22:58:22 2009
New Revision: 148357

	PR libstdc++/40289:
	* python/ Rebuild.
	* python/ Compute module path relative to objfile.
	* python/ (pythondir): Redefine.
	( Subst toolexeclibdir.
	(install-data-local): Rewrite.


Comment 4 Tom Tromey 2009-06-10 23:06:20 UTC
I changed this to install the code in a versioned directory.
I think this fixes the problem; reopen this PR if not.