From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#27736: OSX 10.6.8: Building from master branch fails. Date: Wed, 28 Mar 2018 14:29:38 -0700 Organization: UCLA Computer Science Department Message-ID: <805d95e1-bfc0-bb40-ced7-c10bb5a7256e__27498.1558010497$1522272494$gmane$org@cs.ucla.edu> References: <46d25462-4eb0-0bd0-f5ab-2b28bae98ee6@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------9FDAC094ECB6FFDA16A42223" X-Trace: blaine.gmane.org 1522272494 28162 195.159.176.226 (28 Mar 2018 21:28:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2018 21:28:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Cc: 27736@debbugs.gnu.org, esq@lawlist.com, Gnulib bugs , npostavs@users.sourceforge.net To: "Charles A. Roelli" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 23:28:10 2018 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 1f1Ic1-00076c-Rt for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Mar 2018 23:28:06 +0200 Original-Received: from localhost ([::1]:41574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Ie3-00068T-OI for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Mar 2018 17:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Idv-00065j-Rr for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2018 17:30:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1Idu-0005Ih-JY for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2018 17:30:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f1Idu-0005IY-Ef for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2018 17:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f1Idu-00027i-0P for bug-gnu-emacs@gnu.org; Wed, 28 Mar 2018 17:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Mar 2018 21:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27736-submit@debbugs.gnu.org id=B27736.15222725898124 (code B ref 27736); Wed, 28 Mar 2018 21:30:01 +0000 Original-Received: (at 27736) by debbugs.gnu.org; 28 Mar 2018 21:29:49 +0000 Original-Received: from localhost ([127.0.0.1]:57723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Idh-00026x-9P for submit@debbugs.gnu.org; Wed, 28 Mar 2018 17:29:49 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Ide-00026h-L7 for 27736@debbugs.gnu.org; Wed, 28 Mar 2018 17:29:47 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8392016160F; Wed, 28 Mar 2018 14:29:40 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id V9Z2ib-eb_xd; Wed, 28 Mar 2018 14:29:39 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 40807161611; Wed, 28 Mar 2018 14:29:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5v8OLFdJp8Xt; Wed, 28 Mar 2018 14:29:39 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1C91816160F; Wed, 28 Mar 2018 14:29:39 -0700 (PDT) In-Reply-To: Content-Language: en-US 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:144674 Archived-At: This is a multi-part message in MIME format. --------------9FDAC094ECB6FFDA16A42223 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 03/28/2018 11:54 AM, Charles A. Roelli wrote: > > - time_t t = -67768038400665600; > + time_t t = -67768038400666600; Thanks, I did that in Gnulib and propagated the result into Emacs master (see attached patch). > And then I got the following in the output of ./configure: > > checking whether localtime loops forever near extrema... ./configure: line 30561: 35760 Alarm clock TZ=QQQ0 ./conftest$EXEEXT Thanks for mentioning that; I attempted to suppress the "Alarm clock" stuff in the attached patch too. > I will try to find the exact boundary of the hang again. And the hang > is timezone-dependent, so that complicates things too. I think we should be OK here, as the test case uses UTC so that it is reproducible. The use of UTC could explain why the abovementioned numeric change was needed. --------------9FDAC094ECB6FFDA16A42223 Content-Type: text/x-patch; name="0001-time_rz-fix-workaround-for-Mac-OS-X-10.6-infloop.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-time_rz-fix-workaround-for-Mac-OS-X-10.6-infloop.patch" >From ad52c652a64ebe3523437fb9bb714f99c1ffa9e6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Mar 2018 12:45:45 -0700 Subject: [PATCH] time_rz: fix workaround for Mac OS X 10.6 infloop Problems reported by Charles A. Roelli (Bug#27736#117). * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp. Also, discard output, which clutters the 'configure' log. --- ChangeLog | 7 +++++++ m4/time_rz.m4 | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74f3bfc71..bd8df9a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-03-28 Paul Eggert + + time_rz: fix workaround for Mac OS X 10.6 infloop + Problems reported by Charles A. Roelli (Bug#27736#117). + * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp. + Also, discard output, which clutters the 'configure' log. + 2018-03-27 Paul Eggert havelib: port to Solaris 10 /bin/sh diff --git a/m4/time_rz.m4 b/m4/time_rz.m4 index af9fa02b5..555570625 100644 --- a/m4/time_rz.m4 +++ b/m4/time_rz.m4 @@ -13,8 +13,8 @@ AC_DEFUN([gl_TIME_RZ], AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) AC_REQUIRE([AC_STRUCT_TIMEZONE]) - # Mac OS X 10.6 loops forever with some time_t values less - # than -67768038400665599. See Bug#27706, Bug#27736, and + # Mac OS X 10.6 loops forever with some time_t values. + # See Bug#27706, Bug#27736, and # https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html AC_CACHE_CHECK([whether localtime loops forever near extrema], [gl_cv_func_localtime_infloop_bug], @@ -26,7 +26,7 @@ AC_DEFUN([gl_TIME_RZ], #include #include ]], [[ - time_t t = -67768038400665600; + time_t t = -67768038400666600; struct tm *tm; char *tz = getenv ("TZ"); if (! (tz && strcmp (tz, "QQQ0") == 0)) @@ -36,7 +36,8 @@ AC_DEFUN([gl_TIME_RZ], /* Use TM and *TM to suppress over-optimization. */ return tm && tm->tm_isdst; ]])], - [TZ=QQQ0 ./conftest$EXEEXT || gl_cv_func_localtime_infloop_bug=yes], + [(TZ=QQQ0 ./conftest$EXEEXT) >/dev/null 2>&1 || + gl_cv_func_localtime_infloop_bug=yes], [], [gl_cv_func_localtime_infloop_bug="guessing no"])]) if test "$gl_cv_func_localtime_infloop_bug" = yes; then -- 2.14.3 --------------9FDAC094ECB6FFDA16A42223--