From owner-freebsd-ports@FreeBSD.ORG Mon May 28 16:53:41 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2F4D106566B for ; Mon, 28 May 2012 16:53:41 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 88ACF8FC17 for ; Mon, 28 May 2012 16:53:41 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q4SGrTFj020967; Mon, 28 May 2012 11:53:30 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4FC3AD89.30603@missouri.edu> Date: Mon, 28 May 2012 11:53:29 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: =?UTF-8?B?Tmlrb2xhIExlxI1pxIc=?= References: <20120526090137.001691dc@scorpio> <4FC0F8EA.1090005@missouri.edu> <4FC11B66.9000302@missouri.edu> <4b8eeb05337b220f301268ce014a159d@anthesphoria.net> <4FC2D159.4050801@missouri.edu> <4FC2D59E.3090302@missouri.edu> <4FC3865A.20700@missouri.edu> <939b6405159c2222b39a75b2d9273ebe@anthesphoria.net> In-Reply-To: <939b6405159c2222b39a75b2d9273ebe@anthesphoria.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: sam.lin4ml@gmail.com, freebsd-ports@freebsd.org, romain@blogreen.org Subject: Re: Request to review: print/texlive-install X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 16:53:42 -0000 On 05/28/2012 10:44 AM, Nikola Lečić wrote: > On Mon, 28 May 2012 09:06:18 -0500, Stephen Montgomery-Smith wrote: >>> 2. fontconfig is a run dependency as well, xetex needs it to run. >> >> Thanks. What about perl - is that a run dependency as well? > > Yes, it is, install-tl and tlmgr are perl scripts. > >>> 3. TeX Live ships with its own portable FreeBSD i386/amd64 xz and wget >>> binaries and install-tl/tlmgr use them. They will not work on FreeBSD<7. >>> Therefore, it could be possible that you need to add xz and wget as >>> build/run dependencies on FreeBSD<7 and on architectures other than >>> i386/amd64, although I haven't checked this. >> >> I won't worry about FreeBSD<7. They are end of line anyway. > > Ok. > But it looks like tlmgr expects to find wget in its path. So I'll add it as a run dependency. >>> 4. Since the aim of your port is not to create portable binaries, there >>> is no reason not to build xindy. You can freely add '--enable-xindy >>> CLISP=/path to the clisp binary/', and lang/clisp as a build dependency. >> >> I was looking at the online docs of xindy. Is the version of xindy >> that comes with texlive out of date? The online docs don't match the >> program that comes with xindy. > > Many other programs are out of date, TeX Live 2011 was released a year > ago. The versions distributed with TL releases match together well. The > safest options for TL2011 users is to use xindy distributed with TL2011. > I will add an option that allows xindy to be built. > More notes/questions: > > * You could add x11-toolkits/p5-Tk as a run dependency. tlmgr has a > nice GUI; actually it's very inconvenient to use it without gui. > I will add an option that will add x11-toolkits/p5-Tk as a run dependency. > * Since this port leaves full TeX Live system installed, users should > use tlmgr to update their packages and scripts. Two questions in this > respect: > > a) what will happen with /var/db/ports/ info? > he info will become out of date. But when the user tries to deinstall the package, he/she gets helpful messages that says it could not be completely deinstalled, and says where the problem is. And since the only stuff that will have changed is in ${PREFIX}/texlive, the user should find it easy to delete the left over stuff. Also I think one could add a pkg-deinstall message that says to apply "rm -rf ${PREFIX}/texlive" just to be sure. > b) it's not a good idea to run tlmgr gui as root. Maybe to offer an > option with SUID Bit, as in sysutils/xcdroast? This looks non-trivial. Simply setting the setuid bit on the tlmgr script doesn't work, because it is a perl script. One way would be to write a wrapper. But I would recommend the port "security/super" which allows you to create scripts that can be run with setuid. Then let the user set this up as they desire.