Date: Wed, 25 Feb 2009 02:27:41 -0600 From: Scot Hetzel <swhetzel@gmail.com> To: Andriy Gapon <avg@icyb.net.ua> Cc: Dirk Meyer <dinoex@freebsd.org>, FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: graphics/graphviz: stray symlink on install? Message-ID: <790a9fff0902250027g5dd9fe94n86c83f18c2ba9a6e@mail.gmail.com> In-Reply-To: <790a9fff0902241200u58d4dc86jdaa7bd9a9ea527b8@mail.gmail.com> References: <49A3E32E.1000309@icyb.net.ua> <790a9fff0902241200u58d4dc86jdaa7bd9a9ea527b8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 24, 2009 at 2:00 PM, Scot Hetzel <swhetzel@gmail.com> wrote: > On Tue, Feb 24, 2009 at 6:08 AM, Andriy Gapon <avg@icyb.net.ua> wrote: >> >> It seems that each time I install graphviz there appears a fresh symlink >> in $HOME of a user from which I su -m to root: >> >> gv.so -> /usr/local/lib/graphviz/lua/libgv_lua.so >> > > I also noticed this stay symbolic link. > > I recently used script to capture the output of the rebuild of this > port, and found this: > > gmake[4]: Entering directory > `/usr/ports/graphics/graphviz/work/graphviz-2.20.3/tclpkg' > mkdir -p ; > usage: mkdir [-pv] [-m mode] directory_name ... > gmake[4]: [install-data-hook] Error 64 (ignored) > if test -w ; then \ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(cd ; \ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ln -s -f > /usr/local/lib/graphviz/lua/libgv_lua.so gv.so;) \ > =A0 =A0 =A0 =A0else \ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo "Warning: =A0is not writable."; \ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo "Skipping system installation of lua = binding."; \ > =A0 =A0 =A0 =A0fi > > Without looking at the Makefile, it looks like the Makefile in tclpkg > is trying to create a directory, but has an empty variable, this empty > variable is then use with the cd command, which causes the cd command > to change to the users home directory (i.e. /root). > Found the problem. The configure script wasn't defining LUA_INSTALL_DIR. Submitted PR 132089 with a possible fix. http://www.freebsd.org/cgi/query-pr.cgi?pr=3D132089
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0902250027g5dd9fe94n86c83f18c2ba9a6e>