Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1365126
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类: LINUX

2010-05-10 11:26:30

[root@backup2 root]# wget
--11:10:50-- 
           => `yum-2.0.8-1.src.rpm'
Resolving yum.baseurl.org... 140.211.167.207
Connecting to yum.baseurl.org|140.211.167.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174,443 (170K) [application/x-rpm]
100%[==================================================================================================>] 174,443       76.83K/s            
11:10:54 (76.67 KB/s) - `yum-2.0.8-1.src.rpm' saved [174443/174443]
 
[root@backup2 root]# rpm -ivh yum-2.0.8-1.src.rpm
warning: yum-2.0.8-1.src.rpm: V3 DSA signature: NOKEY, key ID 69886cc7
   1:yum                    warning: user skvidal does not exist - using root
warning: group skvidal does not exist - using root
warning: user skvidal does not exist - using root)
warning: group skvidal does not exist - using root
########################################### [100%]
 
[root@backup2 redhat]# ls
BUILD  RPMS  SOURCES  SPECS  SRPMS
[root@backup2 redhat]# cd SPECS/
[root@backup2 SPECS]# ls
bind.spec  yum.spec
[root@backup2 SPECS]# rpmbuild  -bb yum.spec
[root@backup2 SPECS]# rpmbuild  -bb yum.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.80651
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf yum-2.0.8
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/yum-2.0.8.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd yum-2.0.8
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.22561
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd yum-2.0.8
+ CFLAGS='-O2 -g -march=i386 -mcpu=i686'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -march=i386 -mcpu=i686'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -march=i386 -mcpu=i686'
+ export FFLAGS
+ ./configure --host=i686-redhat-linux-gnu --build=i686-redhat-linux-gnu --target=noarch-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating bin/Makefile
config.status: creating etc/Makefile
config.status: creating Makefile
config.status: creating docs/Makefile
config.status: creating po/Makefile
+ make
for subdir in bin etc docs po ; do \
  make -C $subdir ; \
done
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
for cat in cs.po es.po ru.po uk.po; do \
        lang=`basename $cat .po`; \
        if msgmerge -v $lang.po yum.pot > $lang.pot ; then \
                mv -f $lang.pot $lang.po ; \
                echo "msgmerge -v of $lang succeeded" ; \
        else \
                echo "msgmerge -v of $lang failed" ; \
                rm -f $lang.pot ; \
        fi \
done
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of cs succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of es succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 11.
msgmerge -v of ru succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of uk succeeded
msgfmt --statistics --verbose -o cs.mo cs.po
193 translated messages.
msgfmt --statistics --verbose -o es.mo es.po
178 translated messages, 8 fuzzy translations, 7 untranslated messages.
msgfmt --statistics --verbose -o ru.mo ru.po
170 translated messages, 12 fuzzy translations, 11 untranslated messages.
msgfmt --statistics --verbose -o uk.mo uk.po
193 translated messages.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.22561
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd yum-2.0.8
+ '[' /var/tmp/yum-2.0.8root '!=' / ']'
+ rm -rf /var/tmp/yum-2.0.8root
+ make DESTDIR=/var/tmp/yum-2.0.8root install
for subdir in bin etc docs po ; do \
  make -C $subdir ; \
done
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
for cat in cs.po es.po ru.po uk.po; do \
        lang=`basename $cat .po`; \
        if msgmerge -v $lang.po yum.pot > $lang.pot ; then \
                mv -f $lang.pot $lang.po ; \
                echo "msgmerge -v of $lang succeeded" ; \
        else \
                echo "msgmerge -v of $lang failed" ; \
                rm -f $lang.pot ; \
        fi \
