ports/93975: [PATCH] devel/sourcenav doesn't run from anywhere in the path
Andreas Kohn
andreas at syndrom23.de
Wed Mar 1 11:10:05 UTC 2006
>Number: 93975
>Category: ports
>Synopsis: [PATCH] devel/sourcenav doesn't run from anywhere in the path
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 01 11:10:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Andreas Kohn
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 7.0-CURRENT #34: Sat Feb 25 06:25:50 CET 2006
root at klamath.syndrom23.de:/usr/obj/usr/src/sys/KLAMATH
>Description:
I just tried to install and run the devel/sourcenav port. Works nicely,
as long as I am in /usr/local/sourcenav/bin and run ./snavigator. It
fails however if I use the symlink in /usr/local/bin, because it
computes the wrong path of itsself, and then misses the navigato script.
The attached patch to the port fixes that behavior for me, and I can
run "snavigator" from anywhere now.
>How-To-Repeat:
>Fix:
--- sourcenav-snavigator.in.diff begins here ---
Index: files/patch-snavigator-snavigator-unix-snavigator.in
===================================================================
RCS file: files/patch-snavigator-snavigator-unix-snavigator.in
diff -N files/patch-snavigator-snavigator-unix-snavigator.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-snavigator-snavigator-unix-snavigator.in 27 Feb 2006 19:24:26 -0000
@@ -0,0 +1,12 @@
+--- snavigator/snavigator/unix/snavigator.in.orig Mon Feb 27 20:22:56 2006
++++ snavigator/snavigator/unix/snavigator.in Mon Feb 27 20:23:35 2006
+@@ -1,7 +1,8 @@
+ #!/bin/sh
+
+ # the directory where this script lives
+-snbindir=`dirname $0`
++me=`realpath $0`
++snbindir=`dirname $me`
+
+ # navigato is either in ../share/etc/navigato or ../../share/etc/navigato
+
--- sourcenav-snavigator.in.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list