[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Unexpected result 'rpm -bb'



On Thu, Dec 27, 2001 at 06:26:58PM +0100, Michael Schwendt wrote:

> On 2001-12-27, Alexander Volovics wrote:
> 
> >RPM build errors:
> >    File not found: /var/tmp/bbconf-1.2/usr/man/man1/bbconf.1
> >    Bad exit status from /var/tmp/rpm-tmp.7208 (%doc)
> >--------------------
> >
> >When I look in /var/tmp/bbconf-1.2/usr/man/man1/ it does indeed
> >NOT contain 'bbconf.1' but it DOES contain 'bbconf.1.gz'.
> >
> >But my patched version of bbconf-1.2.tar.gz does NOT contain 
> >the gzipped version 'bbconf.1.gz', only the original 'bbconf.1'.
> >
> >1) Where does this gzipped version come from?
> 
> Red Hat RPm macros that compress manual pages after the %install
> script part of the spec file.
> 
> >2) How can I correct this behaviour?
> >   The 'spec' file in bbconf-1.2-1.src.rpm does not contain any
> >   line with '%files' related to man pages.
> >   The only line with '%files' is: "%files -f ../file.list.%{name}".
> >   I do not see how I can use this to correct the problem.
> 
> Without having looked at that package, you could gzip the man
> pages before the file list gets created.

This does not work!

The file "file.list.bbconf" gets created during the whole 
"configure/make/install" process started by 'rpm -bb bbconf.spec'.

Before I start 'rpm -bb bbconf.spec' the directory /usr/src/redhat/BUILD
is empty. After running 'rpm -bb bbconf.spec' and getting the error
message with respect to bbconf.1 not being found this directory contains
the directory bbconf-1.2 AND the file 'file.list.bbconf'.

In the file list the file 'bbconf.1' is mentioned.
This happens whether the original tar.gz file 'bbconf-1.2.tar.gz' contains
bbconf.1 or bbconf.1.gz!

And to add insult to injury when replacing bbconf.1 with bbconf.1.gz
in the original bbconf-1.2.tar.gz the directory 'bbconf-1.2' in
/var/tmp used for building the rpm now contains BOTH bbconf.1 AND
bbconf.1.gz.

The RH rpm macros not only seem to create bbconf.1.gz when the original
tar.gz contains bbconf.1 but they also seem to create bbconf.1 when
the original tar.gz contains bbconf.1.gz.

Alexander
  
> 
> 
> _______________________________________________
> enigma-list mailing list
> enigma-list redhat com
> https://listman.redhat.com/mailman/listinfo/enigma-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]