From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#27810: macOS runtime feature detection Date: Wed, 26 Jul 2017 21:43:44 -0400 Message-ID: References: <20170724202231.GA19721@breton.holly.idiocy.org> <20170726160638.GA20774@breton.holly.idiocy.org> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1501119909 29287 195.159.176.226 (27 Jul 2017 01:45:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 01:45:09 +0000 (UTC) Cc: 27810@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 27 03:45:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1daXrN-0007JD-TJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jul 2017 03:45:06 +0200 Original-Received: from localhost ([::1]:40632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daXrS-0000yp-6J for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jul 2017 21:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daXrL-0000yY-2T for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2017 21:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daXrK-0000Ym-2e for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2017 21:45:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55133) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1daXrJ-0000YW-Vg for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2017 21:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1daXrJ-0000eV-Ll for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2017 21:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jul 2017 01:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27810 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27810-submit@debbugs.gnu.org id=B27810.15011198532436 (code B ref 27810); Thu, 27 Jul 2017 01:45:01 +0000 Original-Received: (at 27810) by debbugs.gnu.org; 27 Jul 2017 01:44:13 +0000 Original-Received: from localhost ([127.0.0.1]:57810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daXqX-0000dE-A9 for submit@debbugs.gnu.org; Wed, 26 Jul 2017 21:44:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daXqV-0000d1-NJ for 27810@debbugs.gnu.org; Wed, 26 Jul 2017 21:44:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daXqP-0007wV-LR for 27810@debbugs.gnu.org; Wed, 26 Jul 2017 21:44:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daXq5-0007eR-4M; Wed, 26 Jul 2017 21:43:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1daXq4-0004zi-Mk; Wed, 26 Jul 2017 21:43:44 -0400 In-reply-to: <20170726160638.GA20774@breton.holly.idiocy.org> (message from Alan Third on Wed, 26 Jul 2017 17:06:38 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135037 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > We should be able to build a single binary that can detect new OS > > > features at runtime rather than depend on compile‐time macros. > > > > One reason to avoid doing it that way > > is for the sake of cross-compilation. > I’m afraid I don’t understand why it’s a problem for cross > compilation. Autoconf tests that test the compilation environment will automatically do the right thing in cross-compilation. That's why we try to implement ALL tests that way. > At the moment we don’t even provide any way of building > Emacs on one version of macOS that is guaranteed to work on another > version of macOS, never mind cross‐compiling the NS port from another > platform. Ideally cross-compiling should work from any platform to any platform if you have installed suitable cross-compilation tools. If this does not work, in principle that is a bug in Emacs. I am not saying it is an extremely important bug to fix, but we should not introduce more of them. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.