[tex-live] tlmgr 2013 for OS X | undefined PATH in TLUtils.pm

Karl Berry karl at freefriends.org
Sat Aug 24 23:50:50 CEST 2013

    maybe tlmgr builds its own paths based
    on its location.

tlmgr does attempt to add its own self-located directory to PATH.
That is all it does.

    a root cron job

Indeed, cron jobs typically start with a minimal path.  I am not
surprised that it doesn't include /usr/sbin.

	chomp (my $sysctl = `/usr/sbin/sysctl hw.cpu64bit_capable`);

Thanks for finding the bug.  I think it would be better not to assume
MacOSX's sysctl is in /usr/sbin, since Apple could move it somewhere
else at any time.  So I changed it (again) to:
chomp (my $sysctl = `PATH=/usr/sbin:\$PATH sysctl hw.cpu64bit_capable`);

(Amazing how much random trouble results from supporting 64-bit

    When my internet connection is down while tlmgr is in the progress
    of updating, all packages in need of an update (I think, maybe
    others as well) are forcibly removed by it. I used TeX Live
    Utility.app to reinstall them. I doubt this behaviour is intended so
    this might also be of interest to the developers.

The connection crashes in the middle of an update?  I'm not sure what
can be done.  Although it is true that the failed updates shouldn't mean
removals.  Hmm.  Norbert?  Have you seen this?  (I doubt it ...)


More information about the tex-live mailing list