Date: Thu, 30 Oct 2014 09:07:30 +0200 From: alexander.gromnitsky@gmail.com To: freebsd-tcltk@freebsd.org Subject: tcl-wrapper & shc Message-ID: <20141030070730.GA1568@linux6.9bf016>
next in thread | raw e-mail | index | archive | help
--Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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? --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="tcl-wrapper.patch" --- 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> --Qxx1br4bt0+wmkIi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141030070730.GA1568>