Date: Tue, 8 Jun 2010 02:50:03 GMT From: Stas Timokhin <devel@stasyan.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/147628: Update port: cad/netgen to 4.9.13 Message-ID: <201006080250.o582o35S023772@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/147628; it has been noted by GNATS. From: Stas Timokhin <devel@stasyan.com> To: "Stephen Montgomery-Smith" <stephen@missouri.edu> Cc: bug-followup@freebsd.org Subject: Re: ports/147628: Update port: cad/netgen to 4.9.13 Date: Tue, 8 Jun 2010 09:42:55 +0700 --Boundary-00=_v4aDMwG1bYYZAX0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hell ! >However, when I ran the program netgen, I received an error message >result = couldn't read file "./ng.tcl": no such file or directory >Make sure to set environment variable NETGENDIR to directory containing >ng.tcl >Doesn't it make sense to make sure that NETGENDIR defaults to >usr/local/bin? Yes, it's a good idea make deafault to /usr/local/bin. Here is a patch. --Boundary-00=_v4aDMwG1bYYZAX0 Content-Type: text/x-patch; charset="KOI8-R"; name="patch2" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch2" --- files/patch-ng_ng.tcl.orig 1970-01-01 07:00:00.000000000 +0700 +++ files/patch-ng_ng.tcl 2010-06-08 09:34:03.000000000 +0700 @@ -0,0 +1,11 @@ +--- ng/ng.tcl.orig 2010-06-08 09:33:22.000000000 +0700 ++++ ng/ng.tcl 2010-06-08 09:33:39.000000000 +0700 +@@ -26,7 +26,7 @@ + set ngdir $env(NETGENDIR) + } + if { [string length $ngdir] == 0 } { +- set ngdir "." ++ set ngdir "/usr/local/bin" + } + + set nguserdir "" --- files/patch-ng_ngappinit.cpp.orig 1970-01-01 07:00:00.000000000 +0700 +++ files/patch-ng_ngappinit.cpp 2010-06-08 09:13:43.000000000 +0700 @@ -0,0 +1,11 @@ +--- ng/ngappinit.cpp.orig 2010-06-08 09:13:06.000000000 +0700 ++++ ng/ngappinit.cpp 2010-06-08 09:13:20.000000000 +0700 +@@ -151,7 +151,7 @@ + if (getenv ("NETGENDIR") && strlen (getenv ("NETGENDIR"))) + ngdir = getenv ("NETGENDIR"); + else +- ngdir = "."; ++ ngdir = "/usr/local/bin"; + + verbose = parameters.GetDefineFlag ("V"); + --- files/patch-ng_onetcl.cpp.orig 1970-01-01 07:00:00.000000000 +0700 +++ files/patch-ng_onetcl.cpp 2010-06-08 09:28:00.000000000 +0700 @@ -0,0 +1,11 @@ +--- ng/onetcl.cpp.orig 2010-06-08 09:26:24.000000000 +0700 ++++ ng/onetcl.cpp 2010-06-08 09:26:48.000000000 +0700 +@@ -16,7 +16,7 @@ + " set ngdir $env(NETGENDIR) \n",\ + "}\n",\ + "if { [string length $ngdir] == 0 } {\n",\ +-" set ngdir \".\" \n",\ ++" set ngdir \"/usr/local/bin\" \n",\ + "}\n",\ + "\n",\ + "\n",\ --- files/pkg-message.in.orig 2010-06-08 09:40:47.000000000 +0700 +++ files/pkg-message.in 2010-06-08 09:38:16.000000000 +0700 @@ -1,7 +1,8 @@ ************************************************************************* - Set the environment variable: + If you installed netgen to nondefault prefix, + make sure that you set the environment variable: NETGENDIR=%%PREFIX%%/bin --Boundary-00=_v4aDMwG1bYYZAX0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006080250.o582o35S023772>