Red Hat Bugzilla – Bug 20633
samba srpm doesnt create binaries.
Last modified: 2007-04-18 12:29:46 EDT
rpm -ba samba.spec only compiles and installs but doesnt create srpm or rpms.
rpm -bb samba.spec does the same.
rpm -bs samba.spec does create the srpm.
rpm version is rpm-3.0.5-9.6x
I am perfectly willing to admit I may be doing something wrong, but if I am not, then something is wrong
either with rpm (doubtfully) or the spec file (likely). This is the third package I have ever built/re-built.
Do you have the error messages from the build?
Error messages as follows for rpm -ba samba.spec:
FIle not found by glob: /var/tmp/samba-root/usr/man/man8/smbmnt.8*
File not found by glob: /var/tmp/samba-root/usr/man/man8/smbmount.8*
File not found by glob: /var/tmp/samba-root/usr/man/man8/smbumount.8*
File not found: /var/tmp/samba-root/usr/bin/nmblookup
File not found: /var/tmp/samba-root/usr/bin/rpcclient
File not found: /var/tmp/samba-root/usr/bin/smbclient
File not found: /var/tmp/samba-root/usr/bin/smbspool
File not found: /var/tmp/samba-root/usr/bin/smbtar
File not found by glob: /var/tmp/samba-root/usr/man/man1/smbtar.1*
File not found by glob: /var/tmp/samba-root/usr/man/man1/smbclient.1*
File not found by glob:/var/tmp/samba-root/usr/man/man1/nmblookup.1*
File not found by glob: /var/tmp/samba-root/usr/man/man8/smbspool.8*
File not found: /var/tmp/samba-root/usr/bin/make_smbcodepage
File not found: /var/tmp/samba-root/usr/bin/make_unicodemap
File not found: /var/tmp/samba-root/usr/bin/testparm
File not found: /var/tmp/samba-root/usr/bin/testprns
File not found: /var/tmp/samba-root/usr/bin/make_printerdef
File not found by glob /var/tmp/samba-root/usr/man/man1/make_smbcodepage.1*
File not found by glob: /var/tmp/samba-root/usr/man/man1/make_unicodemap.1*
File not found by glob: /var/tmp/samba-root/usr/man/man1/testparm.1*
File not found by glob: /var/tmp/samba-root/usr/man/man1/testprns.1*
File not found by glob: /var/tmp/samba-root/usr/man/man5/smb.conf.5*
File not found by glob: /var/tmp/samba-root/usr/man/man5/lmhosts.5*
There were no other obvious errors otherwise.
Part of that may be because you have the updated RPM installed, with
possible new FHS-compliant paths for man pages, etc.
Yes, but shouldnt that work anyway? All I am seeing is that it is not creating
the usr/man or bin directories in the /var/tmp/build-root directory. I would
it uses that to install and build packages?
Bottom line is that this spec file was supposedly used to generate the
samba/common/client binaries and it chokes.
What additional tests can you reccommend. If I manually create the missing
build-root directories during the the process and creates the rpm's do I prove
As far as FHS compliance goes, it does create the end-target locations
but not in the build-root directory.
Puzzled, but willing to test further.....
The Man pages are not found becouse the MANPATH is not set in the specfile, and
these are being INSTALLED into the real system
Similarly the binaries are not being found and are likewise being INSTALLED into
I know becouse I now have smbd.old and freinds lying around my system.
Cross tested on a RH7.0 server install with rpm-4.0.4 with the same results.
Confirmed. This is fixed in 7.0, however (the 7.0 SRPM builds fine on
6.2 with new RPM.)