minor problem in scard/Makefile when srcdir != objdir
Mark D. Baushke
mdb at juniper.net
Sat Oct 27 03:31:53 EST 2001
Greetings,
There is a minor glitch when --src is not the same as the build tree
location (sometimes needed if you are going to be root for the install
and the sources are on an NFS disk somewhere that does not trust root
on the machine doing the install).
% uname -a
FreeBSD mdb-bsd.juniper.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Jan 17 12:03:49 PST 2001 root at mdb-bsd.juniper.net:/usr/obj/usr/src/sys/GENERIC i386
% make -f Makefile.in distprep
% cd /some/local/disk
% mkdir openssh-build
% /path/to/openssh/configure --src=/path/to/openssh
% make
% sudo make install
...elided...
(cd scard; make DESTDIR= install)
uudecode Ssh.bin.uu
uudecode: Ssh.bin.uu: No such file or directory
*** Error code 1
Stop in /some/local/disk/openssh-build/scard.
*** Error code 1
The following patch works around the problem by assuming that Ssh.bin
must be found in the source distribution.
Enjoy!
-- Mark
Index: Makefile.in
===================================================================
RCS file: /cvs/openssh_cvs/scard/Makefile.in,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile.in
--- Makefile.in 2001/09/20 18:39:37 1.2
+++ Makefile.in 2001/10/26 17:39:24
@@ -22,6 +22,6 @@ distprep: Ssh.bin
distclean: clean
rm -f Makefile *~
-install: Ssh.bin
+install: $(srcdir)/Ssh.bin
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)
$(INSTALL) -m 0644 $(srcdir)/Ssh.bin $(DESTDIR)$(datadir)/Ssh.bin
More information about the openssh-unix-dev
mailing list