Re: error while using yum

shashidhar velagandula <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
HI Seth ,

while building the python-2.3.5 rpm from source , it is giving error as

[shashi@shashi Desktop]$ rpmbuild -bb
/home/shashi/redhat/SPECS/python-2.3.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.66832
+ umask 022
+ cd /home/shashi/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/shashi/redhat/BUILD
+ rm -rf python2.3-2.3.5
+ /usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz
+ tar -xvvf -
-rw-rw-r-- shashi/shashi 36259840 2009-02-27 16:40 Python-2.3.5.tar
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd python2.3-2.3.5
/var/tmp/rpm-tmp.66832: line 33: cd: python2.3-2.3.5: No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.66832 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.66832 (%prep)
[shashi@shashi Desktop]$

-->
cat /var/tmp/rpm-tmp.66832

#!/bin/sh

  RPM_SOURCE_DIR="/home/shashi/redhat/SOURCES"
  RPM_BUILD_DIR="/home/shashi/redhat/BUILD"
  RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables"
  RPM_ARCH="i386"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="python2.3"
  RPM_PACKAGE_VERSION="2.3.5"
  RPM_PACKAGE_RELEASE="4pydotorg"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  RPM_BUILD_ROOT="/var/tmp/python2.3-2.3.5-root"
  export RPM_BUILD_ROOT


  set -x
  umask 022
  cd /home/shashi/redhat/BUILD
LANG=C
export LANG
unset DISPLAY

cd /home/shashi/redhat/BUILD
rm -rf python2.3-2.3.5
/usr/bin/bzip2 -dc /home/shashi/redhat/SOURCES/Python-2.3.5.tgz | tar -xvvf
-
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd python2.3-2.3.5
[ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

########
#  BUILD
########

exit 0


---> I got the python-2.3.5.spec file from the python-2.3.5.tar , after
placing spec and source.tar in the respective directories to build rpm , it
is giving the above error , how this tmp file is created while using
rpmbuild -bb /home/shashi/redhat/SPECS/python-2.3.spec

I am new to this building rpms ,
Any help ?


Thanks & Regards ,
shashidhar


On Fri, Feb 27, 2009 at 12:17 PM, seth vidal <[email protected]>wrote:

> On Fri, 2009-02-27 at 11:00 +0530, shashidhar velagandula wrote:
> > HI Seth ,
> >
> >            Yes , I have install a copy of python-2.3.5 (using tar
> > source distribution but not rpm because I didn't get python 2.3.5
> > rpm )
> > plz suggest a solution to run yum
>
>
> Your options are few. Installing python 2.3.5 via tar made it so that
> the python modules installed via rpm are not available.
>
> Your choices really are:
>
> 1. uninstall python 2.3.5
> 2. rebuild everything for it.
>
> As a general rule it is not a good idea to ever install pkgs via tar
> when you're using a package managed distribution.
>
> -sv
>
>
> _______________________________________________
> Yum mailing list
> [email protected]
> http://lists.baseurl.org/mailman/listinfo/yum
>

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.