unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 28571@debbugs.gnu.org
Subject: bug#28571: 25.3; Compile error on macOS Sierra
Date: Sun, 24 Sep 2017 13:09:25 +0100	[thread overview]
Message-ID: <20170924120925.GC30865@breton.holly.idiocy.org> (raw)
In-Reply-To: <CAArVCkQNzEprAXePgaPJ5KTxi2AEt2_+3D+47joDYrgrnrr0BQ@mail.gmail.com>

On Sun, Sep 24, 2017 at 11:23:47AM +0000, Philipp Stephani wrote:
> Alan Third <alan@idiocy.org> schrieb am So., 24. Sep. 2017 um 13:07 Uhr:
> 
> > On Sun, Sep 24, 2017 at 07:49:55AM +0000, Philipp Stephani wrote:
> > > So I think the functions are there, but the compilation
> > > shouldn't use them since they would make the binary incompatible
> > > with old versions of macOS.
> >
> > I agree. I’ve attached a patch that should sort it.
> >
> 
> Thanks, the patch works, but you also need to #undef HAVE_UTIMENSAT.
> However, I'm wondering whether that's the right way to solve it. It
> means we're making some of the checks manual that have previously
> been automated, which implies that we need to recheck in the future
> whether the checks are still appropriate etc. Wouldn't it be better
> to modify configure.ac so that it doesn't detect these functions as
> present in the first place if we don't want to use them?

I can’t alter the checks directly as they’re part of gnulib (I think).
We’d have to suppress them. But that would be done by putting in a
simple check, ‘is this macOS? If yes, don’t use these functions’,
which is, IMO, no different than what the patch does.

We could get the gnulib people to fix them, but even then we’d still
want to just suppress them as we don’t want to use these functions on
macOS even if they are available due to cross‐version concerns.

If you just think the logic should be in configure.ac rather than
conf_post.h, then I think we might need to get help with how to
suppress or ignore the checks. Unless you know how.
-- 
Alan Third





  reply	other threads:[~2017-09-24 12:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-23 19:08 bug#28571: 25.3; Compile error on macOS Sierra Philipp
2017-09-23 19:31 ` Alan Third
2017-09-24  7:49   ` Philipp Stephani
2017-09-24 11:06     ` Alan Third
2017-09-24 11:23       ` Philipp Stephani
2017-09-24 12:09         ` Alan Third [this message]
2017-09-28 18:07           ` Alan Third
2017-09-29  7:23       ` Eli Zaretskii
2017-09-25  0:29     ` YAMAMOTO Mitsuharu
2017-09-30 19:17       ` Philipp Stephani
2017-10-01  5:51         ` YAMAMOTO Mitsuharu
2017-09-28 20:58 ` mituharu
2017-09-28 21:39   ` Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170924120925.GC30865@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=28571@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).