done
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of cs succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of es succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 11.
msgmerge -v of ru succeeded
....................
Read 1 old + 1 reference, merged 194, fuzzied 0, missing 0, obsolete 0.
msgmerge -v of uk succeeded
msgfmt --statistics --verbose -o ru.mo ru.po
170 translated messages, 12 fuzzy translations, 11 untranslated messages.
msgfmt --statistics --verbose -o uk.mo uk.po
193 translated messages.
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
./mkinstalldirs /var/tmp/yum-2.0.8root/usr/bin /var/tmp/yum-2.0.8root/etc /var/tmp/yum-2.0.8root/usr/share/yum /var/tmp/yum-2.0.8root/usr/share/man/man8 /var/tmp/yum-2.0.8root/usr/share/man/man5 /var/tmp/yum-2.0.8root/var/cache/yum/
mkdir /var/tmp/yum-2.0.8root
mkdir /var/tmp/yum-2.0.8root/usr
mkdir /var/tmp/yum-2.0.8root/usr/bin
mkdir /var/tmp/yum-2.0.8root/etc
mkdir /var/tmp/yum-2.0.8root/usr/share
mkdir /var/tmp/yum-2.0.8root/usr/share/yum
mkdir /var/tmp/yum-2.0.8root/usr/share/man
mkdir /var/tmp/yum-2.0.8root/usr/share/man/man8
mkdir /var/tmp/yum-2.0.8root/usr/share/man/man5
mkdir /var/tmp/yum-2.0.8root/var
mkdir /var/tmp/yum-2.0.8root/var/cache
mkdir /var/tmp/yum-2.0.8root/var/cache/yum
for module in ./pullheaders.py ./config.py ./nevral.py ./logger.py ./yumlock.py ./yummain.py ./i18n.py ./pkgaction.py ./serverStuff.py ./archwork.py ./callback.py ./clientStuff.py ./iutil.py ./lilocfg.py ./lilo.py ./grubcfg.py ./checkbootloader.py ./bootloadercfg.py ./up2datetheft.py ./keepalive.py ./urlgrabber.py ./progress_meter.py ./yumcomps.py ./failover.py ./comps.py ./rpmUtils.py  ; do \
  /usr/bin/install -c -m 644 ./$module /var/tmp/yum-2.0.8root/usr/share/yum ; \
done
for subdir in bin etc docs po ; do \
  make -C $subdir install ; \
