On 25 Nov 2002 at 16:53, Simon Matter wrote about "Re: Problem rebuilding Simons new source RPM":
> 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. > > > > Do you have any idea what could be causing this? > > Sorry, no. Maybe there is something wrong with you man path? I'm the original author if that piece of shell code for my packages of Cyrus 2.0.x. When I had reports of these kind it was because the installed copy of Perl was not installed via RPM (and hence the Perl man pages location as reported by perl -V weren't under the path described by the %{_mandir} RPM macro (/usr/share/man)). HTH, - Ramiro > > Simon > > > > > 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/i38 > > > > 6-linux-thread-multi/Cyrus > > > > /var/tmp/cyrus-imapd-2.1.10-root/usr/lib/perl5/site_perl/5.8.0/i38 > > > > 6-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]> > > -- > Simon Matter Tel: +41 61 695 57 35 > Fr.Sauter AG / CIT Fax: +41 61 695 53 30 > Im Surinam 55 > CH-4016 Basel [mailto:[EMAIL PROTECTED]] >