[MacPorts] #70702: Provide a compatibility wrapper for scandir in legacy-support

MacPorts noreply at macports.org
Sat Oct 26 16:57:27 UTC 2024


#70702: Provide a compatibility wrapper for scandir in legacy-support
-----------------------------+-----------------------
  Reporter:  fhgwright       |      Owner:  fhgwright
      Type:  enhancement     |     Status:  closed
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:
Resolution:  fixed           |   Keywords:
      Port:  legacy-support  |
-----------------------------+-----------------------
Changes (by fhgwright):

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


Comment:

 In [changeset:"866a0807191148098974d0f502a9409b49fb46e0/macports-legacy-
 support" 866a0807191148098974d0f502a9409b49fb46e0/macports-legacy-support]
 (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-legacy-support"
 revision="866a0807191148098974d0f502a9409b49fb46e0"
 Add scandir() compatibility feature.

 This adds a wrapper to make the scandir() 'compar' argument and the
 provided alphasort() function match the types used in 10.8+, thereby
 avoiding warnings, and in some cases errors, due to the pointer type
 mismatch.

 To avoid breaking code expecting the old behavior, this hack is only
 applied when _MACPORTS_LEGACY_COMPATIBLE_SCANDIR is defined nonzero.

 Closes: https://trac.macports.org/ticket/70702

 TESTED:
 Tests pass on all OS versions with this fix.
 }}}

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


More information about the macports-tickets mailing list