Is fixpaths the only perl dependency?

Mo DeJong mdejong at cygnus.com
Wed Dec 6 08:00:23 EST 2000


> On Sat, 2 Dec 2000, Damien Miller wrote:
> 
> At any rate, I have attached a patch that replaces the
> fixpaths script with an inlined sed script. I ran it
> on my Linux box and it worked there, so it should
> work fine under Cygwin. Of course, I will not be able
> to test that until tomorrow.

Just an FYI, I tested these changes out under Cygwin
and ssh now builds out of the box with the default
Cygwin install.

One thing I noticed, is that in the 2.2.0p1
release it attempts to run executables from
the srcdir, this is fixed in the snap, but
I was wondering why the executables are run
from the build dir instead of the install dir.
This patch was originally from the 2.2.0p1,
it is not needed for the snapshot, it is
just to given you are idea of what I mean.

@@ -95,7 +103,7 @@
 	$(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat 
-lssh log-client.o $(LIBS)
 
 $(MANPAGES) $(CONFIGFILES)::
-	$(FIXPATHSCMD) $(srcdir)/$@
+	$(FIXPATHSCMD) $(srcdir)/$@ > $@.out
 
 clean:
 	rm -f *.o *.a $(TARGETS) logintest config.cache config.log 
@@ -164,18 +172,18 @@
 		if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \
 			echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \
 		else \
-			$(srcdir)/ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
+			$(DESTDIR)$(bindir)/ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \
 		fi ; \
 		if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \
 			echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \
 		else \
-			$(srcdir)/ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
+			$(DESTDIR)$(bindir)/ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \
 		fi ; \
 	fi ;
 
 host-key-force: ssh-keygen$(EXEEXT)
-	$(srcdir)/ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N ""
-	$(srcdir)/ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
+	$(DESTDIR)$(bindir)/ssh-keygen -b 1024 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N ""
+	$(DESTDIR)$(bindir)/ssh-keygen -d -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N ""
 
 uninstallall:	uninstall
 	-rm -f $(DESTDIR)$(sysconfdir)/ssh_config

cheers
Mo DeJong
Red Hat Inc





More information about the openssh-unix-dev mailing list