[GRASS5] 5.3: hard links vs soft links

Glynn Clements glynn.clements at virgin.net
Mon Jul 5 11:32:57 EDT 2004


Markus Neteler wrote:

> The recent change to soft links seems to cause problems
> also in 5.3. I just received a mail from a user who
> downloaded the auto-generated CVS-Linux-binaries from the GRASS site.
> 
> Obviously the links are not set correctly (example):
> 
> /usr/local/grass53/bin/g.gisenv-> /hardmnt/grass0/neteler/grass_cvs_53exp_pserver_latest/grass-build/dist.i686-pc-linux-gnu/etc/front.end

Oops. These should be relative links, i.e.:

	/usr/local/grass53/bin/g.gisenv -> ../etc/front.end

Try the attached patch (I don't have time to fix it in CVS right now).

-- 
Glynn Clements <glynn.clements at virgin.net>

-------------- next part --------------
--- src/CMD/generic/MAKELINKS.sh~	Wed Jun 30 09:12:04 2004
+++ src/CMD/generic/MAKELINKS.sh	Mon Jul  5 16:29:32 2004
@@ -10,6 +10,6 @@
 #    then
         echo Creating link for $i
 	rm -f $GISBASE/bin/$i
-        ln -s $GISBASE/etc/front.end $GISBASE/bin/$i
+        ln -s ../etc/front.end $GISBASE/bin/$i
 #    fi
 done
--- mk/Makefile.in~	Wed Jun 30 09:11:57 2004
+++ mk/Makefile.in	Mon Jul  5 16:30:42 2004
@@ -70,7 +70,7 @@
 		while read file ; do \
 			echo Creating link for $$file ; \
 			rm -f ${GISBASE}/bin/$$file ; \
-			ln -s ${GISBASE}/etc/front.end ${GISBASE}/bin/$$file ; \
+			ln -s ../etc/front.end ${GISBASE}/bin/$$file ; \
 		done
 
 post-compile:


More information about the grass-dev mailing list