Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660298 - sci-mathematics/octave-4.4.0 fails at build with Imagemagick: Quantum not declared in this scope
Summary: sci-mathematics/octave-4.4.0 fails at build with Imagemagick: Quantum not dec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
: 669930 (view as bug list)
Depends on:
Blocks: 663390
  Show dependency tree
 
Reported: 2018-07-03 19:16 UTC by jorgicio
Modified: 2020-03-27 18:46 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The log (build-octave.log.gz,93.58 KB, application/gzip)
2018-07-03 19:18 UTC, jorgicio
Details
emerge-info.txt (emerge-info.txt,18.33 KB, text/plain)
2018-07-04 21:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,338.33 KB, text/plain)
2018-07-04 21:02 UTC, Toralf Förster
Details
environment (environment,186.03 KB, text/plain)
2018-07-04 21:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.72 KB, application/x-bzip)
2018-07-04 21:02 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,103.58 KB, application/x-bzip)
2018-07-04 21:02 UTC, Toralf Förster
Details
sci-mathematics:octave-4.4.0:20180704-102201.log.bz2 (sci-mathematics:octave-4.4.0:20180704-102201.log.bz2,41.20 KB, application/x-bzip)
2018-07-04 21:02 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,84.51 KB, application/x-bzip)
2018-07-04 21:02 UTC, Toralf Förster
Details
The log for octave 4.4.1 (octave-4.4.1-build.log.gz,93.98 KB, application/gzip)
2018-09-24 18:13 UTC, jorgicio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jorgicio 2018-07-03 19:16:04 UTC
Hi!

Octave 4.4.0 fails at build with Imagemagick due to a not declared variable. It's being build with USE="imagemagick" enabled by default. I'll attach the log for more details.

