[MacPorts] #57539: legacysupport-1.0: Let ports specify what symbols they need

MacPorts noreply at macports.org
Fri Apr 8 07:00:46 UTC 2022


#57539: legacysupport-1.0: Let ports specify what symbols they need
----------------------------+--------------------
  Reporter:  ryandesign     |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  legacysupport  |
----------------------------+--------------------

Comment (by cjones051073):

 > Does it have CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID?
 > These are supposed to be a part of CLOCK_GETTIME, however I try to build
 gstreamer1 now, and it fails:
 >
 > {{{
 >  ../gstreamer-1.20.1/plugins/tracers/gstrusage.c
 > ../gstreamer-1.20.1/plugins/tracers/gstrusage.c: In function 'do_stats':
 > ../gstreamer-1.20.1/plugins/tracers/gstrusage.c:172:25: error:
 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function)
 >   172 |     if (!clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &now)) {
 >       |                         ^~~~~~~~~~~~~~~~~~~~~~~~
 > ../gstreamer-1.20.1/plugins/tracers/gstrusage.c:172:25: note: each
 undeclared identifier is reported only once for each function it appears
 in
 > ../gstreamer-1.20.1/plugins/tracers/gstrusage.c:184:25: error:
 'CLOCK_THREAD_CPUTIME_ID' undeclared (first use in this function)
 >   184 |     if (!clock_gettime (CLOCK_THREAD_CPUTIME_ID, &now)) {
 >       |
 > }}}
 >
 > The following added to Portfile:
 > {{{
 > PortGroup                     legacysupport 1.1
 > legacysupport.newest_darwin_requires_legacy 15
 > }}}

 No, those options are currently not defined. See

 https://github.com/macports/macports-legacy-
 support/blob/master/include/time.h

 and the local implementation in

 https://github.com/macports/macports-legacy-support/blob/master/src/time.c

 Please feel free to open a PR implementing these options, if you know how
 they can be added.

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


More information about the macports-tickets mailing list