tcl-wrapper & shc

alexander.gromnitsky at gmail.com alexander.gromnitsky at gmail.com
Thu Oct 30 07:07:27 UTC 2014


tcl-wrapper port for some reason compiles a wrapper script w/ shc which
makes Tcl scripts unusable. For example,

(FreeBSD 10 i386)

    $ pkg info tcl86 tcl-wrapper
    tcl86-8.6.2_1
    tcl-wrapper-1.1_2

    $ cat foo 
    #!/usr/bin/env tclsh
    puts "Hello, World!"

    $ ./foo
    %

E.g. it just starts tcl shell.

I've modified tcl-wrapper port to remove shc compilation step & then
./foo example script started worked fine. Could someone confirm if the
problem is indeed in shc?
-------------- next part --------------
--- Makefile.orig	2014-10-30 00:06:24.000000000 +0200
+++ Makefile	2014-10-30 00:19:57.000000000 +0200
@@ -3,7 +3,7 @@
 
 PORTNAME=	wrapper
 PORTVERSION=	1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	lang tcl
 MASTER_SITES=	# empty
 PKGNAMEPREFIX=	${TX_PORT}-
@@ -15,8 +15,6 @@
 
 LICENSE=	BSD
 
-BUILD_DEPENDS=	shc:${PORTSDIR}/misc/shc
-
 SUB_FILES=	wrapper conf.sample pkg-message
 
 PKGINSTALL=	${WRKDIR}/pkg-install
@@ -57,10 +55,9 @@
 		TX_CONF_FULL="${TX_CONF_FULL:S/${STAGEDIR}//}"
 
 do-build: apply-slist
-	${MAKE_ENV} ${LOCALBASE}/bin/shc -r -T -f ${WRKDIR}/wrapper
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKDIR}/wrapper.x ${STAGEDIR}${PREFIX}/bin/${TX_SHELL}
+	${INSTALL_SCRIPT} ${WRKDIR}/wrapper ${STAGEDIR}${PREFIX}/bin/${TX_SHELL}
 	${INSTALL_DATA} ${WRKDIR}/conf.sample ${STAGEDIR}${PREFIX}/etc/${TX_CONF}.sample
 
 .include <bsd.port.mk>


More information about the freebsd-tcltk mailing list