NetBSD Problem Report #38020

From dauphin@enst.fr  Wed Feb 13 18:05:11 2008
Return-Path: <dauphin@enst.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1178863B293
	for <gnats-bugs@gnats.netbsd.org>; Wed, 13 Feb 2008 18:05:11 +0000 (UTC)
Message-Id: <1202925904.11707@bi.enst.fr>
Date: Wed, 13 Feb 2008 19:05:04 +0100
From: "Gilles Dauphin" <dauphin@enst.fr>
To: "gnats bugs" <gnats-bugs@gnats.netbsd.org>
Subject: x11/inputproto OpenSolaris
X-Send-Pr-Version: gtk-send-pr 0.4.8 
X-GNATS-Notify:

>Number:         38020
>Category:       pkg
>Synopsis:       x11/inputproto OpenSolaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 13 18:10:01 +0000 2008
>Last-Modified:  Fri Jun 27 15:46:05 +0000 2008
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_120012-14 i86pc


>Description:


missing builtin.mk
see fix


>How-To-Repeat:





>Fix:


--- builtin.mk begins here ---
# $NetBSD: builtin.mk,v 1.5 2007/02/22 19:27:28 wiz Exp $

BUILTIN_PKG:=	inputproto

BUILTIN_FIND_FILES_VAR:=		H_INPUTPROTO
BUILTIN_FIND_FILES.H_INPUTPROTO=	\
	${X11BASE}/include/X11/extensions/XIproto.h

.include "../../mk/buildlink3/bsd.builtin.mk"

###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if ${X11BASE} == ${LOCALBASE}
IS_BUILTIN.inputproto=	no
.elif !defined(IS_BUILTIN.inputproto)
IS_BUILTIN.inputproto=	no
#
# Here, we skip checking whether the files are under ${LOCALBASE} since
# we'll consider this X11 package to be built-in even if it's a part
# of one of the pkgsrc-installed X11 distributions.
#
.  if empty(H_INPUTPROTO:M__nonexistent__)
IS_BUILTIN.inputproto=	yes
.  endif
.endif
MAKEVARS+=	IS_BUILTIN.inputproto

###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.inputproto)
.  if ${PREFER.inputproto} == "pkgsrc"
USE_BUILTIN.inputproto=	no
.  else
USE_BUILTIN.inputproto=	${IS_BUILTIN.inputproto}
.    if defined(BUILTIN_PKG.inputproto) && \
        !empty(IS_BUILTIN.inputproto:M[yY][eE][sS])
USE_BUILTIN.inputproto=	yes
.      for _dep_ in ${BUILDLINK_API_DEPENDS.inputproto}
.        if !empty(USE_BUILTIN.inputproto:M[yY][eE][sS])
USE_BUILTIN.inputproto!=						\
	if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.inputproto:Q}; then \
		${ECHO} yes;						\
	else								\
		${ECHO} no;						\
	fi
.        endif
.      endfor
.    endif
.  endif  # PREFER.inputproto
.endif
MAKEVARS+=	USE_BUILTIN.inputproto

###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.inputproto?=	no
.if !empty(CHECK_BUILTIN.inputproto:M[nN][oO])

.  if !empty(USE_BUILTIN.inputproto:M[yY][eE][sS])
BUILDLINK_PREFIX.inputproto=	${X11BASE}
.    include "../../mk/x11.buildlink3.mk"
.    include "../../mk/x11.builtin.mk"
.  endif

# If we are using the builtin version, check whether it has a inputproto.pc
# file or not.  If the latter, generate a fake one.
.  if !empty(USE_BUILTIN.inputproto:M[Yy][Ee][Ss])
BUILDLINK_TARGETS+=	inputproto-fake-pc

inputproto-fake-pc:
	${_PKG_SILENT}${_PKG_DEBUG} \
	src=${BUILDLINK_PREFIX.inputproto}/lib/pkgconfig/inputproto.pc \
	dst=${BUILDLINK_DIR}/lib/pkgconfig/inputproto.pc; \
	${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
	if ${TEST} -f $${src}; then \
		${LN} -sf $${src} $${dst}; \
	else \
		{ ${ECHO} "Name: XExtensions"; \
	   	${ECHO} "Description: Sundry X extension headers"; \
	   	${ECHO} "Version: 1.0.1"; \
	   	${ECHO} "Cflags: -I${BUILDLINK_PREFIX.inputproto}/include"; \
		} >$${dst}; \
	fi
.  endif

.endif	# CHECK_BUILTIN.inputproto
--- builtin.mk ends here ---



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 27 Jun 2008 15:46:05 +0000
Responsible-Changed-Why:
Assign maintainer of x11/inputproto.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz 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.