Gentoo Archives: gentoo-dev

From: waltdnes@××××××××.org
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 2/2] eclass/toolchain-funcs: add clang version functions
Date: Tue, 05 Jul 2016 17:47:21
Message-Id: 20160705174709.GA21615@waltdnes.org
In Reply to: Re: [gentoo-dev] [PATCH 2/2] eclass/toolchain-funcs: add clang version functions by Austin English
1 On Tue, Jul 05, 2016 at 01:08:13AM -0500, Austin English wrote
2 >
3 > My goal is clang support parity with gcc. If you are opposed to these
4 > sort of checks, then why don't we deprecate and remove those functions?
5 > I want to know why gcc deserves special treatment, either all compilers
6 > should have easy way to check major/minor/full versions, or none should.
7 > Obviously I'm not saying gcc should be removed now, but it could
8 > certainly be marked deprecated so the usage doesn't spread (hopefully)
9 > further.
10
11 This is reminiscent of the web-browser situation. I use Pale Moon.
12 It's feature-compatible with Firefox, but has not gone berserk with the
13 version numbering. The current Firefox is 49-point-something. Stupid
14 webpages see Pale Moon 26.3.3 and whine about "out-of-date-web-browser"
15 and kick the user out. But if the user sets the user agent (i.e. lies
16 to the webpage) that he's using Firefox 49.1, it works just fine.
17
18 It's not unique to the current FOS world, either. Some old MS-DOS
19 applications would only run when the OS reported a certain narrow range
20 of versions. When you updated MS-DOS, some older applications would
21 refuse to run, even though the newer MS-DOS was perfectly capable of
22 running it. Things got so bad that Microsoft introduced the SETVER
23 command https://support.microsoft.com/en-us/kb/96767 to deliberately
24 lie about the MS-DOS version number, when queried by specific
25 applications.
26
27 How is the version checking done? Does the check parse the file name
28 of the compiler? Can we get the GCC and CLANG people to agree to a
29 common command/parameter that returns a compatibility level for
30 "version-checking"?
31
32 --
33 Walter Dnes <waltdnes@××××××××.org>
34 I don't run "desktop environments"; I run useful applications