Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2012 11:53:29 -0500
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        =?UTF-8?B?Tmlrb2xhIExlxI1pxIc=?= <nikola.lecic@anthesphoria.net>
Cc:        sam.lin4ml@gmail.com, freebsd-ports@freebsd.org, romain@blogreen.org
Subject:   Re: Request to review: print/texlive-install
Message-ID:  <4FC3AD89.30603@missouri.edu>
In-Reply-To: <939b6405159c2222b39a75b2d9273ebe@anthesphoria.net>
References:  <CACsYpVOz1tnWO5e4S_OOSDGa7Q8OkztJ6HagHy58FY0J5RNCqQ@mail.gmail.com> <20120526090137.001691dc@scorpio> <ac8cb42c8cfedc59d2c7d6ccde74c476@anthesphoria.net> <4FC0F8EA.1090005@missouri.edu> <b532d4fdda7e4dfb99d4b4266fe7fe3c@anthesphoria.net> <4FC11B66.9000302@missouri.edu> <4b8eeb05337b220f301268ce014a159d@anthesphoria.net> <4FC2D159.4050801@missouri.edu> <4FC2D59E.3090302@missouri.edu> <f1842ddce39e9bdf46cd1d9c5c656a17@anthesphoria.net> <4FC3865A.20700@missouri.edu> <939b6405159c2222b39a75b2d9273ebe@anthesphoria.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC3AD89.30603>