FYI: make python install directory

Michael Snyder msnyder@vmware.com
Thu Aug 19 18:11:00 GMT 2010


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)



More information about the Gdb-patches mailing list