NetBSD Problem Report #36483

From magnus@zemdatav.stor.no-ip.org  Wed Jun 13 13:32:44 2007
Return-Path: <magnus@zemdatav.stor.no-ip.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9E78763BA7E
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 13 Jun 2007 13:32:44 +0000 (UTC)
Message-Id: <20070613133238.DCE7D44944@zemdatav.stor.no-ip.org>
Date: Wed, 13 Jun 2007 15:32:38 +0200 (CEST)
From: Magnus Henoch <mange@freemail.hu>
To: gnats-bugs@NetBSD.org
Subject: graphics/imlib2 doesn't compile on !(i386 || x86_64)
X-Send-Pr-Version: 3.95

>Number:         36483
>Category:       pkg
>Synopsis:       graphics/imlib2 doesn't compile on !(i386 || x86_64)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 13 13:35:00 +0000 2007
>Closed-Date:    Wed Jun 13 14:02:26 +0000 2007
>Last-Modified:  Wed Jun 13 14:05:01 +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

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@netbsd.org
State-Changed-When: Wed, 13 Jun 2007 14:02:26 +0000
State-Changed-Why:
Fixed.  Thanks for the PR!


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36483 CVS commit: pkgsrc/graphics/imlib2
Date: Wed, 13 Jun 2007 14:01:11 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed Jun 13 14:01:11 UTC 2007

 Modified Files:
 	pkgsrc/graphics/imlib2: options.mk

 Log Message:
 PKG_SUPPORTED_OPTIONS must be defined before include bsd.options.mk,
 even if empty.  Problem reported by Magnus Henoch in PR 36483.


 To generate a diff of this commit:
 cvs rdiff -r1.5 -r1.6 pkgsrc/graphics/imlib2/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.