From owner-freebsd-ports@FreeBSD.ORG Tue Feb 24 20:00:02 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3787E106567B for ; Tue, 24 Feb 2009 20:00:02 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id CA5838FC16 for ; Tue, 24 Feb 2009 20:00:01 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by gxk24 with SMTP id 24so9353312gxk.19 for ; Tue, 24 Feb 2009 12:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9NFCrgvfcrWo8reUic8XHRa8qvJeQJiLHB8GJU6pQFA=; b=f+HFhkLjDsW4Mcf4+gAlh+q7Nd3y5lmOruqgWJrHwyqpgGSbK8bO2mi51kYWTMaC4S 6bYCMTmilFlb2pt526epLVTuxY8Mf+IXavVVfySKK4oj3+upcOYhFnCTySOFfFumfeE3 0pmFg6OQstzKjYOSDyUqB6E0o+MvyxFfwmugQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Y82M1l1p+djxF96t9xzB4Qj84RDGefmyFueMLSlvF9FCVFMW+nSyjFp2pQgvTryIpz Yh0GQtpLA4n5/5DbIEC37mboZoo9HbwcNCGDVXid5FIAXxaC8UyJRiVhcGiS39sahFnU Q/ZZpRSF2oPHYGSWetd3+qLmDtx5dVPlBlZzY= MIME-Version: 1.0 Received: by 10.220.72.200 with SMTP id n8mr1186635vcj.16.1235505600975; Tue, 24 Feb 2009 12:00:00 -0800 (PST) In-Reply-To: <49A3E32E.1000309@icyb.net.ua> References: <49A3E32E.1000309@icyb.net.ua> Date: Tue, 24 Feb 2009 14:00:00 -0600 Message-ID: <790a9fff0902241200u58d4dc86jdaa7bd9a9ea527b8@mail.gmail.com> From: Scot Hetzel To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Dirk Meyer , FreeBSD Ports Subject: Re: graphics/graphviz: stray symlink on install? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2009 20:00:03 -0000 On Tue, Feb 24, 2009 at 6:08 AM, Andriy Gapon 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.