Opened 2 years ago

Closed 23 months ago

#65272 closed defect (fixed)

octave @7.1.0+graphicsmagick: GraphicsMagick support is missing

Reported by: detlevd (Detlev Droege) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: haspatch Cc:
Port: octave

Description

Since the new Octave version 7.1.0 GraphicsMagick is not detected in the configure process and thus not active, leading to error messages on statements like img = imread("image.jpg"); telling

imfinfo: support for Image IO was unavailable or disabled when Octave was built

The +graphicsmagick variant however is active by default and wasn't turned off.

It turns out, that the configuration option paramters did change in 7.1.0. Simply correct the configure.args in the Portfile an it will be found again. --with-magick=GraphicsMagick must now have two plus signs at the end: --with-magick=GraphicsMagick++

Attachments (1)

octave710-portfile.diff (510 bytes) - added by detlevd (Detlev Droege) 2 years ago.
patch for the octave @7.1.0_0 Portfile

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by detlevd (Detlev Droege)

Attachment: octave710-portfile.diff added

patch for the octave @7.1.0_0 Portfile

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Owner: changed from mcalhoun@… to MarcusCalhoun-Lopez

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: octave @7.1.0 [default variants]: GraphicsMagick not compiled in despite +graphicsmagickoctave @7.1.0+graphicsmagick: GraphicsMagick support is missing

Thanks for reporting this bug and suggesting the fix. I agree that the fix looks correct. Of course the revision will also need to be increased since the fix changes what gets installed.

I was going to commit this change, but first I tried to build the port and it failed at the destroot phase. Since I don't think it's related I'll file a separate bug about that and leave this bug to the port's maintainer to fix. Or if you tested the fix and got a successful port installation, feel free to submit the fix (including the revision increase) as a pull request.

comment:3 Changed 23 months ago by detlevd (Detlev Droege)

I tested the patch and img = imread("image.jpg"); then works just fine. Submitted a pull request, including revision increase. Thanks for your feedback!

comment:4 Changed 23 months ago by Detlev Droege <droege@…>

Resolution: fixed
Status: assignedclosed

In f0616a0b7c66c68824767f25f980dae8625f1491/macports-ports (master):

octave: octave 7.*'s GraphicsMagick configure option changed

From octave 7.* release notes at https://octave.org/NEWS-7.html :
"Octave’s build system no longer appends “++” to the end of the

“magick++” library name (set with the --with-magick= configure flag).
The real name of the “magick++” library (including any potentially
trailing “++”) needs to be set in that option now."

Closes: #65272

Note: See TracTickets for help on using tickets.