I have installed media-gfx/imagemagick-6.9.9.40 on my system (I can't install the >=7.0 version due to libopenshot)

Thanks.

Reproducible: Always
Comment 1 jorgicio 2018-07-03 19:18:06 UTC
Created attachment 538280 [details]
The log
Comment 2 Toralf Förster gentoo-dev 2018-07-04 21:02:19 UTC
appeared recently at the tinderbox image 17.0-desktop_20180623-161021
Comment 3 Toralf Förster gentoo-dev 2018-07-04 21:02:22 UTC
Created attachment 538354 [details]
emerge-info.txt
Comment 4 Toralf Förster gentoo-dev 2018-07-04 21:02:25 UTC
Created attachment 538356 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2018-07-04 21:02:28 UTC
Created attachment 538358 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2018-07-04 21:02:32 UTC
Created attachment 538360 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-07-04 21:02:35 UTC
Created attachment 538362 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2018-07-04 21:02:38 UTC
Created attachment 538364 [details]
sci-mathematics:octave-4.4.0:20180704-102201.log.bz2
Comment 9 Toralf Förster gentoo-dev 2018-07-04 21:02:43 UTC
Created attachment 538366 [details]
temp.tbz2
Comment 10 Helmut Jarausch 2018-07-11 07:36:11 UTC
(In reply to jorgicio from comment #1)
> Created attachment 538280 [details]
> The log

It fails to compile with GraphicsMagick-1.3.30, too
(error: 'MAGICKCORE_QUANTUM_DEPTH' was not declared in this scope)
Comment 11 Dennis Schridde 2018-07-13 06:13:48 UTC
(In reply to Helmut Jarausch from comment #10)
> (In reply to jorgicio from comment #1)
> > Created attachment 538280 [details]
> > The log
> 
> It fails to compile with GraphicsMagick-1.3.30, too
> (error: 'MAGICKCORE_QUANTUM_DEPTH' was not declared in this scope)

I believe that is a different bug, since it is caused by Gentoo's patches, not by upstream themselves: bug #661046
Comment 12 Andrius Štikonas 2018-09-23 22:43:05 UTC
It compiles fine for me with media-gfx/imagemagick-7.0.8.11

Maybe only <7.0 is affected?
Comment 13 jorgicio 2018-09-23 22:44:14 UTC
(In reply to Andrius Štikonas from comment #12)
> It compiles fine for me with media-gfx/imagemagick-7.0.8.11
> 
> Maybe only <7.0 is affected?

I don't know, I can't install >7.0 because of libopenshot, which requires <7.0.
Comment 14 Andrius Štikonas 2018-09-23 22:46:04 UTC
(In reply to jorgicio from comment #13)
> (In reply to Andrius Štikonas from comment #12)
> > It compiles fine for me with media-gfx/imagemagick-7.0.8.11
> > 
> > Maybe only <7.0 is affected?
> 
> I don't know, I can't install >7.0 because of libopenshot, which requires
> <7.0.

Can't you unmerge it, upgrade imagemagick, try to build octave, and then downgrade back and install libopenshot again.

Although, that's a bit of work but then we would know for sure.
Comment 15 jorgicio 2018-09-24 18:12:28 UTC
(In reply to Andrius Štikonas from comment #14)
> (In reply to jorgicio from comment #13)
> > (In reply to Andrius Štikonas from comment #12)
> > > It compiles fine for me with media-gfx/imagemagick-7.0.8.11
> > > 
> > > Maybe only <7.0 is affected?
> > 
> > I don't know, I can't install >7.0 because of libopenshot, which requires
> > <7.0.
> 
> Can't you unmerge it, upgrade imagemagick, try to build octave, and then
> downgrade back and install libopenshot again.
> 
> Although, that's a bit of work but then we would know for sure.

It may take lots of time, so I'll see when I may try it.

Also, it affects the 4.4.1 version.
Comment 16 jorgicio 2018-09-24 18:13:56 UTC
Created attachment 547820 [details]
The log for octave 4.4.1

The same issue happens with 4.4.1
Comment 17 jorgicio 2018-10-13 20:07:43 UTC
I confirm upgrading imagemagick to the 7.0 version fixes the issue. The libopenshot-0.2.2 now allows >=imagemagick-7.0, so now I can try that version. Now, octave build successfully.

Consider to check that dependency (Imagemagick) for Octave.
Comment 18 Pacho Ramos gentoo-dev 2019-03-15 10:22:45 UTC
*** Bug 669930 has been marked as a duplicate of this bug. ***
Comment 19 Larry the Git Cow gentoo-dev 2019-06-24 07:01:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac0126c0d65ef0785c688b0027c4f3cbbc7c7a45

commit ac0126c0d65ef0785c688b0027c4f3cbbc7c7a45
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-06-24 07:01:37 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-06-24 07:01:37 +0000

    sci-mathematics/octave: imagemagick-7 is needed
    
    Closes: https://bugs.gentoo.org/660298
    Package-Manager: Portage-2.3.67, Repoman-2.3.14
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sci-mathematics/octave/octave-4.4.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 20 Toralf Förster gentoo-dev 2019-06-24 20:20:45 UTC
(In reply to Larry the Git Cow from comment #19)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=ac0126c0d65ef0785c688b0027c4f3cbbc7c7a45
> 
> commit ac0126c0d65ef0785c688b0027c4f3cbbc7c7a45
> Author:     Pacho Ramos <pacho@gentoo.org>
> AuthorDate: 2019-06-24 07:01:37 +0000
> Commit:     Pacho Ramos <pacho@gentoo.org>
> CommitDate: 2019-06-24 07:01:37 +0000
> 
>     sci-mathematics/octave: imagemagick-7 is needed
>     
>     Closes: https://bugs.gentoo.org/660298
>     Package-Manager: Portage-2.3.67, Repoman-2.3.14
>     Signed-off-by: Pacho Ramos <pacho@gentoo.org>
> 
>  sci-mathematics/octave/octave-4.4.1.ebuild | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I do still run into this (few minutes ago)
Comment 21 Toralf Förster gentoo-dev 2019-06-24 20:21:15 UTC
(In reply to Toralf Förster from comment #20)
> I do still run into this (few minutes ago)
gah - sry, just for 4.4.0
Comment 22 Larry the Git Cow gentoo-dev 2020-03-27 18:46:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bf0c5ed22569b38b971412c57fb17c08c2abc64

commit 9bf0c5ed22569b38b971412c57fb17c08c2abc64
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2020-03-27 18:41:36 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2020-03-27 18:42:04 +0000

    sci-mathematics/octave: new version 5.2.0 sans imagemagick support.
    
    This new version drops two patches (zlib underlinking and qt-5.11
    support) that have been fixed upstream in other ways. Unfortunately,
    it also temporarily disables USE=imagemagick, because the upstream
    support for imagemagick is broken. In the past, we have carried custom
    patches to fix that, but they no longer apply, and upstream has hinted
    that the approach they take will not be accepted. So to get this out
    the door, the simplest thing to do is to follow upstream and throw
    imagemagick under a bus.
    
    Bug: https://bugs.gentoo.org/401189
    Bug: https://bugs.gentoo.org/660298
    Closes: https://bugs.gentoo.org/709388
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-mathematics/octave/Manifest            |   1 +
 sci-mathematics/octave/octave-5.2.0.ebuild | 201 +++++++++++++++++++++++++++++
 2 files changed, 202 insertions(+)