Request to review: print/texlive-install

Stephen Montgomery-Smith stephen at missouri.edu
Mon May 28 16:53:42 UTC 2012


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.



More information about the freebsd-ports mailing list