Subject: pkg/35492: math/octave-forge tries to use graphics/ImageMagick
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 01/26/2007 19:50:00
>Number:         35492
>Category:       pkg
>Synopsis:       math/octave-forge tries to use graphics/ImageMagick
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 26 19:50:00 +0000 2007
>Release:        pkgsrc-2006Q4
System: NetBSD panic 4.0_BETA2 NetBSD 4.0_BETA2 (PANIC) #1: Sun Jan 7 15:45:57 CET 2007 woodstoc@panic:/usr/obj/sys/arch/i386/compile.i386/PANIC i386
Architecture: i386
Machine: i386
If graphics/ImageMagick is installed, the configure script of
math/octave-forge will detect this and try to use it. This will then
cause the build to fail because math/octave-forge does not include the
graphics/ImageMagick buildlink file.
install graphics/ImageMagick, then try to build math/octave-forge
The octave-forge configure script does not have an option to disable the
use of ImageMagick, which I think would be essential to make the
dependency on ImageMagick an option, or else the problem would still
exist and the option would just be a workaround.

The simple solution to this problem is to just make octave-forge depend
on ImageMagick.

Index: math/octave-forge/Makefile
RCS file: /cvsroot/pkgsrc/math/octave-forge/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- math/octave-forge/Makefile	4 Oct 2006 21:47:57 -0000	1.22
+++ math/octave-forge/Makefile	26 Jan 2007 18:26:35 -0000
@@ -43,6 +43,7 @@
 	${MKDIR} ${WRKSRC}/extra/pdb/scripts
 	${MV} ${WRKSRC}/extra/pdb/bin/ ${WRKSRC}/extra/pdb/scripts/
+.include "../../graphics/ImageMagick/"
 .include "../../graphics/jpeg/"
 .include "../../graphics/png/"
 .include "../../math/gsl/"
Index: math/octave-forge/PLIST
RCS file: /cvsroot/pkgsrc/math/octave-forge/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- math/octave-forge/PLIST	20 Apr 2006 18:16:47 -0000	1.6
+++ math/octave-forge/PLIST	26 Jan 2007 18:26:36 -0000
@@ -65,6 +65,8 @@