done
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make -C .. installdirs
make[2]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8'
./mkinstalldirs /var/tmp/yum-2.0.8root/usr/bin /var/tmp/yum-2.0.8root/etc /var/tmp/yum-2.0.8root/usr/share/yum /var/tmp/yum-2.0.8root/usr/share/man/man8 /var/tmp/yum-2.0.8root/usr/share/man/man5 /var/tmp/yum-2.0.8root/var/cache/yum/
make[2]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8'
/usr/bin/install -c -m 755 ../bin/yum-arch /var/tmp/yum-2.0.8root/usr/bin/yum-arch
/usr/bin/install -c -m 755 ../bin/yum /var/tmp/yum-2.0.8root/usr/bin/yum
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/bin'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make -C .. installdirs
make[2]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8'
./mkinstalldirs /var/tmp/yum-2.0.8root/usr/bin /var/tmp/yum-2.0.8root/etc /var/tmp/yum-2.0.8root/usr/share/yum /var/tmp/yum-2.0.8root/usr/share/man/man8 /var/tmp/yum-2.0.8root/usr/share/man/man5 /var/tmp/yum-2.0.8root/var/cache/yum/
make[2]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8'
../mkinstalldirs /var/tmp/yum-2.0.8root/etc/{cron.daily,init.d,logrotate.d}
mkdir /var/tmp/yum-2.0.8root/etc/cron.daily
mkdir /var/tmp/yum-2.0.8root/etc/init.d
mkdir /var/tmp/yum-2.0.8root/etc/logrotate.d
/usr/bin/install -c -m 644 ../etc/yum.conf /var/tmp/yum-2.0.8root/etc/yum.conf
/usr/bin/install -c ../etc/yum.cron /var/tmp/yum-2.0.8root/etc/cron.daily/yum.cron
/usr/bin/install -c ../etc/yum.init /var/tmp/yum-2.0.8root/etc/init.d/yum
/usr/bin/install -c -m 644 ../etc/yum.logrotate /var/tmp/yum-2.0.8root/etc/logrotate.d/yum
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/etc'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make -C .. installdirs
make[2]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8'
./mkinstalldirs /var/tmp/yum-2.0.8root/usr/bin /var/tmp/yum-2.0.8root/etc /var/tmp/yum-2.0.8root/usr/share/yum /var/tmp/yum-2.0.8root/usr/share/man/man8 /var/tmp/yum-2.0.8root/usr/share/man/man5 /var/tmp/yum-2.0.8root/var/cache/yum/
make[2]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8'
/usr/bin/install -c -m 644 ../docs/yum.8 /var/tmp/yum-2.0.8root/usr/share/man/man8/yum.8
/usr/bin/install -c -m 644 ../docs/yum-arch.8 /var/tmp/yum-2.0.8root/usr/share/man/man8/yum-arch.8
/usr/bin/install -c -m 644 ../docs/yum.conf.5 /var/tmp/yum-2.0.8root/usr/share/man/man5/yum.conf.5
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/docs'
make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
`cs.mo' -> `/var/tmp/yum-2.0.8root/usr/share/locale/cs/LC_MESSAGES/yum.mo'
`es.mo' -> `/var/tmp/yum-2.0.8root/usr/share/locale/es/LC_MESSAGES/yum.mo'
`ru.mo' -> `/var/tmp/yum-2.0.8root/usr/share/locale/ru/LC_MESSAGES/yum.mo'
`uk.mo' -> `/var/tmp/yum-2.0.8root/usr/share/locale/uk/LC_MESSAGES/yum.mo'
make[1]: Leaving directory `/usr/src/redhat/BUILD/yum-2.0.8/po'
+ /usr/lib/rpm/find-lang.sh /var/tmp/yum-2.0.8root yum
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: yum-2.0.8-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.17759
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd yum-2.0.8
+ DOCDIR=/var/tmp/yum-2.0.8root/usr/share/doc/yum-2.0.8
+ export DOCDIR
+ rm -rf /var/tmp/yum-2.0.8root/usr/share/doc/yum-2.0.8
+ /bin/mkdir -p /var/tmp/yum-2.0.8root/usr/share/doc/yum-2.0.8
+ cp -pr README AUTHORS COPYING TODO INSTALL ChangeLog /var/tmp/yum-2.0.8root/usr/share/doc/yum-2.0.8
+ exit 0
Provides: config(yum) = 2.0.8-1
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/bash /bin/sh /usr/bin/python config(yum) = 2.0.8-1 libxml2-python python rpm >= 0:4.1.1 rpm-python
Obsoletes: yum-phoebe
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/yum-2.0.8root
Wrote: /usr/src/redhat/RPMS/noarch/yum-2.0.8-1.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.17759
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd yum-2.0.8
+ '[' /var/tmp/yum-2.0.8root '!=' / ']'
+ rm -rf /var/tmp/yum-2.0.8root
+ exit 0
 
[root@backup2 RPMS]# cd noarch/
[root@backup2 noarch]# ls
yum-2.0.8-1.noarch.rpm
[root@backup2 noarch]# rpm -ivh yum-2.0.8-1.noarch.rpm
[root@backup2 noarch]# rpm -ivh yum-2.0.8-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:yum                    ########################################### [100%]

 
 
[root@backup2 noarch]# yum
Traceback (most recent call last):
  File "/usr/bin/yum", line 30, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum/yummain.py", line 159, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.3/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
[root@backup2 noarch]# login: Mon May 10 11:15:19 2010 from 159.226.125.50
 
 
locale 看一下 LC_ALL= 的设定
改成 LC_ALL=C 即可。
export LC_ALL=C
阅读(3273) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~