Zack Weinberg c041781106 config.sub: consistently use sun as default vendor for solaris*.
config.sub had a rule that os=sunos* implies vendor=sun unless the
vendor has already been set for some other reason, but no such rule
for os=solaris*, and that meant `./config.sub sparc-solaris2` was
inconsistent with what you’d get from config.guess on that system.

Add the missing rule.

Unlike the previous patch, this changes config.sub output for some
systems still actually in use today, but hardly anything looks at
the vendor field unless the OS field is something super generic like
“bsd” or “sysv”, so I think we can get away with it.

This patch also adds tests for the mapping of ‘sunos5’ to ‘solaris2’
and ‘solaris1’ to ‘sunos4’, which is logically unrelated *except*
that some of those test cases will fail in the absence of the above
change.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2024-06-03 19:28:34 +00:00
2020-12-22 08:00:00 +00:00
2020-12-22 08:00:00 +00:00
Description
No description provided
1.7 MiB
Languages
Perl 77.6%
Shell 18.9%
Makefile 3.5%