GNU bug report logs - #46036
fails do build on macos 10.7

Previous Next

Package: emacs;

Reported by: Riccardo Mottola <riccardo.mottola <at> libero.it>

Date: Fri, 22 Jan 2021 14:58:01 UTC

Severity: normal

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46036 in the body.
You can then email your comments to 46036 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Fri, 22 Jan 2021 14:58:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Riccardo Mottola <riccardo.mottola <at> libero.it>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Jan 2021 14:58:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Riccardo Mottola <riccardo.mottola <at> libero.it>
To: bug-gnu-emacs <at> gnu.org
Subject: fails do build on macos 10.7
Date: Fri, 22 Jan 2021 15:57:18 +0100
Compilation of 27.1 yields:
nsfns.m:496:33: error: unexpected type name 'BOOL': expected expression
  NSNumber *isUbiquitousItem = @YES;
                                ^
/usr/include/objc/objc.h:50:26: note: expanded from macro 'YES'
#define YES             (BOOL)1
                         ^

this code is guarded with MacOS 10.7, but the compiler doesn't like it.

It is as easy to write it old-style:
  NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];

and emacs 27.1 happily running on Lion again.

Thanks





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Sat, 30 Jan 2021 08:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 46036 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Riccardo Mottola <riccardo.mottola <at> libero.it>, Alan Third <alan <at> idiocy.org>
Cc: 46036 <at> debbugs.gnu.org
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 10:57:20 +0200
> Date: Fri, 22 Jan 2021 15:57:18 +0100
> From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> 
> Compilation of 27.1 yields:
> nsfns.m:496:33: error: unexpected type name 'BOOL': expected expression
>    NSNumber *isUbiquitousItem = @YES;
>                                  ^
> /usr/include/objc/objc.h:50:26: note: expanded from macro 'YES'
> #define YES             (BOOL)1
>                           ^
> 
> this code is guarded with MacOS 10.7, but the compiler doesn't like it.
> 
> It is as easy to write it old-style:
>    NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];
> 
> and emacs 27.1 happily running on Lion again.

Alan, any comments on this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Sat, 30 Jan 2021 10:58:02 GMT) Full text and rfc822 format available.

Message #11 received at 46036 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46036 <at> debbugs.gnu.org, Riccardo Mottola <riccardo.mottola <at> libero.it>
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 10:56:59 +0000
On Sat, Jan 30, 2021 at 10:57:20AM +0200, Eli Zaretskii wrote:
> > Date: Fri, 22 Jan 2021 15:57:18 +0100
> > From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> > 
> > Compilation of 27.1 yields:
> > nsfns.m:496:33: error: unexpected type name 'BOOL': expected expression
> >    NSNumber *isUbiquitousItem = @YES;
> >                                  ^
> > /usr/include/objc/objc.h:50:26: note: expanded from macro 'YES'
> > #define YES             (BOOL)1
> >                           ^
> > 
> > this code is guarded with MacOS 10.7, but the compiler doesn't like it.
> > 
> > It is as easy to write it old-style:
> >    NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];
> > 
> > and emacs 27.1 happily running on Lion again.
> 
> Alan, any comments on this?

Looks fine to me. Is this good to go into Emacs 27, or does it have to
wait until the release is done?
-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Sat, 30 Jan 2021 12:05:02 GMT) Full text and rfc822 format available.

Message #14 received at 46036 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Third <alan <at> idiocy.org>
Cc: 46036 <at> debbugs.gnu.org, riccardo.mottola <at> libero.it
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 14:05:05 +0200
> Date: Sat, 30 Jan 2021 10:56:59 +0000
> From: Alan Third <alan <at> idiocy.org>
> Cc: Riccardo Mottola <riccardo.mottola <at> libero.it>, 46036 <at> debbugs.gnu.org
> 
> On Sat, Jan 30, 2021 at 10:57:20AM +0200, Eli Zaretskii wrote:
> > > Date: Fri, 22 Jan 2021 15:57:18 +0100
> > > From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> > > 
> > > Compilation of 27.1 yields:
> > > nsfns.m:496:33: error: unexpected type name 'BOOL': expected expression
> > >    NSNumber *isUbiquitousItem = @YES;
> > >                                  ^
> > > /usr/include/objc/objc.h:50:26: note: expanded from macro 'YES'
> > > #define YES             (BOOL)1
> > >                           ^
> > > 
> > > this code is guarded with MacOS 10.7, but the compiler doesn't like it.
> > > 
> > > It is as easy to write it old-style:
> > >    NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];
> > > 
> > > and emacs 27.1 happily running on Lion again.
> > 
> > Alan, any comments on this?
> 
> Looks fine to me. Is this good to go into Emacs 27, or does it have to
> wait until the release is done?

