Opened 7 months ago

Last modified 7 months ago

#69692 closed defect

ImageMagick7 @7.1.1-29_1 [-x11]: Installation/build fails — at Initial Version

Reported by: frkd-dev (Oleksandr) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: ImageMagick7

Description

The installation of ImageMagick7 fails with the following errors:

:info:build Magick++/lib/Color.cpp:246:17: error: use of undeclared identifier 'PixelPacket'
:info:build       _pixel = (PixelPacket *)NULL;
:info:build                 ^
:info:build Magick++/lib/Color.cpp:246:30: error: expected expression
:info:build       _pixel = (PixelPacket *)NULL;
:info:build                              ^
:info:build 2 errors generated.

This error is introduced by the port's patch for "Color.cpp" file [1].

The upstream is using now the "PixelInfo" type instead of "PixelPacket", and I believe that causes the error.

The patch itself can be retired very soon since the upstream a couple of days ago ditched "nullptr" in favor of "(PixelInfo*)NULL" type casting [2].

[1]: https://github.com/macports/macports-ports/blob/master/graphics/ImageMagick7/files/Color.cpp.patch

[2]: https://github.com/ImageMagick/ImageMagick/blob/main/Magick%2B%2B/lib/Color.cpp#L246

Change History (0)

Note: See TracTickets for help on using tickets.