1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

www/tclhttpd: Add a patch to work with newer Tcl (8.6+)

The subcommands of file(n) aren't available in safe interpreters.

Bump PORTREVISION.

PR:	259053
Submitted by: Peter Dean
This commit is contained in:
Mikhail Teterin 2021-10-22 23:25:14 -04:00
parent 18ee8a4482
commit d3d311b045
2 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= tclhttpd
PORTVERSION= 3.5.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= www tcl
MASTER_SITES= TCLTK/httpd
DISTNAME= ${PORTNAME}${PORTVERSION}

View File

@ -0,0 +1,10 @@
--- lib/config.tcl 2000-08-02 03:06:52.000000000 -0400
+++ lib/config.tcl 2016-06-05 14:51:18.000000000 -0400
@@ -52,6 +52,9 @@
set i [interp create -safe]
interp expose $i file
+ foreach subcommand {isdirectory exists dirname} {
+ interp alias $i ::tcl::file::$subcommand {} file $subcommand
+ }