Please push to emacs-27.

Is this change safe, or will we need another pretest to be sure?  I
thought we could next go straight to a release candidate.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Sat, 30 Jan 2021 18:33:02 GMT) Full text and rfc822 format available.

Message #17 received at 46036 <at> debbugs.gnu.org (full text, mbox):

From: Riccardo Mottola <riccardo.mottola <at> libero.it>
To: Eli Zaretskii <eliz <at> gnu.org>, Alan Third <alan <at> idiocy.org>
Cc: 46036 <at> debbugs.gnu.org
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 19:32:17 +0100
Hi,


Eli Zaretskii wrote:
>>>> this code is guarded with MacOS 10.7, but the compiler doesn't like it.
>>>>
>>>> It is as easy to write it old-style:
>>>>     NSNumber *isUbiquitousItem = [NSNumber numberWithBool:YES];
>>>>
>>>> and emacs 27.1 happily running on Lion again.
>>> Alan, any comments on this?
>> Looks fine to me. Is this good to go into Emacs 27, or does it have to
>> wait until the release is done?
> Please push to emacs-27.
>
> Is this change safe, or will we need another pretest to be sure?  I
> thought we could next go straight to a release candidate.


to my knowledge it is safe: it is really equivalent code, the new syntax 
is just a shortcut. A test on a newer MacOS is of course needed, I don't 
have one.

Riccardo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46036; Package emacs. (Sat, 30 Jan 2021 18:34:02 GMT) Full text and rfc822 format available.

Message #20 received at 46036 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Riccardo Mottola <riccardo.mottola <at> libero.it>
Cc: alan <at> idiocy.org, 46036 <at> debbugs.gnu.org
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 20:34:00 +0200
> Cc: 46036 <at> debbugs.gnu.org
> From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> Date: Sat, 30 Jan 2021 19:32:17 +0100
> 
> > Is this change safe, or will we need another pretest to be sure?  I
> > thought we could next go straight to a release candidate.
> 
> to my knowledge it is safe: it is really equivalent code, the new syntax 
> is just a shortcut. A test on a newer MacOS is of course needed, I don't 
> have one.

Thanks.




Reply sent to Alan Third <alan <at> idiocy.org>:
You have taken responsibility. (Sat, 30 Jan 2021 22:17:02 GMT) Full text and rfc822 format available.

Notification sent to Riccardo Mottola <riccardo.mottola <at> libero.it>:
bug acknowledged by developer. (Sat, 30 Jan 2021 22:17:02 GMT) Full text and rfc822 format available.

Message #25 received at 46036-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46036-done <at> debbugs.gnu.org, Riccardo Mottola <riccardo.mottola <at> libero.it>
Subject: Re: bug#46036: fails do build on macos 10.7
Date: Sat, 30 Jan 2021 22:15:57 +0000
On Sat, Jan 30, 2021 at 08:34:00PM +0200, Eli Zaretskii wrote:
> > Cc: 46036 <at> debbugs.gnu.org
> > From: Riccardo Mottola <riccardo.mottola <at> libero.it>
> > Date: Sat, 30 Jan 2021 19:32:17 +0100
> > 
> > > Is this change safe, or will we need another pretest to be sure?  I
> > > thought we could next go straight to a release candidate.
> > 
> > to my knowledge it is safe: it is really equivalent code, the new syntax 
> > is just a shortcut. A test on a newer MacOS is of course needed, I don't 
> > have one.
> 
> Thanks.

I agree that it's safe so I've pushed the change.
-- 
Alan Third




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 28 Feb 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.