Hi, I did a "rpm -ivh rssh-2.3.2-1.src.rpm", cd'd into /usr/src/packages (openSUSE 11.0 x86_64) and tried a simple "rpmbuild -bb SPECS/rssh.spec". It ends with
+ cd /usr/src/packages/BUILD
+ cd rssh-2.3.2
+ /bin/rm -rf /tmp/rssh-2.3.2-buildroot
+ make DESTDIR=/tmp/rssh-2.3.2-buildroot install
make[1]: Entering directory `/usr/src/packages/BUILD/rssh-2.3.2'
test -z "/usr/bin" || mkdir -p -- "/tmp/rssh-2.3.2-buildroot/usr/bin"
/usr/bin/install -c 'rssh' '/tmp/rssh-2.3.2-buildroot/usr/bin/rssh'
test -z "/etc" || mkdir -p -- "/tmp/rssh-2.3.2-buildroot/etc"
/usr/bin/install -c -m 644 'rssh.conf' '/tmp/rssh-2.3.2-buildroot/etc/rssh.conf'
test -z "/usr/lib64" || mkdir -p -- "/tmp/rssh-2.3.2-buildroot/usr/lib64"
/usr/bin/install -c 'rssh_chroot_helper' '/tmp/rssh-2.3.2-buildroot/usr/lib64/rssh_chroot_helper'
make install-exec-hook
make[2]: Entering directory `/usr/src/packages/BUILD/rssh-2.3.2'
chmod u+s /usr/lib64/rssh_chroot_helper
chmod: Zugriff auf „/usr/lib64/rssh_chroot_helper“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[2]: *** [install-exec-hook] Fehler 1
make[2]: Leaving directory `/usr/src/packages/BUILD/rssh-2.3.2'
make[1]: *** [install-exec-am] Fehler 2
make[1]: Leaving directory `/usr/src/packages/BUILD/rssh-2.3.2'
make: *** [install-am] Fehler 2
error: Bad exit status from /var/tmp/rpm-tmp.6427 (%install)
This is not good. I can go around this by 'cp /tmp/rssh-2.3.2-buildroot/usr/lib64/rssh_chroot_helper /usr/lib64/rssh_chroot_helper', but this sure is not intended. Chmod simply tries to act on a non-existing file - the installed file instead of the one inside the build dir. Since I am not a programmer, I'm not able to create a patch for this :-( - maybe it's only a '.' in front of the /?
Regards,
Werner
ahem - maybe this is mentioned in bug 1384981? DESTDIR may be the thing that is missing here...