From owner-freebsd-tcltk@FreeBSD.ORG Thu Oct 30 07:07:27 2014 Return-Path: Delivered-To: freebsd-tcltk@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3380F336 for ; Thu, 30 Oct 2014 07:07:27 +0000 (UTC) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA98BCD6 for ; Thu, 30 Oct 2014 07:07:23 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id m15so3500096wgh.13 for ; Thu, 30 Oct 2014 00:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=YzATgdZGbah5uDRHjZiqeqkY9+CSS49CYZu+re5QpzY=; b=elH7UdnqMcaMDsJblcmcBO5qASK2lP/bgI3HVCIy2sjXISTBkAhR/8ho/UvKU/hUIz mrmypxvNOlglRvOUZhjHXaD4E0yqNKfMG8p4ZnPEUREUtpmvxK3TxpK8kDTvg6iJ8qdu MZuVxin76kNvf36ZzrOGvdwJbCWLfr/cKep7tAH70QF1a3WHmcOPetI3IzGDr1pUDvVI 2cGwuW90NqzSGggMUhMSiJA+G+ELfswb/lQJf50n3lDh0DXioWHQ47F3N0M+hCpAclFn Z7cN433GAKJq+bh9tsWJ1JejPpy4hl373xuevGmCCpVSteWcnJ1dMuwgJDAsRWgGj9SI Pkuw== X-Received: by 10.180.188.239 with SMTP id gd15mr17591660wic.68.1414652842005; Thu, 30 Oct 2014 00:07:22 -0700 (PDT) Received: from linux6.9bf016 (62-37-135-95.pool.ukrtel.net. [95.135.37.62]) by mx.google.com with ESMTPSA id hk9sm7607650wjb.46.2014.10.30.00.07.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 00:07:21 -0700 (PDT) Received: from linux6.9bf016 (localhost [127.0.0.1]) by linux6.9bf016 (8.14.9/8.14.9) with ESMTP id s9U77Uj8022292 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 30 Oct 2014 09:07:30 +0200 Received: (from alex@localhost) by linux6.9bf016 (8.14.9/8.14.9/Submit) id s9U77UXi022291 for freebsd-tcltk@freebsd.org; Thu, 30 Oct 2014 09:07:30 +0200 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-tcltk@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Tcl/Tk discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 07:07:27 -0000 --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 --Qxx1br4bt0+wmkIi--