From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: charles@aurox.ch (Charles A. Roelli) Newsgroups: gmane.emacs.devel Subject: Re: macOS fullscreen crashes Date: Sat, 01 Dec 2018 15:45:57 +0100 Message-ID: References: <20181130110458.GA54580@breton.holly.idiocy.org> <20181201131851.GA65351@breton.holly.idiocy.org> Reply-To: charles@aurox.ch NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543675270 30631 195.159.176.226 (1 Dec 2018 14:41:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2018 14:41:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 01 15:41:05 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gT6S6-0007kM-Br for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2018 15:41:02 +0100 Original-Received: from localhost ([::1]:41512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gT6UC-0006MZ-Lv for ged-emacs-devel@m.gmane.org; Sat, 01 Dec 2018 09:43:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gT6U5-0006MI-VE for emacs-devel@gnu.org; Sat, 01 Dec 2018 09:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gT6U5-00062P-5P for emacs-devel@gnu.org; Sat, 01 Dec 2018 09:43:05 -0500 Original-Received: from sinyavsky.aurox.ch ([2a03:2040:2:1b::1]:33093) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gT6U4-00060M-Nl for emacs-devel@gnu.org; Sat, 01 Dec 2018 09:43:05 -0500 Original-Received: from sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) by sinyavsky.aurox.ch (Postfix) with ESMTP id A5C37229BC for ; Sat, 1 Dec 2018 14:47:59 +0000 (UTC) Authentication-Results: sinyavsky.aurox.ch (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=aurox.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aurox.ch; h= content-transfer-encoding:content-type:content-type:mime-version :references:reply-to:subject:subject:in-reply-to:to:from:from :message-id:date:date; s=dkim; t=1543675678; x=1544539679; bh=on +VFZc1fK2B4YjCJmzmP0d5gF5x+K1m5wIYZgm4ytQ=; b=B+j2HBkiI+pa0Ho28z JaW5mzt7H2H0B5gDJavQqVwbmOc9jgETfUTfKR1vAKVSNVdUEvdsiS3+nqm7qJ8e dzJ5hWEqpWBFflcjO9N6uVLB7P2jLSqg7PtlKc3+0GLZYd+580zwqvkZ0dOaE0XK 4x2ul7OspGbMMEcHBhUrUeOAQ= X-Virus-Scanned: Debian amavisd-new at test.virtualizor.com Original-Received: from sinyavsky.aurox.ch ([127.0.0.1]) by sinyavsky.aurox.ch (sinyavsky.aurox.ch [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1lyJn3Yrv7DE for ; Sat, 1 Dec 2018 14:47:58 +0000 (UTC) Original-Received: from gray (unknown [IPv6:2a02:1205:34ff:bc50:c62c:3ff:fe30:b864]) by sinyavsky.aurox.ch (Postfix) with ESMTPSA id 3CA4C228C2; Sat, 1 Dec 2018 14:47:58 +0000 (UTC) In-reply-to: <20181201131851.GA65351@breton.holly.idiocy.org> (message from Alan Third on Sat, 1 Dec 2018 13:18:51 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a03:2040:2:1b::1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231557 Archived-At: > Date: Sat, 1 Dec 2018 13:18:51 +0000 > From: Alan Third > > BTW, it looks like there are two different sets of macros for this, > there are the ones we=E2=80=99re using, and newer ones defined in > Availability.h that have two underscores at the start. It looks like > the newer ones are a bit neater. If you use >=20 > -mmacosx-version-min=3D10.x >=20 > it disables a great many deprecation warnings that you get if you just > set MAC_OS_X_VERSION_MIN_REQUIRED like we do. >=20 > I don=E2=80=99t think we should be changing anything at the moment, and= I > don=E2=80=99t know if those macros are available on macOS 10.6 so they = may not > be much use to us, but it is nice how it makes the compiler output a > lot quieter. __MAC_OS_X_VERSION_MIN_REQUIRED and __MAC_OS_X_VERSION_MAX_ALLOWED are available in 10.6 (and the use of, e.g. -mmacosx-version-min=3D10.x, is recommended in Availability.h). But it's unlikely that FSF GCC would support the "-mmacosx-version-min" flag, so we may not be able to use it. =20 > So, anyway, perhaps we want to put something like this in > nextstep/INSTALL: >=20 > Targeting different macOS versions > ---------------------------------- >=20 > The Emacs build process automatically enables or disables macOS > features according to the version of macOS it is being built on. It is > possible to over-ride this automatic configuration if you are > targeting a different version of macOS, or wish to build one > executable that is able to enable or disable features at run-time. >=20 > To build a version compatible with an older version of macOS use this > flag: >=20 > -DMAC_OS_X_VERSION_MIN_REQUIRED=3Dx >=20 > and to build for a newer version of macOS: >=20 > -DMAC_OS_X_VERSION_MAX_ALLOWED=3Dx >=20 > For example, to enable run-time checks for features available between > macOS 10.6, and 10.12 inclusive: >=20 > ./configure --with-ns CFLAGS=3D"-DMAC_OS_X_VERSION_MIN_REQUIRED=3D106= 0 \ > -DMAC_OS_X_VERSION_MAX_ALLOWED=3D101200 -g3 -O2" >=20 > The macOS version numbers are formatted as 10x0 for macOS up to 10.10, > and 10xx00 for macOS 10.10 and above. A full list is available in > /usr/include/AvailabilityMacros.h. Thanks, this looks good. We should also mention in NEWS that this is a change in build behavior from previous Emacs versions (and that this change was originally made in Emacs 26.1 but not mentioned in its NEWS).