svn commit: r435560 - in head/devel/ccache: . files
Bryan Drewery
bdrewery at FreeBSD.org
Mon Mar 6 17:50:16 UTC 2017
Author: bdrewery
Date: Mon Mar 6 17:50:14 2017
New Revision: 435560
URL: https://svnweb.freebsd.org/changeset/ports/435560
Log:
ccache-update-links.sh: Fix removing links to missing compilers.
PR: 217570
Reported by: rwmaillists at googlemail.com
Tested by: rwmaillists at googlemail.com
Modified:
head/devel/ccache/Makefile
head/devel/ccache/files/ccache-update-links.sh.in
Modified: head/devel/ccache/Makefile
==============================================================================
--- head/devel/ccache/Makefile Mon Mar 6 17:48:26 2017 (r435559)
+++ head/devel/ccache/Makefile Mon Mar 6 17:50:14 2017 (r435560)
@@ -3,6 +3,7 @@
PORTNAME= ccache
PORTVERSION= 3.3.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.samba.org/ftp/ccache/ \
LOCAL/bdrewery
Modified: head/devel/ccache/files/ccache-update-links.sh.in
==============================================================================
--- head/devel/ccache/files/ccache-update-links.sh.in Mon Mar 6 17:48:26 2017 (r435559)
+++ head/devel/ccache/files/ccache-update-links.sh.in Mon Mar 6 17:50:14 2017 (r435560)
@@ -29,6 +29,22 @@ in
;;
esac
+strip_path() {
+ local IFS=":"
+ local path
+ set -- ${PATH}
+ while [ $# -gt 0 ]; do
+ if ! [ "${1}" = "${PREFIX}/libexec/ccache" ]; then
+ path="${path}${path:+:}${1}"
+ fi
+ shift
+ done
+ echo "${path}"
+}
+
+# Remove ccache wrappers from PATH
+PATH=$(strip_path)
+
# create compiler links
for comp in ${CCACHE_COMPILERS}
do
More information about the svn-ports-all
mailing list