rpm build problem - gz vs bz2

David Relson relson at osagesoftware.com
Sun Oct 6 16:53:27 CEST 2002


Matthias,

I noticed a detail this morning that I think explains my build problem.

### Here are some lines from the build.log I sent to you

	+ gzip -f -9 /var/tmp/bogofilter-0.7.4-root//usr/share/man/man1/bogofilter.1

	... [snip] ...

	error: File not found: 
/var/tmp/bogofilter-0.7.4-root/usr/share/man/man1/bogofilter.1.gz

	... [snip] ...

	RPM build errors:
	    File not found: 
/var/tmp/bogofilter-0.7.4-root/usr/share/man/man1/bogofilter.1.gz

### Here are the contents of /var/tmp/...

	-rw-r--r-- 1 root root 2839 Oct  6 10:40 
/var/tmp/bogofilter-0.7.4-root/usr/share/man/man1/bogofilter.1.bz2

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:

	diff -u -r1.2 bogofilter.spec.in
	--- bogofilter.spec.in	24 Sep 2002 12:47:09 -0000	1.2
	+++ bogofilter.spec.in	6 Oct 2002 14:49:29 -0000
	@@ -55,7 +58,7 @@
	
	 %files
	 %defattr(-,root,root)
	-%{_mandir}/man1/bogofilter.1.gz
	+%{_mandir}/man1/bogofilter.1.bz2
	 %{_bindir}/bogofilter
	 %{_bindir}/bogoutil
	 %{_bindir}/bogoupgrade.pl

With this change, the rpm builds fine on my Mandrake 8.2 system.

Should I commit this to CVS?

David



More information about the bogofilter-dev mailing list