Subject: pkg/36483: graphics/imlib2 doesn't compile on !(i386 || x86_64)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Magnus Henoch <mange@freemail.hu>
List: pkgsrc-bugs
Date: 06/13/2007 13:35:00
>Number:         36483
>Category:       pkg
>Synopsis:       graphics/imlib2 doesn't compile on !(i386 || x86_64)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 13 13:35:00 +0000 2007
>Originator:     Magnus Henoch
>Release:        NetBSD 4.99.16
>Organization:
	
>Environment:
	
	
System: NetBSD zemdatav 4.99.16 NetBSD 4.99.16 (IBOOK) #3: Fri Mar 30 12:56:33 CEST 2007 magnus@zemdatav:/media/e/netbsd/obj/sys/arch/macppc/compile/IBOOK macppc
Architecture: powerpc
Machine: macppc
>Description:
	graphics/imlib2 uses options for arches i386 and x86_64.  A
	recent change to bsd.options.mk makes it an error to include
	it without having defined any options.
>How-To-Repeat:
	cd /usr/pkgsrc/graphics/imlib2
	make
>Fix:
	This patch fixes the problem for me:

Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/imlib2/options.mk,v
retrieving revision 1.5
diff -c -r1.5 options.mk
--- options.mk	16 Dec 2006 11:20:23 -0000	1.5
+++ options.mk	13 Jun 2007 13:31:54 -0000
@@ -10,7 +10,9 @@
 PKG_SUGGESTED_OPTIONS+=	imlib2-amd64
 .endif
 
+.if !empty(PKG_SUPPORTED_OPTIONS)
 .include "../../mk/bsd.options.mk"
+.endif
 
 .if !empty(PKG_OPTIONS:Mmmx)
 CONFIGURE_ARGS+=	--enable-mmx

>Unformatted: