From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 31 20:26:38 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12131606 for ; Fri, 31 Oct 2014 20:26:38 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7C28CDF for ; Fri, 31 Oct 2014 20:26:37 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9VKQbOD064706 for ; Fri, 31 Oct 2014 20:26:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194722] New: portmaster fails to parse dependencies Date: Fri, 31 Oct 2014 20:26:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: la5lbtyi@aon.at X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2014 20:26:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194722 Bug ID: 194722 Summary: portmaster fails to parse dependencies Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: la5lbtyi@aon.at CC: mandree@FreeBSD.org CC: mandree@FreeBSD.org On HEAD, portmaster fails to parse dependencies. Example (/usr/ports is a symlink to /.../hal/z/SRC/FreeBSD-ports/head (and yes, the first component of the directory is indeed "...")): --- snip --- # portmaster -g lzo2-2.08_1 ===>>> Currently installed version: lzo2-2.08_1 ===>>> Port directory: /usr/ports/archivers/lzo2 ===>>> Launching 'make checksum' for archivers/lzo2 in background ===>>> Gathering dependency list for archivers/lzo2 from ports ===>>> Launching child to install /.../hal/z/SRC/FreeBSD-ports/head/ports-mgmt/pkg ===>>> lzo2-2.08_1 >> /.../hal/z/SRC/FreeBSD-ports/head/ports-mgmt/pkg (1/1) ===>>> No valid installed port, or port directory given ===>>> Try portmaster --help ===>>> Update for /.../hal/z/SRC/FreeBSD-ports/head/ports-mgmt/pkg failed ===>>> Aborting update # --- snip --- The reason is commit r272282 in the FreeBSD sources: --- snip --- r272282 | will | 2014-09-29 17:05:23 +0200 (Mon, 29 Sep 2014) | 17 lines Changed paths: M /head/share/mk/bsd.port.mk M /head/share/mk/bsd.port.subdir.mk Search for the nearest PORTSDIR where Mk/bsd.ports.mk exists, from .CURDIR. This will only take effect if PORTSDIR is not set, as previously supported. Use .if exists(), for four specific possibilities relative to .CURDIR: ., .., ../.., and ../../.. The fourth possibility is primarily in case ports ever grows a third level. If none of these paths exist, fall back to the old default of /usr/ports. This removes the need to set PORTSDIR explicitly (or via wrapper script) if one is running out of a ports tree that is not in /usr/ports, but in a home directory. Reviewed by: bapt, bdrewery (older version) CR: D799 MFC after: 1 week Sponsored by: Spectra Logic --- snip --- A workaround is setting PORTSDIR=/usr/ports explicitly on make's command line. --- Comment #1 from Bugzilla Automation --- Maintainers CC'd -- You are receiving this mail because: You are the assignee for the bug.