Re: [MacPorts] #65933: git @2.38.0 does not build on PPC Leopard, Mac OS X 10.5.8, because wrong number of arguments specified for ‘deprecated’ attribute

MacPorts noreply at macports.org
Thu Oct 13 03:02:46 UTC 2022


#65933: git @2.38.0 does not build on PPC Leopard, Mac OS X 10.5.8, because wrong
number of arguments specified for ‘deprecated’ attribute
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  leopard ppc
      Port:  git        |
------------------------+-------------------------

Comment (by kencu):

 this was fixed by editing git-compat-util.h and removing the extra
 deprecated attribute.

 {{{
 $ diff -u git-compat-util.h.orig git-compat-util.h
 --- git-compat-util.h.orig      2022-10-12 20:01:13.000000000 -0700
 +++ git-compat-util.h   2022-10-12 20:01:53.000000000 -0700
 @@ -190,8 +190,7 @@
  #define _SGI_SOURCE 1

  #if defined(__GNUC__)
 -#define UNUSED __attribute__((unused)) \
 -       __attribute__((deprecated ("parameter declared as UNUSED")))
 +#define UNUSED __attribute__((unused))
  #else
  #define UNUSED
  #endif
 }}}

 a more robust fix that tests for the earliest version of gcc that doesn't
 allow this to work would be needed before it could be upstreamed though.

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


More information about the macports-tickets mailing list