[tex-live] tlmgr invokes cc on OS X

Norbert Preining preining at logic.at
Tue Oct 29 06:06:54 CET 2013


Hi Adam,

> This is going to confuse users and create some support hassles. Is there
> any way to stop tlmgr from doing this on OS X? I couldn't find it in the
> Perl code, so maybe this is from config.guess?

Ouch, we do not call cc in any of the perl code, that is sure, but
you are right, we ship the config.guess for detecting the platform.

That happens in
	TLUtils::platform
for all but Windows. The code is:
...
    if ($^O =~ /^MSWin/i) {
      $::_platform_ = "win32";
    } else {
      my $config_guess = "$::installerdir/tlpkg/installer/config.guess";
....

This is again called from
	TLPDB::platform
which *checks* first if the texlive.tlpdb setting "platform" is 
defined.

Unfortunately be default the platform is *not* written into the
tlpdb. This way the installation becomes more portable
(Think about an installation that has two sets of binaries and
no platofrm settings. In this case I can run tlmgr from both 
archs without problem - but I must say, I have never tried).

The platform setting is only saved into the tlpdb during installation
time when the architecture is forced.

Now, how can one circumvent this ... it is documented:
	tlmgr platform set <preferred_platform>

After this tlmgr should not use config.guess anymore ....

Hope that helps. If you need anything else, let me know.

If there is a different and save way to get the platform name on
Apple, let me know. We trued a lot of different things, but none
of them worked on all supported archs/os combinations.


Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------


More information about the tex-live mailing list