Summary: | Add bsd.tcl.mk for convinience for tcl/tk ports | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Vsevolod Stakhov <vsevolod> |
Component: | Individual Port(s) | Assignee: | Port Management Team <portmgr> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Vsevolod Stakhov
2005-07-19 13:10:15 UTC
Responsible Changed From-To: freebsd-ports-bugs->portmgr Portmgr territory On Tue, Jul 19, 2005 at 04:00:15PM +0400, Vsevolod Stakhov wrote: > # -*- mode: Makefile; tab-width: 4; -*- > # ex: ts=4 > # > # $FreeBSD$ > # I would add TCL_Include_MAINTAINER so people know who is responsible for it. > .if !defined(_POSTMKINCLUDED) && !defined(Tcl_Pre_Include) > > Tcl_Pre_Include= bsd.tcl.mk > > # USE_TCL: Depend from tcl for run. Due to incompatible API of different > # TCL versions the version must be specified directly. If version > # is not specified then the latest version is used (8.4 currently). > # Available values are: 84, 83, 82, 81 and 80. This description conflicts with itself: # USE_TCL: Depend on tcl to run. In case of incompatible APIs of different # TCL versions the version can be specified directly. If version # is not specified (USE_TCL=yes) then the latest version is # used (8.4 currently). # Available values are: 84, 83, 82, 81 and 80. > # USE_TK: Depend from tk for run. Due to incompatible API of different Same here. > .if ${_FOUND} == "no" > BROKEN= Unknown TCL version > .endif More verbose: BROKEN= Unknown TCL version specified: ${USE_TCL} > .if defined(USE_TCL) && ${TCL_VER} != ${TK_VER} > BROKEN= TCL and TK versions must be equal > .endif Here too: BROKEN= TCL and TK versions must be equal (${TCL_VER} vs ${TK_VER}) > .if ${_FOUND} == "no" > BROKEN= Unknown TK version > .endif And here: BROKEN= Unknown TK version specified: ${USE_TK} Just my 2 cents. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/ Edwin Groothuis wrote: > On Tue, Jul 19, 2005 at 04:00:15PM +0400, Vsevolod Stakhov wrote: > >># -*- mode: Makefile; tab-width: 4; -*- >># ex: ts=4 >># >># $FreeBSD$ >># > > > I would add TCL_Include_MAINTAINER so people know who is responsible > for it. Yes you are right. But I do not know rules about this. > >>.if !defined(_POSTMKINCLUDED) && !defined(Tcl_Pre_Include) >> >>Tcl_Pre_Include= bsd.tcl.mk >> >># USE_TCL: Depend from tcl for run. Due to incompatible API of different >># TCL versions the version must be specified directly. If version >># is not specified then the latest version is used (8.4 currently). >># Available values are: 84, 83, 82, 81 and 80. > > > This description conflicts with itself: > > > # USE_TCL: Depend on tcl to run. In case of incompatible APIs of different > # TCL versions the version can be specified directly. If version > # is not specified (USE_TCL=yes) then the latest version is > # used (8.4 currently). > # Available values are: 84, 83, 82, 81 and 80. Your version is much more literate as I'm not native English language speaker :( > >># USE_TK: Depend from tk for run. Due to incompatible API of different > > > Same here. # USE_TK: Depend on tk to run. In case of incompatible APIs of different # TK versions the version can be specified directly. If version # is not specified (USE_TK=yes) then the latest version is # used (8.4 currently). # Available values are: 84, 83, 82, 81 and 80. > > >>.if ${_FOUND} == "no" >>BROKEN= Unknown TCL version >>.endif > > > More verbose: > BROKEN= Unknown TCL version specified: ${USE_TCL} It looks fine. >>.if defined(USE_TCL) && ${TCL_VER} != ${TK_VER} >>BROKEN= TCL and TK versions must be equal >>.endif > > > Here too: > BROKEN= TCL and TK versions must be equal (${TCL_VER} vs ${TK_VER}) Agreed. > >>.if ${_FOUND} == "no" >>BROKEN= Unknown TK version >>.endif > > > And here: > BROKEN= Unknown TK version specified: ${USE_TK} > > Just my 2 cents. Thanks a lot! On Tue, Jul 19, 2005 at 04:00:15PM +0400, Vsevolod Stakhov wrote:
> .if ${_FOUND} == "no"
> BROKEN= Unknown TCL version
> .endif
It is true that you have followed existing practice in the other bsd.*.mk
files. However, it is my belief that that practice is wrong, and I would
hope that we could not propogate it any further.
My understanding is that BROKEN is meant to tell the cluster, and users,
"it is not possible to install this port because it is temporarily broken"
and that IGNORE is meant to tell the cluster, and users, "it is not possible
to install this port because of some permanent reason" (such as CONFLICTS,
kernel source not having been installed, and so forth). The cluster
will attempt to build ports marked BROKEN but it will not attempt to
build ports marked IGNORE.
If you can accept that, I would like to generate patches (rather than
just s/BROKEN/IGNORE/, the wording of the messages needs to change a
little bit).
Also, to reiterate, it is my understanding that BROKEN strings should
be quoted and IGNORE strings should not. "One of these days" I intend
to go make a pass through the ports tree and try to clean that up ...
mcl
On Tue, Jul 19, 2005 at 04:20:49PM -0500, Mark Linimon wrote:
> If you can accept that, I would like to generate patches (rather than
> just s/BROKEN/IGNORE/, the wording of the messages needs to change a
> little bit).
>
> Also, to reiterate, it is my understanding that BROKEN strings should
> be quoted and IGNORE strings should not. "One of these days" I intend
> to go make a pass through the ports tree and try to clean that up ...
I understand this and will remember for future. Thanks!
Hi, Could you please submit a patch to orignal bsd.tcl.mk file which includes suggested changes? So we can add it to next exp-build. Thanks, clem On Sat, Sep 17, 2005 at 12:35:53PM +0200, Clement Laforet wrote: > Hi, > > Could you please submit a patch to orignal bsd.tcl.mk file which > includes suggested changes? So we can add it to next exp-build. > > Thanks, > clem --- bsd.tcl.mk.orig Sat Sep 17 19:41:25 2005 +++ bsd.tcl.mk Sat Sep 17 19:43:28 2005 @@ -6,18 +6,20 @@ .if !defined(_POSTMKINCLUDED) && !defined(Tcl_Pre_Include) -Tcl_Pre_Include= bsd.tcl.mk +Tcl_Pre_Include= bsd.tcl.mk +Tcl_Include_MAINTAINER= vsevolod@FreeBSD.org -# USE_TCL: Depend from tcl for run. Due to incompatible API of different -# TCL versions the version must be specified directly. If version -# is not specified then the latest version is used (8.4 currently). +# USE_TCL: Depend on tcl to run. In case of incompatible APIs of different +# TCL versions the version can be specified directly. If version +# is not specified (USE_TCL=yes) then the latest version is +# used (8.4 currently). # Available values are: 84, 83, 82, 81 and 80. # -# USE_TK: Depend from tk for run. Due to incompatible API of different -# TK versions the version must be specified directly. If version -# is not specified then the latest version is used (8.4 currently). +# USE_TK: Depend on tk to run. In case of incompatible APIs of different +# TK versions the version can be specified directly. If version +# is not specified (USE_TK=yes) then the latest version is +# used (8.4 currently). # Available values are: 84, 83, 82, 81 and 80. -# This option implies USE_TCL as tk depends on tcl implicitly. ## # TCL_LIBDIR: Path where tcl libraries can be found # @@ -77,7 +79,7 @@ .endfor .if ${_FOUND} == "no" -BROKEN= Unknown TCL version +IGNORE= "Unknown TCL version specified: ${USE_TCL}" .endif .endif # defined(USE_TCL) @@ -92,7 +94,7 @@ TK_VER:= ${USE_TK:S/8/8./} .if defined(USE_TCL) && ${TCL_VER} != ${TK_VER} -BROKEN= TCL and TK versions must be equal +IGNORE= "TCL and TK versions must be equal (${TCL_VER} vs ${TK_VER})" .endif _FOUND= no @@ -110,7 +112,7 @@ .endfor .if ${_FOUND} == "no" -BROKEN= Unknown TK version +IGNORE= "Unknown TK version specified: ${USE_TK}" .endif .endif # defined(USE_TK) @@ -122,7 +124,7 @@ .if defined(_POSTMKINCLUDED) && !defined(Tcl_Post_Include) -Tcl_Post_Include= bsd.tcl.mk +Tcl_Post_Include= bsd.tcl.mk .if defined(PATCH_TCL_SCRIPTS) || defined (PATCH_TK_SCRIPTS) .if !target(post-patch) State Changed From-To: open->analyzed Added to exp build. Thanks State Changed From-To: analyzed->closed Committed. Thanks! |