From owner-freebsd-ports@FreeBSD.ORG Tue Nov 18 18:31:12 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2F4F170; Tue, 18 Nov 2014 18:31:11 +0000 (UTC) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFD70FC0; Tue, 18 Nov 2014 18:31:11 +0000 (UTC) Received: from fwd30.aul.t-online.de (fwd30.aul.t-online.de [172.20.26.135]) by mailout02.t-online.de (Postfix) with SMTP id 056A13CF727; Tue, 18 Nov 2014 19:31:09 +0100 (CET) Received: from [192.168.119.10] (SarWVZZJrhYPcXQCMTfHGcE0NjBk5Nf9pKP3K8pGj8KmO9fF-cq-PiypsJgOzZpZTD@[84.154.117.106]) by fwd30.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1XqnYS-1E2ZW40; Tue, 18 Nov 2014 19:31:08 +0100 Message-ID: <546B9068.5050906@freebsd.org> Date: Tue, 18 Nov 2014 19:31:04 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Alexander Leidinger Subject: Re: symlinked ports directory -> problem to resolve dependencies in portmaster References: <20141116072646.00007dae@Leidinger.net> In-Reply-To: <20141116072646.00007dae@Leidinger.net> Content-Type: multipart/mixed; boundary="------------020309050507070508090700" X-ID: SarWVZZJrhYPcXQCMTfHGcE0NjBk5Nf9pKP3K8pGj8KmO9fF-cq-PiypsJgOzZpZTD X-TOI-MSGID: 7c126167-eadd-44b6-8a5e-4395c224c814 Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2014 18:31:12 -0000 This is a multi-part message in MIME format. --------------020309050507070508090700 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Am 16.11.2014 um 07:26 schrieb Alexander Leidinger: > Hi, > > my /usr/ports directory is a symlink to /space/system/usr_ports, when I > try now to update a port with portmaster, it fails when it tries to > follow dependencies. > > Example: > ---snip--- > # portmaster webcamd- > ===>>> Package installation support cannot be used with pkgng yet, > it will be disabled > > > ===>>> Currently installed version: webcamd-3.17.0.6 > ===>>> Port directory: /usr/ports/multimedia/webcamd > > ===>>> Launching 'make checksum' for multimedia/webcamd in background > ===>>> Gathering dependency list for multimedia/webcamd from ports > ===>>> Launching child to install /space/system/usr_ports/devel/pkgconf > > ===>>> webcamd-3.17.0.6 >> /space/system/usr_ports/devel/pkgconf (1/1) > > ===>>> No valid installed port, or port directory given > ===>>> Try portmaster --help > > > ===>>> Update for /space/system/usr_ports/devel/pkgconf failed > ===>>> Aborting update > > # realpath /usr/ports/devel/pkgconf > /space/system/usr_ports/devel/pkgconf > > # make -C /usr/ports -V PORTSDIR > /space/system/usr_ports > > # grep PORTSDIR /etc/make.conf > > ---snip--- > > I can't find an entry in UPDATING which looks related. Any ideas what's > wrong here? Hi Alexander, there was a change to the .mk files which requires the attached patch to portmaster (repeated inline, but probably with mangled white-space): --- portmaster~ +++ portmaster @@ -359,7 +359,7 @@ if [ "$$" -eq "$PM_PARENT_PID" ]; then if [ -z "$pd" ]; then if [ -z "$PORTSDIR" ]; then - [ -d /usr/ports ] && pd=/usr/ports + [ -d /usr/ports ] && pd=`realpath /usr/ports` [ -z "$pd" ] && pd=`pm_make_b -f/usr/share/mk/bsd.port.mk -V PORTSDIR 2>/dev/null` else I always wanted to create a PR that mentions that patch, but forgot about it and was just reminded by you ;-) Best regards, STefan --------------020309050507070508090700 Content-Type: text/plain; charset=windows-1252; name="portmaster-realpath.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="portmaster-realpath.patch" --- portmaster~ +++ portmaster @@ -359,7 +359,7 @@ if [ "$$" -eq "$PM_PARENT_PID" ]; then if [ -z "$pd" ]; then if [ -z "$PORTSDIR" ]; then - [ -d /usr/ports ] && pd=3D/usr/ports + [ -d /usr/ports ] && pd=3D`realpath /usr/ports` [ -z "$pd" ] && pd=3D`pm_make_b -f/usr/share/mk/bsd.port.mk -V PORTSDIR 2>/dev/null`= else --------------020309050507070508090700--