if the find doesn't find any Cyrus* then the rest of the pipe fails with an error and no error message and the test after the find statement for such an instant is never reached. I would call that a bug.
Harris On Tue, 2002-11-26 at 02:57, Simon Matter wrote: > Harris Landgarten schrieb: > > > > I tracked down the cause of the problem but am still looking for the > > source. > > > > For some reason perl man pages are being installed to /usr/man instead > > of /usr/shared/man > > > > This causes the find /var/tmp/cyrus-imapd-2.1.10-root/usr/share/man > > -type f -name "Cyrus*" to find nothing and the following string of > > commands to fail with an error. > > Did you look at the spec file? It uses %{_mandir}: > > find %{buildroot}%{_mandir} -type f -name "Cyrus*" -print | > > If your installation is broken, I can't fix it for you :) > > Simon > > > > > Do you have any idea what could be causing this? > > > > Harris > > > > On Mon, 2002-11-25 at 04:01, Simon Matter wrote: > > > 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 > > -- > > Harris Landgarten <[EMAIL PROTECTED]> -- Harris Landgarten <[EMAIL PROTECTED]>