rpm build problem - gz vs bz2

Gyepi SAM gyepi at praxis-sw.com
Sun Oct 6 18:58:25 CEST 2002


On Sun, Oct 06, 2002 at 10:53:27AM -0400, David Relson wrote:

> Notice that a .bz2 file was built and that the error message complains 
> about a .gz file !!! Could the problem be that bogofilter.spec.in names a 
> .gz file while the rpmbuild produces a .bz2???
> 
> A simple one line change in bogofilter.spec.in seemed worth trying:
> 	-%{_mandir}/man1/bogofilter.1.gz
> 	+%{_mandir}/man1/bogofilter.1.bz2

> Should I commit this to CVS?

No.
Most new versions of the rpm tools are configured to automatically compress man and info files.
Some use gzip, others use bzip, many older systems do no compression at all.

You system uses bzip, mine uses gzip, whomever added the gzip line to the spec file probably has a
system that does no compression.  The correct change, IMO, is:

 
> 	+%{_mandir}/man1/bogofilter.1*

which allows all the different systems to coexist. One may even modify the line that gzips to test
for the existence of gzip first.

-Gyepi



More information about the bogofilter-dev mailing list