Bug#709986: texlive-base: "Use of uninitialized value"
Hilmar Preusse <hille42@web.de> writes:
> On 29.05.13 Norbert Preining (preining@logic.at) wrote:
>
> Hi,
>
>> The patch is quite simple:
>> diff --git a/texlive-base/debian/tl-paper b/texlive-base/debian/tl-paper
>> index e8f3ec9..7fc5223 100644
>> --- a/texlive-base/debian/tl-paper
>> +++ b/texlive-base/debian/tl-paper
>> @@ -74,6 +74,14 @@ sub main {
>> usage();
>> exit 1;
>> }
>> + # set TEXMFVAR and TEXMFSYSVAR to something completely absurd
>> + # so that we always find either the system provided config file
>> + # as distributed in /usr/share/texlive/texmf-dist, or, if the
>> + # admin decided to override that, a copy in TEXMFSYSCONFIG
>> + # but *not* the one we have created at some point in history
>> + # in TEXMF(SYS)VAR
>> + $ENV{"TEXMFVAR"} = "/does/hopefully/not/exists/on/any/system";
>> + $ENV{"TEXMFSYSVAR"} = "/does/hopefully/not/exists/on/any/system";
>> if ($prg =~ m/^all$/i) {
>> if ($newpaper !~ /^(a4|letter)$/) {
>> # we cannot deal with that for now, only a4|letter supported for
>>
> I'm pretty sure you'll get another bug for this code. As the path
> above does not corespond to the FHS is should work anyway. ;-)
Maybe it would be more elegant to do something like this
+ $ENV{"TEXMFVAR"} = "$TEXMFMAIN";
+ $ENV{"TEXMFSYSVAR"} = "$TEXMFMAIN";
(or whatever the current name for our tree is, and probably needs to be
expanded by kpsewhich, not the shell).
Regards, Frank
Reply to: