Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Nov 2014 19:31:04 +0100
From:      Stefan Esser <se@freebsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        ports@freebsd.org
Subject:   Re: symlinked ports directory  -> problem to resolve dependencies in portmaster
Message-ID:  <546B9068.5050906@freebsd.org>
In-Reply-To: <20141116072646.00007dae@Leidinger.net>
References:  <20141116072646.00007dae@Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?546B9068.5050906>