NetBSD Problem Report #40735
From www@NetBSD.org Tue Feb 24 13:16:11 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 495D663C1C2
for <gnats-bugs@gnats.netbsd.org>; Tue, 24 Feb 2009 13:16:11 +0000 (UTC)
Message-Id: <20090224131611.1F48663C1C1@www.NetBSD.org>
Date: Tue, 24 Feb 2009 13:16:11 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: native vs. pkgsrc expat
X-Send-Pr-Version: www-1.0
>Number: 40735
>Category: pkg
>Synopsis: native vs. pkgsrc expat
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 24 13:20:00 +0000 2009
>Originator: Jörn Clausen
>Release:
>Organization:
University of Bielefeld
>Environment:
SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc
>Description:
On OpenSolaris 11, expat seems to be considered a native package. When X11_TYPE is set to "modular" and PREFER_PKGSRC is defined (in the current case it contains "zlib"), the definition of PREFER_PKGSRC in mk/defaults/mk.conf (containing expat) is overridden. This causes devel/apr0 to fail:
checking for Expat in /usr... no
configure: error: Expat was not found (or recognized) in "/usr"
Installing textproc/expat manually or adding it to PREFER_PKGSRC solves this issue.
I am unsure, what the real problem is:
- The pkgsrc guide allows to define PREFER_PKGSRC, but fails to mention that under certain conditions, it already contains some defaults. Maybe it should suggest a syntax that appends packages to a possibly already defined list.
- textproc/expat/builtin.mk checks for the presence of a native expat, which then does not satisfy the requirements of devel/apr0. Maybe the test is not sufficient?
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.