From owner-freebsd-ports@FreeBSD.ORG Wed Feb 25 08:27:42 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 5D5B4106564A; Wed, 25 Feb 2009 08:27:42 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.179]) by mx1.freebsd.org (Postfix) with ESMTP id 02D6E8FC16; Wed, 25 Feb 2009 08:27:41 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so2137351ele.13 for ; Wed, 25 Feb 2009 00:27:41 -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=EbqCQhg3xjBwLBNPOSCydThXRW6P4BSWpTrofH1c1d0=; b=pSdNOiXclE2cUX/fsnUyixw0J6HSqoLrBsmgKYyiruVlndUiIT+UhLYUmpKMLs2r76 sv6fqSWlv4ftulytqqqBGWMxdvzhVEHSAU93hJlavxgJbaqnWetpWqXmi18S1WkJTzTg 5br98PC+oFrMdvFP6HOAkY64JBS3134nKtYcg= 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=lfpyaAkZXe8JSJ3lo/HlA8blyMJpXCTBkufqTiNHr7WjuGKZG8wOYJ9ehndHgzy0vH YKdzWkrzzLTPN5iglddpVfrPcOI2hIMsH6rpWKwcHaanD5AOwMigbKyzftVhm84pUtyi SNflIM+4YlKgx0ZXusZYG5H12ZtgeHLdzShgM= MIME-Version: 1.0 Received: by 10.220.99.6 with SMTP id s6mr1280299vcn.96.1235550461346; Wed, 25 Feb 2009 00:27:41 -0800 (PST) In-Reply-To: <790a9fff0902241200u58d4dc86jdaa7bd9a9ea527b8@mail.gmail.com> References: <49A3E32E.1000309@icyb.net.ua> <790a9fff0902241200u58d4dc86jdaa7bd9a9ea527b8@mail.gmail.com> Date: Wed, 25 Feb 2009 02:27:41 -0600 Message-ID: <790a9fff0902250027g5dd9fe94n86c83f18c2ba9a6e@mail.gmail.com> From: Scot Hetzel To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Wed, 25 Feb 2009 08:27:42 -0000 On Tue, Feb 24, 2009 at 2:00 PM, Scot Hetzel wrote: > 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 \ > =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