Re: installer misidentifies illumos OS

[email protected] Sat, 07 Mar 2026 15:31:57 -0600
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
On 2026-03-06 17:41, Karl Berry wrote:

> install-tl and tlmgr use the result of running the common config.guess
> script to determine the os. So the question is, what does config.guess
> return? I'll attach the script for convenience?
> 
> Right now the code (function platform_name in tlpkg/TeXLive/TLUtils.pm)
> just matches anything with "solaris" in the name for our
> i386/x86_64-solaris. That does seem clearly wrong.

Interestingly, config.guess returns different values on Solaris/illumos 
depending on whether or not a C compiler is available. Here is the 
relevant section, I believe (lines 438-453):

  i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL


When I initially ran the TeXLive installer, I didn't have gcc installed, 
so config.guess returned "i386-pc-solaris2.11" instead of 
"x86_64-pc-solaris2.11". I just confirmed that, with gcc installed, the 
TeXLive installer does select x86_64-solaris binaries.