Date: Sun, 19 Feb 2017 17:06:45 +0100 (CET) From: Gerald Pfeifer <gerald@pfeifer.com> To: Alexey Dokuchaev <danfe@FreeBSD.org> Cc: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r402352 - head/lang/gcc Message-ID: <alpine.LSU.2.20.1702191430520.2410@anthias.pfeifer.com> In-Reply-To: <20151124110152.GA78748@FreeBSD.org> References: <201511241019.tAOAJMTF049917@repo.freebsd.org> <20151124110152.GA78748@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[ Old e-mail alert -- but still relevant ] On Tue, 24 Nov 2015, Alexey Dokuchaev wrote: >> + for c in gfortran g++ gcc; do \ >> + ${LN} -s ${PREFIX}/bin/"$$c"${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$$c ; \ >> + done > Symlinks are badly created (will be broken if e.g. $prefix mounted under > non-/ via NFS), better (untested) approach would be: > > .for f in gfortran g++ gcc > ${LN} -sf ${f}${SUFFIX} ${STAGEDIR}${PREFIX}/bin/${f} > .endfor At first I wasn't completely clear what you had in mind here (or rather: why exactly), and I did not get a single report from a user in the 15 months since then. On the other hand, we can always improve things and what I understand you aimed for seems more consistent with how we generally do things. What do you think about the patch below? Only problem is, portlint now warns WARN: g++: this is a symlink. Please remove it. WARN: gcc: this is a symlink. Please remove it. WARN: gfortran: this is a symlink. Please remove it. which I did not do when I've been using absolute paths. Gerald Index: Makefile =================================================================== --- Makefile (revision 434403) +++ Makefile (working copy) @@ -164,7 +167,7 @@ # This is the canonical GCC port, so add key commands without # version numbers as part of their names. for c in gfortran g++ gcc; do \ - ${LN} -s ${PREFIX}/bin/"$$c"${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$$c ; \ + ${LN} -s $${c}${SUFFIX} ${STAGEDIR}${PREFIX}/bin/$${c} ; \ done .include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.20.1702191430520.2410>