When trying to build the source RPM for rssh 2.3.2 on both SuSE 9.1 and
opensuse 10.2, I was running into the following problem:

make  install-exec-hook
make[2]: Entering directory `/usr/src/packages/BUILD/rssh-2.3.2'
chmod u+s /usr/libexec/rssh_chroot_helper
chmod: cannot access `/usr/libexec/rssh_chroot_helper': No such file or
directory

I tracked the problem down to Makefile.am and made the following patch:

diff -Naur rssh-2.3.2.orig/Makefile.am rssh-2.3.2/Makefile.am
--- rssh-2.3.2.orig/Makefile.am 2006-01-03 12:34:59.000000000 -0500
+++ rssh-2.3.2/Makefile.am      2007-04-23 13:45:17.000000000 -0400
@@ -16,7 +16,7 @@
        $(CC) -c $(DEFS) $(ourdefs) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $<

 install-exec-hook:
-       chmod u+s $(libexecdir)/rssh_chroot_helper
+       chmod u+s $(DESTDIR)$(libexecdir)/rssh_chroot_helper

 rpm:   dist
        rpmbuild -ta --sign $(base).tar.gz


I had to tell the RPM to run aclocal at the start of the %build section,
but everything worked after that.

ross

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to