From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6631 invoked by alias); 3 Sep 2009 08:51:52 -0000 Received: (qmail 6622 invoked by uid 22791); 3 Sep 2009 08:51:51 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Sep 2009 08:51:46 +0000 Received: from sunsite.mff.cuni.cz (localhost [127.0.0.1]) by sunsite.mff.cuni.cz (8.14.3/8.14.3) with ESMTP id n838phhM015997; Thu, 3 Sep 2009 10:51:43 +0200 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.14.3/8.14.3/Submit) id n838phxG015996; Thu, 3 Sep 2009 10:51:43 +0200 Date: Thu, 03 Sep 2009 08:51:00 -0000 From: Jakub Jelinek To: Ryan Hill Cc: gcc@gcc.gnu.org Subject: Re: libstdc++.so.6.0.*-gdb.py might be installed at the wrong place Message-ID: <20090903085142.GD3611@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <4A68CD35.1060001@starynkevitch.net> <20090902230819.49f3734d@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090902230819.49f3734d@gentoo.org> User-Agent: Mutt/1.5.19 (2009-01-05) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00067.txt.bz2 On Wed, Sep 02, 2009 at 11:08:19PM -0600, Ryan Hill wrote: > On Fri, 24 Jul 2009 09:51:07 -0600 > Tom Tromey wrote: > > > >>>>> "Basile" == Basile STARYNKEVITCH writes: > > > Basile> Shouldn't a python script for gdb be installed outside of a directory > > Basile> supposed to contain only ELF libraries? Wouldn't a gdb specific > > Basile> subdirectory be a more appropriate place? > > > > Perhaps. It is a problem of several parts. Basically, gdb and all > > possible users of this interface must agree on where to install such > > "hook" files. > > > > I chose to name the .py files after the libraries and install them > > alongside the libraries because it is simple and will not result in any > > naming clash. > > > > There is also the option of installing these files underneath the > > separate debug directory. However, gcc has no knowledge of that. I > > assume that distros will solve this themselves by moving the file after > > make install. > > I was just wondering if there was any consensus among distros about where to > move these. We cannot keep the .py files in the location they're currently > installed; ldconfig is far too noisy about it: > > /sbin/ldconfig: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0-pre9999/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start. > /sbin/ldconfig: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0-pre9999/32/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start. ldconfig by default certainly doesn't search gcc private directories, if you let ldconfig search there by adding it to its configuration, it would be admin error. Jakub