[tex-live] tlmgr still has problems handling spaces in texlive's path

Artemio Gonzalez Lopez artemiog at mac.com
Mon Jun 6 22:46:47 CEST 2011


On Jun 6, 2011, at 4:10 AM, Norbert Preining wrote:

> On Mo, 06 Jun 2011, Norbert Preining wrote:
>> Ok, here is a patch against current tlpretest.
> 
> Here it is now also attached.
> 
> You have to go into .../2011/tlpkg/TeXLive and apply the patch.
> 
>> I tried it from an installation that:
>> - was installed from an install-tl that is ina space-containing-path
>> - the network server also contained a space in the dir
>> - the destination also contains a space in the path
>> 
>> With this patch I could run install etc (but not --helP!) on linux.
>> 
>> If someone can test this on Mac and MOST IMPORTANT ON WINDOWS!!!!!
>> That would be great!!!!
>> 
>>> - TLPDB.pm lines 303 & 1359
>>> - TLUtils.pm lines 1471, 1891, 2158, 2216, 2251, 2274, 3331
>> 
>> Not all of them have been changed, only some.
> 
> Best wishes
> 
> Norbert


Norbert,

Thanks a lot for the patch. With it, I could successfully run "sudo tmgr update --self" on my Mac OS X texlive distro, whose path contains a space (/Volumes/Macintosh HD/...). However,  "sudo tmgr update --all" still fails miserably:

imac:~ artemio$ sudo tlmgr update --all
tlmgr: package repository http://ftp.ctex.org/mirrors/texlive/tlpretest
tlmgr: saving backups to /Volumes/Macintosh HD/usr/local/texlive/2011/tlpkg/backups
[1/30] auto-remove: em
[2/30, ??:??/??:??] update: cals [364k] (20025 -> 22766) ... sh: /Volumes/Macintosh: No such file or directory
_install_package: Unpacking /Volumes/Macintosh HD/usr/local/texlive/2011/temp/cals.tar.xz failed, please retry.


Installation of new version of cals did fail, trying to unwind.
sh: /Volumes/Macintosh: No such file or directory
_install_package: Unpacking /Volumes/Macintosh HD/usr/local/texlive/2011/temp/cals.r20025.tar.xz failed, please retry.
Restoring of old package did NOT succeed.
Most likely repair: run tlmgr install cals and hope.
done
[3/30, 00:03/04:40] update: context.universal-darwin [84k] (18902 -> 22772) ... sh: /Volumes/Macintosh: No such file or directory
_install_package: Unpacking /Volumes/Macintosh HD/usr/local/texlive/2011/temp/context.universal-darwin.tar.xz failed, please retry.


Installation of new version of context.universal-darwin did fail, trying to unwind.
sh: /Volumes/Macintosh: No such file or directory
_install_package: Unpacking /Volumes/Macintosh HD/usr/local/texlive/2011/temp/context.universal-darwin.r18902.tar.xz failed, please retry.
Restoring of old package did NOT succeed.
Most likely repair: run tlmgr install context.universal-darwin and hope.
done
[4/30, 00:07/08:51] update: context.x86_64-darwin [84k] (18902 -> 22772) ... sh: /Volumes/Macintosh: No such file or directory
_install_package: Unpacking /Volumes/Macintosh HD/usr/local/texlive/2011/temp/context.x86_64-darwin.tar.xz failed, please retry.

etc.

For the record (I don't know if this is the root of the problem) I just changed the header of your patch file to

--- /usr/local/texlive/2011/tlpkg/TeXLive/TLUtils.pm	2011-05-31 04:42:46.000000000 +0900
+++ TLUtils.pm	2011-06-06 10:55:18.000000000 +0900

 and executed "sudo patch < ~/tlinfra-space.diff" from /usr/local/texlive/2011/tlpkg/TeXLive/.

Thanks a lot for your help,

Artemio





More information about the tex-live mailing list