Problem rebuilding Simons new source RPM

Simon Matter simon.matter at ch.sauter-bc.com
Mon Nov 25 04:01:59 EST 2002


Hi,

The only thing I can say is that the source RPM build fine on a
untouched RedHat 8.0 installation. I can't make sure it will build on a
system where many packages have been installed from other places than
the distribution RPMs.

It's as easy as this:
- Install RedHat 8.0.
- Rebuild the source RPM.

Simon

> 
> I am currently running Cyrus 2.1.9 under Redhat 8 using Simons source RPM. I had no problem recompiling and
> installing from the source RPM per documentation. Subsequently I have updated many Perl Modules. When I try to
> rebuild the 2.1.10-3 rpm from source I get an error during the rebuild process. The error is from this section of
> shell script:
> 
>  
> 
> # Create filelist for perl package, compress manpages before
> 
> [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
> 
> find /var/tmp/cyrus-imapd-2.1.10-root/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus
> /var/tmp/cyrus-imapd-2.1.10-root/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus -type f -print |
> 
>   sed "s@^/var/tmp/cyrus-imapd-2.1.10-root@@g" |
> 
>   grep -v perllocal.pod |
> 
>   grep -v "\.packlist" > perl-Cyrus-2.1.10-filelist
> 
> find /var/tmp/cyrus-imapd-2.1.10-root/usr/share/man -type f -name "Cyrus*" -print |
> 
>   sed "s@^/var/tmp/cyrus-imapd-2.1.10-root@@g" |
> 
>   grep -v perllocal.pod |
> 
>   grep -v "\.packlist" >> perl-Cyrus-2.1.10-filelist
> 
> if [ "$(cat perl-Cyrus-2.1.10-filelist)X" = "X" ] ; then
> 
>   echo "ERROR: EMPTY FILE LIST"
> 
>   exit -1
> 
> fi
> 
>  
> 
> It appears that perl-Cyrus-2.1.10-filelist is never being written at all. If I manually run these commands after
> erroring out, perl-Cyrus-2.1.10-filelist is properly written. I am not sure how to debug an rpmbuild -rebuild so I
> can see what is going on. BTW, when I try rpmbuild -rebuild on the original 2.1.9 source RPM that I originally
> installed from, it errors out in the same place. When I tried rebuilding on another Redhat 8.0 box on which the perl
> modules are relatively untouched, the rpmbuild ran to conclusion.
> 
>  
> 
> Any ideas on what is going on or how to debug an rpmbuild -rebuild would be appreciated.
> 
>  
> 
> Harris




More information about the Info-cyrus mailing list