[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#594743: texlive-binaries: pdftex slow to generate sources when $HOME contains a trailing "/".



Hi,

I don't mind taking a look (I am a programmer) if it's likely to be a simple
change (i.e., I wouldn't need to have a bunch of requisite knowledge about
TexLive and its infrastructure).  Point me in the right direction if it's
going to save you guys some time.

I guess it will be around line 52 in current variable.c, in function kpathsea_var_value, where the value from getenv is taken.

Also, is there a reason why such a fix wouldn't ever make it upstream?  Have
they already seen this and somehow dismissed it due to another reason?

Yes, because it *CAN* be considered a feature!

Did I not also read in the merged bug which 594743 got put into, that tilde
expansion worked just fine in texmf.cnf, whereas $HOME still suffered?

Yes. tilde.c is used for that and it contains already code that handles
a trailing slash in $HOME. But using $HOME by itself is not treated
specifically but as any other variable. And so we would have to make
a copy/call to that code blob that removes trailing /, but *ONLY* for
$HOME, as for other variables it might be used on purpose!!!!

If you want to dive into it, please check out the source code,
or if you want I can send you variable.c, tilde.c, and anything else
you want.

Norbert



Reply to: