NetBSD Problem Report #29723

From www@netbsd.org  Thu Mar 17 05:24:26 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 6F81963B117; Thu, 17 Mar 2005 05:24:26 +0000 (UTC)
Message-Id: <20050317052426.6F81963B117@narn.netbsd.org>
Date: Thu, 17 Mar 2005 05:24:26 +0000 (UTC)
From: sak8@eecs.cwru.edu
Reply-To: sak8@eecs.cwru.edu
To: gnats-bugs@netbsd.org
Subject: xpm builtin detection is problematic on Solaris
X-Send-Pr-Version: www-1.0

>Number:         29723
>Category:       pkg
>Synopsis:       xpm builtin detection is problematic on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 17 05:25:00 +0000 2005
>Closed-Date:    Fri Oct 15 04:44:23 +0000 2010
>Last-Modified:  Fri Oct 15 04:44:23 +0000 2010
>Originator:     Simon Kuhn
>Release:        pkgsrc-current
>Organization:
Case Western Reserve University
>Environment:
SunOS reducto 5.9 Generic_117171-13 sun4u sparc SUNW,Sun-Fire-V240 Solaris

>Description:
xpm is included in Solaris 9, and the pkgsrc xpm package detects this. Dependent packages fail to buildlink however.
>How-To-Repeat:
Build a package that depends on xpm, such as emacs.

===> Required package xpm>=3.4knb2: NOT found
===> Verifying package for ../../graphics/xpm
===> xpm is part of your X11 distribution
===> Returning to build of emacs-21.4a
...
===> Creating toolchain wrappers for emacs-21.4a
xpm is not installed; can't buildlink files.
>Fix:
Force the pkgsrc xpm package to be built. Comment out 

#.if !empty(IS_BUILTIN.xpm:M[yY][eE][sS])
#PKG_SKIP_REASON= "${PKGBASE} is part of your X11 distribution"
#.endif

to ignore the builtin detection.


In order to build xpm with gcc on Solaris, the following lines in /usr/local/lib/X11/config/site.def must be uncommented:

#ifndef HasGcc2
#define HasGcc2 YES
#endif

#ifndef HasCplusplus
#define HasCplusplus YES
#endif

It would be nice if this was documented somewhere (I stumbled upon it), or if somehow pkgsrc enabled these imake defs automatically when using gcc (I have no idea how).

>Release-Note:

>Audit-Trail:
From: grant beattie <grant@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/29723: xpm builtin detection is problematic on Solaris
Date: Thu, 17 Mar 2005 16:45:16 +1100

 On Thu, Mar 17, 2005 at 05:25:00AM +0000, sak8@eecs.cwru.edu wrote:

 > In order to build xpm with gcc on Solaris, the following lines in /usr/local/lib/X11/config/site.def must be uncommented:
 > 
 > #ifndef HasGcc2
 > #define HasGcc2 YES
 > #endif
 > 
 > #ifndef HasCplusplus
 > #define HasCplusplus YES
 > #endif
 > 
 > It would be nice if this was documented somewhere (I stumbled upon it), or if somehow pkgsrc enabled these imake defs automatically when using gcc (I have no idea how).

 pkgsrc is supposed to pass the correct options but there is an
 outstanding bug, PR pkg/29608.

 grant.

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 17 Mar 2005 16:46:03 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 10 Feb 2010 07:09:36 +0000
State-Changed-Why:
Is this still a problem with recent pkgsrc, libXpm, and builtin logic?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 15 Oct 2010 04:44:23 +0000
State-Changed-Why:
graphics/xpm was removed in favor of x11/libXpm, and all the logic is
different. If it still doesn't work on Solaris please file a new PR.


>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.