NetBSD Problem Report #40735

From  Tue Feb 24 13:16:11 2009
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 495D663C1C2
	for <>; Tue, 24 Feb 2009 13:16:11 +0000 (UTC)
Message-Id: <>
Date: Tue, 24 Feb 2009 13:16:11 +0000 (UTC)
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
University of Bielefeld
SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc

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/ checks for the presence of a native expat, which then does not satisfy the requirements of devel/apr0. Maybe the test is not sufficient?


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.