Description of problem: Rebuilding samba source RPM has the side effect of overwriting /sbin/mount.smbfs: lrwxrwxrwx 1 root root 42 Jul 27 12:44 /sbin/mount.smbfs -> /var/tmp/samba-3.0.4-root/usr/bin/smbmount Version-Release number of selected component (if applicable): Observed in 3.0.4-6.3E How reproducible: Always. Steps to Reproduce: 1. Install samba source rpm. 2. Run "rpmbuild -bb /usr/src/redhat/SPECS/samba.spec" 3. Actual results: /sbin/mount.smbfs symlink changes from /usr/bin/smbmount to /var/tmp/samba-3.0.4-root/usr/bin/smbmount. Expected results: No system file has to be modified during the rebuild process. Additional info: The samba source file: samba-3.0.4/source/script/installbin.sh considers "smbmount" as a special case during the install process, and crates a symlink for "mount.smbfs": ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs since redhat's spec file doesn't use "DESTDIR" in %makeinstall, this variable is empty and /sbin/mount.smbfs is overwriten. Given that the correct symlink is created in the spec section "# Install other stuff". This problem could be solved if installbin.sh doesn't consider smbmount as a special case (see attached patch).
Created attachment 102245 [details] installbin.sh patch
Verified bug on rebuild of errata srpm on stable 3AS box. .qa.[root@bender SPECS]# ls -al /sbin/mount.smb* lrwxrwxrwx 1 root root 19 Jul 25 05:39 /sbin/mount.smb -> ../usr/bin/smbmount lrwxrwxrwx 1 root root 42 Jul 29 03:52 /sbin/mount.smbfs -> /var/tmp/samba-3.0.4-root/usr/bin/smbmount