[HEADS UP] Tcl/Tk moves to the USES framework

David Wolfskill david at catwhisker.org
Thu Sep 19 19:24:49 UTC 2013


On Thu, Sep 19, 2013 at 03:16:40PM +0200, Pietro Cerutti wrote:
> ...
> > > We (tcltk@) could use your help to transition from the deprecated
> > > USE_TCL and USE_TK variables to the new framework.
> > > ....
> ...
> Yes, that's correct. You could also USES+=tk:84+,run to limit it to a
> run depend. Thanks!

OK; I see where that's documented, but when I tried it:

Index: gpsman/Makefile
===================================================================
--- gpsman/Makefile	(revision 327610)
+++ gpsman/Makefile	(working copy)
@@ -7,6 +7,7 @@
 
 PORTNAME=	gpsman
 PORTVERSION=	6.4.4
+PORTEPOCH=	1
 CATEGORIES=	astro tk geography
 MASTER_SITES=	SF/${PORTNAME}/distrib
 EXTRACT_SUFX=	.tgz
@@ -14,7 +15,7 @@
 MAINTAINER=	david at catwhisker.org
 COMMENT=	A Tcl/Tk-based GPS management utility
 
-USE_TK_RUN=	84+
+USES+=	tk:84+,run
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 SUB_FILES=	pkg-message

unpleasantness ensued:

Script started on Thu Sep 19 12:16:08 2013
command: portmaster astro/gpsman
]0;portmaster: gpsman-6.4.4.1
===>>> Currently installed version: gpsman-6.4.4.1
===>>> Port directory: /usr/ports/astro/gpsman

"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue
===>>> Gathering distinfo list for installed ports

"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue
===>>> Gathering dependency list for astro/gpsman from ports
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue
===>>> No dependencies for astro/gpsman

]0;portmaster: gpsman-6.4.4.1
===>>> Starting build for astro/gpsman <<<===

===>>> All dependencies are up to date

"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (84 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}84.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (85 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}85.so))
"/usr/ports/Mk/Uses/tcl.mk", line 102: Malformed conditional (86 >= ${_TCLTK_MIN_VERSION} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}86.so))
"/usr/ports/Mk/Uses/tcl.mk", line 161: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 1506: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6534: if-less endif
make: fatal errors encountered -- cannot continue

===>>> make clean failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> astro/gpsman 

===>>> Exiting

Script done on Thu Sep 19 12:16:09 2013

This was on:

FreeBSD 9.2-PRERELEASE #551  r255693M/255698:902503: Thu Sep 19 04:53:06 PDT 2013     root at g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

with a /usr/ports working copy:

Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: file:///svn/freebsd/ports/head
Relative URL: ^/head
Repository Root: file:///svn/freebsd/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 327610
Node Kind: directory
Schedule: normal
Last Changed Author: gahr
Last Changed Rev: 327610
Last Changed Date: 2013-09-19 03:12:50 -0700 (Thu, 19 Sep 2013)


Perhaps this is related to the reason r327631 was committed?

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-tcltk/attachments/20130919/3078bbcf/attachment.sig>


More information about the freebsd-tcltk mailing list