QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 834|回复: 3

rpmbuild 的疑问

[复制链接]
发表于 2004-1-8 17:55:10 | 显示全部楼层 |阅读模式


rpmbuild --rebuild perl-TimeDate-1.1301-2.src.rpm


一台机器上失败:
[code:1]
/usr/lib/perl5/site_perl/5.8.0/Date/Language/French.pm
/usr/man/man3/Date::Parse.3pm.gz
/usr/man/man3/Date::Format.3pm.gz
/usr/man/man3/Time::Zone.3pm.gzX' = X ']'
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/TimeDate-1.1301
0 blocks
find: /var/tmp/perl-TimeDate-root/usr/lib/debug: No such file or directory
+ /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: perl-TimeDate-1.1301-2
Provides: perl(Date::Format) = 2.22 perl(Date::Format::Generic) perl(Date::Language) = 1.10 perl(Date::Language::Austrian) = 1.01 perl(Date::Language::Czech) = 1.01 perl(Date::Language::Dutch) = 1.01 perl(Date::Language::English) = 1.01 perl(Date::Language::French) = 1.04 perl(Date::Language::German) = 1.02 perl(Date::Language::Italian) = 1.01 perl(Date::Language::Norwegian) = 1.01 perl(Date::Parse) = 2.23 perl(Time::Zone) = 2.21
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires: perl >= 0:5.000 perl >= 0:5.002 perl(Carp) perl(Date::Format) perl(Date::Language) perl(Date::Language::English) perl(Exporter) perl(Time::Local) perl(Time::Zone) perl(strict) perl(vars)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/perl-TimeDate-root
error: Installed (but unpackaged) file(s) found:
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/TimeDate/.packlist
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/perllocal.pod


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/TimeDate/.packlist
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/perllocal.pod
2004年01月08日下午17时29分11秒[root@www perl]#
这里退出了。
[/code:1]



另外一台机器上成功:

[code:1]/usr/man/man3/Date::Parse.3pm.gz
/usr/man/man3/Date::Format.3pm.gz
/usr/man/man3/Time::Zone.3pm.gzX' = X ']'
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/TimeDate-1.1301
0 blocks
find: /var/tmp/perl-TimeDate-root/usr/lib/debug: No such file or directory
+ /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: perl-TimeDate-1.1301-2
Provides: perl(Date::Format) = 2.22 perl(Date::Format::Generic) perl(Date::Language) = 1.10 perl(Date::Language::Austrian) = 1.01 perl(Date::Language::Czech) = 1.01 perl(Date::Language::Dutch) = 1.01 perl(Date::Language::English) = 1.01 perl(Date::Language::French) = 1.04 perl(Date::Language::German) = 1.02 perl(Date::Language::Italian) = 1.01 perl(Date::Language::Norwegian) = 1.01 perl(Date::Parse) = 2.23 perl(Time::Zone) = 2.21
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires: perl >= 0:5.000 perl >= 0:5.002 perl(Carp) perl(Date::Format) perl(Date::Language) perl(Date::Language::English) perl(Exporter) perl(Time::Local) perl(Time::Zone) perl(strict) perl(vars)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/perl-TimeDate-root
warning: Installed (but unpackaged) file(s) found:
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/TimeDate/.packlist
   /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/perllocal.pod
Wrote: /usr/src/redhat/RPMS/noarch/perl-TimeDate-1.1301-2.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.94881
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd TimeDate-1.1301
+ rm -rf /var/tmp/perl-TimeDate-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.94881
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf TimeDate-1.1301
+ exit 0
2004年01月08日下午17时34分46秒[root@test perl]#
[/code:1]


这两台机器可以说软件配置是一模一样的 !!


第一个说:
RPM build errors:
    Installed (but unpackaged) file(s) found:
就没有写 /usr/src/redhat/RPMS/noarch/perl-TimeDate-1.1301-2.noarch.rpm ,就退出了。


第二个有错误,却还是写了 /usr/src/redhat/RPMS/noarch/perl-TimeDate-1.1301-2.noarch.rpm 文件。

奇怪 !!!

  
发表于 2004-1-16 18:55:50 | 显示全部楼层
在/usr/lib/rpm/macros文件中有一个定义:
   %_unpackaged_files_terminate_build      1
如果这个定义为1, 则会出现你的第一台机器的情况, 就是说如果有文件没有被打包, 就会出错推出. 如果
定义为0, 那么即使有文件没有被打包, 也不会退出, 就是这样了.
回复

使用道具 举报

发表于 2004-1-17 20:04:19 | 显示全部楼层
不懂
回复

使用道具 举报

 楼主| 发表于 2004-2-6 00:44:15 | 显示全部楼层
[quote:4ce1ccca84="liu_adams"]在/usr/lib/rpm/macros文件中有一个定义:
   %_unpackaged_files_terminate_build      1
如果这个定义为1, 则会出现你的第一台机器的情况, 就是说如果有文件没有被打包, 就会出错推出. 如果
定义为0, 那么即使有文件没有被打包, 也不会退出, 就是这样了.[/quote]


谢谢了,可是我两台机器,我没改过这玩意的呀。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 02:31 , Processed in 0.160811 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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