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

Unexpected result 'rpm -bb'



Hello,

This might not be directly related to RH 7.2 but I am using RH 7.2
to do these tasks after all.

I am attempting to build an rpm from bbconf-1.2-1.src.rpm
after doing 'rpm -Uvh bbconf-1.2-1.src.rpm' and then substituting
a patched (with 'blackbox-taskbar-patches-0.4.tar.gz') version of
bbconf-1.2.tar.gz for the original bbconf-1.2.tar.gz contained
in bbconf-1.2-1.src.rpm.

I use 'rpm -bb bbconf.spec' and everything appears to be going
okay until the following:

----------------
Processing files: bbconf-1.2-1
error: File not found: /var/tmp/bbconf-1.2/usr/man/man1/bbconf.1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.7208
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bbconf-1.2
+ DOCDIR=/var/tmp/bbconf-1.2/usr/share/doc/bbconf-1.2
+ export DOCDIR
+ rm -rf /var/tmp/bbconf-1.2/usr/share/doc/bbconf-1.2
+ /bin/mkdir -p /var/tmp/bbconf-1.2/usr/share/doc/bbconf-1.2
+ cp -pr README README.html TODO NEWS AUTHORS COPYING ChangeLog /var/tmp/bbconf-1.2/usr/share/doc/bbconf-1.2
cp: cannot stat `NEWS': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.7208 (%doc)
PreReq: /bin/sh /sbin/ldconfig /sbin/ldconfig
Requires(interp): /bin/sh /sbin/ldconfig /sbin/ldconfig
Requires(pre): /bin/sh
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig


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?

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.

3) Why does this happen when trying to create an rpm?
   It does not happen when compiling the patched bbconf-1.2 directly
   from the tar file. Then I get a corectly working bbconf with no
   problems at all.

Alexander





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