[MacPorts] #58255: ruby +universal: config.h: error: invalid suffix on literal; C++11 requires a space between literal and identifier

MacPorts noreply at macports.org
Wed Dec 30 11:22:22 UTC 2020


#58255: ruby +universal: config.h: error: invalid suffix on literal; C++11 requires
a space between literal and identifier
-------------------------------------------------+-------------------------
  Reporter:  ryandesign                          |      Owner:  kimuraw
      Type:  defect                              |     Status:  closed
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:
Resolution:  fixed                               |   Keywords:
      Port:  ruby19 ruby21 ruby22 ruby23 ruby24  |
  ruby25 ruby26                                  |
-------------------------------------------------+-------------------------
Changes (by kimuraw):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"b5cdf65240aee3a151601292cf269e27717f22f0/macports-ports"
 b5cdf65240aee3a151601292cf269e27717f22f0/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="b5cdf65240aee3a151601292cf269e27717f22f0"
 lang/ruby26 .. ruby19: fix "invalid suffix on literal" with C++11

 insert spaces between literal and identifier in config.h.

     // before
     #define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
     #define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS

     // after
     #define RUBY_ARCH "universal-" RUBY_PLATFORM_OS
     #define RUBY_PLATFORM "universal." RUBY_PLATFORM_CPU "-"
 RUBY_PLATFORM_OS

 note: ruby-2.5 or earlier, `configure` does not accept "--with-arch=arm64"

 Closes: https://trac.macports.org/ticket/58255
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58255#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list