[MacPorts] #66852: cairo, cairo-devel: Update to 1.18.0

MacPorts noreply at macports.org
Fri Sep 29 12:32:22 UTC 2023


#66852: cairo, cairo-devel: Update to 1.18.0
--------------------------------+----------------------
  Reporter:  ryandesign         |      Owner:  mascguy
      Type:  update             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.8.1
Resolution:                     |   Keywords:
      Port:  cairo cairo-devel  |
--------------------------------+----------------------
Changes (by mascguy):

 * cc: lukaso (added)
 * version:   => 2.8.1


Comment:

 For anyone interested in the merge request related to dylib versioning,
 it's here:

 [https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/334 MR 334 -
 meson: Setup darwin dylib versions]

 As for Meson specifics: The secret sauce is attribute `darwin_versions`, a
 two-element version string array. For example:

 {{{
 # First define the dylib version string, of the form X.Y.Z.
 # (Note: This example isn't quite correct, in terms of the versioning we
 need for MacPorts. But illustrates the concept regardless.)

 cairo_dylib_ver = '@0 at .@1 at .@2@'.format(cairo_version_major,
 cairo_version_minor, cairo_version_micro)


 # Then define the array. The first element is the compatibility version,
 while the second is the current version.
 # For this example, we're using the same for both. But they're often
 different.

 cairo_dylib_versions = [cairo_dylib_ver, cairo_darwin_ver]


 # Then specify attribute 'darwin_versions', referencing the two-element
 version array defined earlier

 libcairo = library('cairo', cairo_sources,
   dependencies: deps,
   c_args: cairo_no_warn_c_args + pthread_c_args,
   cpp_args: cairo_no_warn_c_args + pthread_c_args,
   link_args: extra_link_args,
   soversion: cairo_version_sonum,
   version: cairo_libversion,
   darwin_versions: cairo_darwin_versions,
   install: true,
   include_directories: incbase,
 )
 }}}

 Meson reference page:

 [https://mesonbuild.com/Reference-
 manual_functions.html#both_libraries_darwin_versions Meson Reference -
 darwin_versions]

 Lukas, this is what was missing originally, for the 1.17.x security fix.

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


More information about the macports-tickets mailing list