NetBSD Problem Report #54007

From www@NetBSD.org  Sat Feb 23 05:50:45 2019
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 229537A18A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 23 Feb 2019 05:50:45 +0000 (UTC)
Message-Id: <20190223055044.3AE257A1D2@mollari.NetBSD.org>
Date: Sat, 23 Feb 2019 05:50:44 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/xkbcomp needs a buildlink3.mk for meson to find it via pkgconfig
X-Send-Pr-Version: www-1.0

>Number:         54007
>Category:       pkg
>Synopsis:       x11/xkbcomp needs a buildlink3.mk for meson to find it via pkgconfig
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 23 05:55:00 +0000 2019
>Closed-Date:    Sat Feb 23 08:41:00 +0000 2019
>Last-Modified:  Sat Feb 23 09:10:00 +0000 2019
>Originator:     David Shao
>Release:        pkgsrc current
>Organization:
>Environment:
NetBSD xxxxxx.xxx 8.99.34 NetBSD 8.99.34 (GENERIC) #13: Thu Feb 21 21:41:43 PST 2019  xxxxxx@xxxxxx.xxx:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Using a meson build on modular-xorg-server git current fails with

Dependency libsystemd-daemon found: NO (tried pkgconfig and cmake)

meson.build:110:4: ERROR:  'xkbcomp' is not a pkgconfig dependency

meson really likes to use pkgconfig to find things, and xkbcomp does have a generated xkbcomp.pc file.
>How-To-Repeat:

>Fix:
Add a buildlink3.mk.  I have no idea if the API_DEPENDS makes sense.

# $NetBSD$

BUILDLINK_TREE+=	xkbcomp

.if !defined(XKBCOMP_BUILDLINK3_MK)
XKBCOMP_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.xkbcomp+=	xkbcomp>=1.4.2
BUILDLINK_PKGSRCDIR.xkbcomp?=	../../x11/xkbcomp
.endif # XKBCOMP_BUILDLINK3_MK

BUILDLINK_TREE+=	-xkbcomp

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sat, 23 Feb 2019 08:41:00 +0000
State-Changed-Why:
Added, thanks!


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54007 CVS commit: pkgsrc/x11/xkbcomp
Date: Sat, 23 Feb 2019 08:40:45 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sat Feb 23 08:40:45 UTC 2019

 Added Files:
 	pkgsrc/x11/xkbcomp: buildlink3.mk

 Log Message:
 xkbcomp: add buildlink3.mk file for pc file linking.

 Requested in PR 54007 by David Shao.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/x11/xkbcomp/buildlink3.mk

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

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/54007: x11/xkbcomp needs a buildlink3.mk for meson to find it
 via pkgconfig
Date: Sat, 23 Feb 2019 01:09:46 -0800

 Thanks for the instantaneous application of the proposed addition of
 buildlink3.mk to xkbcomp.
 The meson build for modular-xorg-server works for DragonFly as well.  Thanks!

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.