error: Installed (but unpackaged) file(s) found

古冷 2016-11-01 459人围观 yumrepophp
Processing files: php-debuginfo-5.3.10-1.x86_64  
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/php-5.3.10-1.x86_64  
error: Installed (but unpackaged) file(s) found:  
   /.channels/.alias/pear.txt  
   /.channels/.alias/pecl.txt  
   /.channels/.alias/phpdocs.txt  
   /.channels/__uri.reg  
   /.channels/doc.php.net.reg  
   /.channels/pear.php.net.reg  
   /.channels/pecl.php.net.reg  
   /.depdb  
   /.depdblock  
   /.filemap  
   /.lock  
  
  
RPM build errors:  
    Installed (but unpackaged) file(s) found:  
   /.channels/.alias/pear.txt  
   /.channels/.alias/pecl.txt  
   /.channels/.alias/phpdocs.txt  
   /.channels/__uri.reg  
   /.channels/doc.php.net.reg  
   /.channels/pear.php.net.reg  
   /.channels/pecl.php.net.reg  
   /.depdb  
   /.depdblock  
   /.filemap  
   /.lock
解决
在/usr/lib/rpm/macros文件中有一个定义:  
  
  
%_unpackaged_files_terminate_build 1  
  
  
把1改为0只警告  
    
  
找到
%__check_files         %{_rpmconfigdir}/check-files %{buildroot} 加注释


ok!


请发表您的评论
152文章数 1评论数
请关注微信公众号
微信二维码
Powered By Z-BlogPHP