| Summary: | 'make -C /path/to/some/port install' fails when /usr/ports is symbolic link to other directory | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Yasuhiro Kimura <yasu> |
| Component: | Ports Framework | Assignee: | Port Management Team <portmgr> |
| Status: | Closed FIXED | ||
| Severity: | Affects Some People | CC: | jrm, ports-bugs |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Yasuhiro Kimura
2017-08-07 01:58:35 UTC
I am able to reproduce this. % cd / && ls -lh home lrwxr-xr-x 1 root wheel 8B Jun 25 2015 home -> usr/home % PORTSDIR=/home/jrm/scm/freebsd/freebsd-ports.svn make -C /home/jrm/scm/freebsd/freebsd-ports.svn/lang/perl5.26 install ===> Switching to root credentials to create /var/db/ports/lang_perl5.26 Password: ===> Returning to user credentials ===> Switching to root credentials to write /var/db/ports/lang_perl5.26/options Password: ===> Returning to user credentials make[1]: don't know how to make /home/jrm/scm/freebsd/freebsd-ports.svn/lang/perl5.26/work/.install_done.perl._usr_local. Stop make[1]: stopped in /usr/home/jrm/scm/freebsd/freebsd-ports.svn/lang/perl5.26 *** Error code 2 Stop. make: stopped in /home/jrm/scm/freebsd/freebsd-ports.svn/lang/perl5.26 After applying the patch in https://reviews.freebsd.org/D11934: % PORTSDIR=/home/jrm/scm/freebsd/freebsd-ports.svn make -C /home/jrm/scm/freebsd/freebsd-ports.svn/lang/perl5.26 install ################################################## This is *NOT* the DEFAULT perl version It will *NOT* install /usr/local/bin/perl It will *ONLY* install /usr/local/bin/perl5.26.0 The default Perl version currently is 5.24. If you want to use this version as the default, stop the build now, add this line to your /etc/make.conf, and then restart the build. DEFAULT_VERSIONS+=perl5=5.26 ################################################## . . . A commit references this bug: Author: jrm Date: Sun Sep 17 14:20:15 UTC 2017 New revision: 450002 URL: https://svnweb.freebsd.org/changeset/ports/450002 Log: Ensure .CURDIR contains an absolute path without a trailing slash. Failed builds can occur when PORTSDIR is a symbolic link, or with make -C /usr/ports/category/port/ PR: 221296 Reported by: yasu@utahime.org, rum1cro@yandex.ru Reviewed by: bdrewery, sjg Approved by: portmgr (bdrewery) Differential Revision: https://reviews.freebsd.org/D11934 Changes: head/Mk/bsd.port.mk Thank you for reporting this. |