Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2017 18:32:17 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r449664 - head/Mk/Uses
Message-ID:  <201709111832.v8BIWHiR070725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Sep 11 18:32:17 2017
New Revision: 449664
URL: https://svnweb.freebsd.org/changeset/ports/449664

Log:
  When using tcl:someversion+, prefer the default version over the highest
  one if none is installed
  
  With hat:	portmgr

Modified:
  head/Mk/Uses/tcl.mk

Modified: head/Mk/Uses/tcl.mk
==============================================================================
--- head/Mk/Uses/tcl.mk	Mon Sep 11 18:09:37 2017	(r449663)
+++ head/Mk/Uses/tcl.mk	Mon Sep 11 18:32:17 2017	(r449664)
@@ -144,9 +144,13 @@ _TCLTK_WANTED_VERSION:=	${_v}
 .endfor
 
 #
-# If we couldn't find any wanted version installed, depend on the highest one.
+# If we couldn't find any wanted version installed, depend on the default or the highest one.
 .if !defined(_TCLTK_WANTED_VERSION)
+.  if ${_TCLTK_WANTED_VERSIONS:M${_TCLTK_DEFAULT_VERSION}}
+_TCLTK_WANTED_VERSION:=	${_TCLTK_DEFAULT_VERSION}
+.  else
 _TCLTK_WANTED_VERSION:= ${_TCLTK_HIGHEST_VERSION}
+.  endif
 .endif
 
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709111832.v8BIWHiR070725>