From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 318 invoked by alias); 11 Oct 2012 08:42:51 -0000 Received: (qmail 32496 invoked by uid 22791); 11 Oct 2012 08:42:49 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 08:42:40 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9B8gZl1008123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Oct 2012 04:42:36 -0400 Received: from host2.jankratochvil.net (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9B8gUjh029792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 11 Oct 2012 04:42:33 -0400 Date: Thu, 11 Oct 2012 08:42:00 -0000 From: Jan Kratochvil To: John Gilmore Cc: Joel Brobecker , Doug Evans , Meador Inge , gdb@sourceware.org Subject: Re: Using Py_SetPythonHome Message-ID: <20121011084229.GA15186@host2.jankratochvil.net> References: <20120919080410.GA12296@host2.jankratochvil.net> <20120921153645.GD5439@adacore.com> <20120921154345.GA30615@host2.jankratochvil.net> <20120921155758.GE5439@adacore.com> <20120921172735.GA4341@host2.jankratochvil.net> <20121002130854.GL30746@adacore.com> <20121003151244.GA22734@host2.jankratochvil.net> <20121003153854.GC13994@adacore.com> <20121003175343.GA14317@host2.jankratochvil.net> <201210040732.q947Wok7025038@new.toad.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201210040732.q947Wok7025038@new.toad.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00055.txt.bz2 On Thu, 04 Oct 2012 09:32:50 +0200, John Gilmore wrote: > Package management is a sinkhole, unfortunately. The OLPC project has > unfortunately discovered that despite the great support in the GNU > tools for cross-compilation, the Fedora package management tools are > completely incapable of cross-compilation. So now that they are > making hardware with three architectures to build software for (i386, > i686, and ARM), they need to dedicate three kinds of hardware to > building their Fedora-based releases. They can't make an OS image on > a fast x86 machine that will install or boot on an ARM.(*) > > (I think Debian/Ubuntu package managers suffer from the same problem; They have: http://wiki.debian.org/Multiarch > I recommend NOT assuming that package managers are the cat's pajamas > and that therefore we can all skip the ability to usefully build from > source. This was also my goal, to be able to build from source. Currently you "cannot", as you will build something doing unexpected things (the relocations). > and yet I still don't understand why y'all care, Because GDB introduces serious change in where its files are located without it being relevant to its debugger subject. The same way every other package on system could be self-relocated; it is not. Therefore GDB also should not. If anybody needs it for GDB it should be introduced first as a general package relocation feature. > perhaps someone > should try to write up a solid proposal that explains what the hell is > going on, with pros and cons listed and generally agreed upon. That > might help point a path to making a decision that sticks for a while. $ set | grep /var/lib/mock/fedora-16-x86_64/root $ echo foo >>/var/lib/mock/fedora-16-x86_64/root/usr/share/gdb/python/gdb/__init__.py $ /var/lib/mock/fedora-16-x86_64/root/usr/bin/gdb Traceback (most recent call last): File "", line 70, in File "", line 67, in GdbSetPythonDirectory File "/var/lib/mock/fedora-16-x86_64/root/usr/share/gdb/python/gdb/__init__.py", line 42, in foo This is apparently broken, there is no reason why /var/lib/mock/fedora-16-x86_64/root/usr/bin/gdb should touch anything under /var/lib/mock/fedora-16-x86_64/root , no other package does so. And this leads to the issues what everything should be self-relocated as no other system package is self-relocated. So then GDB tries to self-relocate also Python etc. and it can never work completely. Regards, Jan