QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 834|回复: 0

制作rpm包,报错getOutputFrom()断开的管道

[复制链接]
发表于 2006-1-6 15:45:03 | 显示全部楼层 |阅读模式
我的spec文件

Summary: ca
Name: ca4.2
Version: 4.2
Release: 2
Vendor: pzy
Copyright: commercial
Group: Applications/Engineering
Source: jakarta-tomcat-4.1.29.tar.gz
%description
caversion4.2
%prep:
#prep start
%build
#build start.
%install
#install start.
%files
%defattr (-,root,root)

/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/conf
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/common
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/work
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/temp
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/shared
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/logs
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/README.txt
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/RELEASE-NOTES-4.1.txt
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/RELEASE-PLAN-4.1.txt
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/LICENSE
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/RUNNING.txt
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/manager.xml
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/admin.xml
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/WEB-INF
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/index.jsp
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/jakarta-banner.gif


#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/tomcat.gif
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/tomcat-power.gif
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT/
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps/ROOT
#/usr/src/redhat/BUILD/jakarta-tomcat-4.1.29/webapps
#%doc jakarta-tomcat-4.1.29/README.txt
#%doc /usr/src/redhat/SOURCES/asdf.xml
#/usr
%changelog
* Fri May 1 2005 peizhiyou
-ASDF





[root@localhost redhat]# rpmbuild -bb SPECS/ca4.2.spec

执行的信息如下:


Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.32880
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ :
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.32880
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.32880
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: ca4.2-4.2-2
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
getOutputFrom(): 断开的管道


上面的命令有时候成功,但多数情况失败,成功机率极小
我在网上搜了一些信息,有的说是rpm工具包的bug,有的说在spec文件头增加一个什么buildroot之类的变量,有的说redhat8下面可以,redhat9下的不行,总之是没个结果,各位linux 高手集中解决一下这个问题吧,几年前就有人遇到这个文体,老问题了,看来都有几年的历史了,该给个准确答复了.
我等等等等信
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-3 00:22 , Processed in 0.040230 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表