Date: Fri, 31 Oct 2014 20:26:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194722] New: portmaster fails to parse dependencies Message-ID: <bug-194722-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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 <bugzilla@FreeBSD.org> --- Maintainers CC'd -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194722-13>