graphics/graphviz: stray symlink on install?

Scot Hetzel swhetzel at gmail.com
Tue Feb 24 12:00:03 PST 2009


On Tue, Feb 24, 2009 at 6:08 AM, Andriy Gapon <avg at 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 \
                (cd ; \
                        ln -s -f
/usr/local/lib/graphviz/lua/libgv_lua.so gv.so;) \
        else \
                echo "Warning:  is not writable."; \
                echo "Skipping system installation of lua binding."; \
        fi

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).

Scot.


More information about the freebsd-ports mailing list