From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10746 invoked by alias); 19 Aug 2010 18:11:06 -0000 Received: (qmail 10737 invoked by uid 22791); 19 Aug 2010 18:11:04 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_DB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Aug 2010 18:10:59 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id A60C72E000; Thu, 19 Aug 2010 11:10:57 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost3.vmware.com (Postfix) with ESMTP id 9C931CD94D; Thu, 19 Aug 2010 11:10:57 -0700 (PDT) Message-ID: <4C6D73B1.7040903@vmware.com> Date: Thu, 19 Aug 2010 18:11:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Tom Tromey CC: "gdb-patches@sourceware.org" Subject: Re: FYI: make python install directory References: <4C6D71ED.2020206@vmware.com> In-Reply-To: <4C6D71ED.2020206@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00348.txt.bz2 Michael Snyder wrote: > Tom Tromey wrote: >> I'm checking this in on the trunk and the 7.2 branch. >> >> PR 11900 says that gdb's breaks help with Python 2.4. >> This happens because the gdb module's __path__ points to a directory >> which does not exist. >> >> This patch fixes the problem by arranging to make the appropriate >> directory at install time. >> >> Joel, I'm afraid your patches in this area will need a small update. >> Or you can just back this out when those go in -- it doesn't matter at >> all to me. I went with this very minimal patch just because it seems >> important to fix for 7.2. > > This seems to generate a new build error for me: > > mkdir cannot create /usr/share/gdb Permission denied Err, with more context: /bin/sh ./../mkinstalldirs /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/share cats=""; for cat in $cats; do \ lang=`basename $cat | sed 's/\.gmo$//'`; \ if [ -f $cat ]; then :; \ elif [ -f ./$cat ]; then cat=./$cat; \ else continue; \ fi; \ dir=/usr/share/locale/$lang/LC_MESSAGES; \ echo /bin/sh ./../mkinstalldirs /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root$dir; \ /bin/sh ./../mkinstalldirs /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root$dir || exit 1; \ echo /usr/bin/install -c -m 644 $cat /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root$dir/gdb.mo; \ /usr/bin/install -c -m 644 $cat /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root$dir/gdb.mo; \ done transformed_name=`t='s&^&&'; \ echo gdbtui | sed -e "$t"` ; \ if test "x$transformed_name" = x; then \ transformed_name=gdbtui ; \ else \ true ; \ fi ; \ /bin/sh ./../mkinstalldirs /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/bin ; \ /usr/bin/install -c gdbtui \ /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/bin/$transformed_name ; \ /bin/sh ./../mkinstalldirs \ /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/share/man/man1 ; \ /usr/bin/install -c -m 644 ./gdb.1 \ /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/share/man/man1/$transformed_name.1 mkdir -p -- /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/bin mkdir -p -- /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/gdb-root/usr/share/man/man1 /bin/sh ./../mkinstalldirs /usr/share/gdb/python/gdb mkdir -p -- /usr/share/gdb/python/gdb mkdir: cannot create directory `/usr/share/gdb': Permission denied make[3]: *** [install-python] Error 1 make[3]: Leaving directory `/build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/BUILD/gdb-7.1.90.20100802/gdb' make[2]: *** [install-gdb] Error 2 make[2]: Leaving directory `/build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/BUILD/gdb-7.1.90.20100802' make[1]: *** [install] Error 2 make[1]: Leaving directory `/build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/BUILD/gdb-7.1.90.20100802' error: Bad exit status from /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/rpm-tmp.3052 (%install) RPM build errors: Bad exit status from /build/mts/release/bora-289896/rhel52-64/gdb-7.1.90/buildroot/rpmtmp/TMP/rpm-tmp.3052 (%install)