[MacPorts] #69035: darktable, darktable-devel: error: too many arguments to function call

MacPorts noreply at macports.org
Mon Feb 12 14:42:02 UTC 2024


#69035: darktable, darktable-devel: error: too many arguments to function call
-----------------------------------------+---------------------------------
  Reporter:  ryandesign                  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect                      |     Status:  assigned
  Priority:  Normal                      |  Milestone:
 Component:  ports                       |    Version:  2.8.1
Resolution:                              |   Keywords:
      Port:  darktable, darktable-devel  |
-----------------------------------------+---------------------------------

Comment (by pinxue):

 Before port is fixed, here is a workaround for darktable 4.4.1 (the
 release used by port at this moment)
 Put following text in
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/darktable/files/imageio_jpegxl.patch

 {{{
 --- src/imageio/imageio_jpegxl.c.orig   2024-02-12 20:48:45
 +++ src/imageio/imageio_jpegxl.c        2024-02-12 20:49:16
 @@ -223,7 +223,7 @@

      if(status == JXL_DEC_COLOR_ENCODING)
      {
 -      if(JxlDecoderGetICCProfileSize(decoder, &pixel_format,
 JXL_COLOR_PROFILE_TARGET_DATA, &icc_size)
 +      if(JxlDecoderGetICCProfileSize(decoder,
 JXL_COLOR_PROFILE_TARGET_DATA, &icc_size)
           == JXL_DEC_SUCCESS)
        {
          if(icc_size)
 @@ -231,7 +231,6 @@
            img->profile_size = icc_size;
            img->profile = (uint8_t *)g_malloc0(icc_size);
            JxlDecoderGetColorAsICCProfile(decoder,
 -                                         &pixel_format,
                                           JXL_COLOR_PROFILE_TARGET_DATA,
                                           img->profile,
                                           icc_size);
 }}}

 Then add one line in
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/darktable/Portfile

 {{{
 patchfiles-append imageio_jpegxl.patch
 }}}

 Then port clean darktable, port install darktable.

 Latest up-stream source code already fixed it by using version check
 macro, so maybe simplest way is just upgrade the port to use later
 release.

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


More information about the macports-tickets mailing list