ports/155568: bsd.gcc.mk: Fixing dependency not to pick ccache stubs
Akinori MUSHA
knu at FreeBSD.org
Tue Mar 15 09:40:10 UTC 2011
>Number: 155568
>Category: ports
>Synopsis: bsd.gcc.mk: Fixing dependency not to pick ccache stubs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 15 09:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Akinori MUSHA
>Release: 8.2-STABLE
>Organization:
>Environment:
FreeBSD ***.*** 8.2-STABLE FreeBSD 8.2-STABLE #26: Mon Feb 28 03:22:19 JST 2011 root at daemon.musha.org:/var/cache/obj/usr/src/sys/DAEMON amd64
>Description:
If you have devel/ccache installed and ${LOCALBASE}/libexec/ccache in your path to benefit from it, dependency check is faked by the symlinks to ccache in the directory and ports that depend on a specific gcc version fail to build.
This is caused by bsd.gcc.mk not specifying the full path of a gcc binary in BUILD_DEPENDS/RUN_DEPENDS .
>How-To-Repeat:
Install devel/ccache and have /usr/local/libexec/ccache in your path, deinstall lang/gcc45 if it is installed, and try building math/blas for example.
It fails with a message saying gfortran45 is not found, while the port tells USE_FORTRAN=yes which should add lang/gcc45 as dependency.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
Index: Mk/bsd.gcc.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.gcc.mk,v
retrieving revision 1.50
diff -u -r1.50 bsd.gcc.mk
--- Mk/bsd.gcc.mk 1 Feb 2011 01:41:19 -0000 1.50
+++ Mk/bsd.gcc.mk 15 Mar 2011 09:18:51 -0000
@@ -198,9 +198,9 @@
.undef V
.if defined(_GCC_BUILD_DEPENDS)
-BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
+BUILD_DEPENDS+= ${LOCALBASE}/bin/${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
. if ${_USE_GCC} != 3.4
-RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
+RUN_DEPENDS+= ${LOCALBASE}/bin/${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS}
. if ${_USE_GCC} != 4.2
# Later GCC ports already depend on binutils; make sure whatever we
# build leverages this as well.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list