NetBSD Problem Report #57045
From www@netbsd.org Wed Oct 5 22:01:30 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_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 1C5731A923C
for <gnats-bugs@gnats.NetBSD.org>; Wed, 5 Oct 2022 22:01:30 +0000 (UTC)
Message-Id: <20221005220129.1FD691A923D@mollari.NetBSD.org>
Date: Wed, 5 Oct 2022 22:01:29 +0000 (UTC)
From: mike.volokhov@gmail.com
Reply-To: mike.volokhov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/cairo-gobject misses X11 libraries
X-Send-Pr-Version: www-1.0
>Number: 57045
>Category: pkg
>Synopsis: graphics/cairo-gobject misses X11 libraries
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: wiz
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 05 22:05:00 +0000 2022
>Closed-Date: Sat Oct 08 09:55:09 +0000 2022
>Last-Modified: Sat Oct 08 09:55:09 +0000 2022
>Originator: Mike Volokhov
>Release: pkgsrc-2022q3
>Organization:
>Environment:
Darwin MacBook 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64
>Description:
Hi!
The graphics/cairo-gobject can't be built on a macOS (perhaps other systems are affected) with modular x11 due to missing Xlib. It fails with the following error during the configure stage:
checking whether cairo's Xlib surface backend feature could be enabled... no (requires X development libraries)
configure: error: Xlib surface backend feature could not be enabled
*** Error code 1
Stop.
bmake[1]: stopped in /Users/mishka/pkgsrc/graphics/cairo-gobject
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
*** Error code 1
Stop.
bmake: stopped in /Users/mishka/pkgsrc/graphics/cairo-gobject
>How-To-Repeat:
Try to build the cairo-gobject package on Darwin with modular xorg.
>Fix:
Buildlinking the X11 libraries seem can fix the issue.
# $NetBSD: Makefile,v 1.40 2021/12/08 16:02:07 adam Exp $
--- Makefile.orig 2022-10-06 00:52:41.000000000 +0300
+++ Makefile 2022-10-06 00:52:59.000000000 +0300
@@ -25,6 +25,9 @@
.if !empty(PKG_BUILD_OPTIONS.cairo:Mx11) || !empty(PKG_BUILD_OPTIONS.cairo:Mxcb)
CONFIGURE_ARGS+= --enable-xlib
CONFIGURE_ARGS+= --enable-xlib-xrender
+. include "../../x11/libX11/buildlink3.mk"
+. include "../../x11/libXext/buildlink3.mk"
+. include "../../x11/libXrender/buildlink3.mk"
. if !empty(PKG_BUILD_OPTIONS.cairo:Mxcb)
CONFIGURE_ARGS+= --enable-xcb
. else
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/57045: graphics/cairo-gobject misses X11 libraries
Date: Thu, 6 Oct 2022 08:36:32 +0200
On Wed, Oct 05, 2022 at 10:05:01PM +0000, mike.volokhov@gmail.com wrote:
> >Number: 57045
> >Category: pkg
> >Synopsis: graphics/cairo-gobject misses X11 libraries
I fixed this in pkgsrc-current, I think, can you please give that a try?
please update cairo and cairo-gobject, thanks.
Thomas
From: Mike Volokhov <mike.volokhov@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/57045: graphics/cairo-gobject misses X11 libraries
Date: Thu, 6 Oct 2022 15:06:17 +0300
With cairo and cairo-gobject form the current everything builds and
installs just fine.
Thank you, Thomas!
M.
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/57045: graphics/cairo-gobject misses X11 libraries
Date: Thu, 6 Oct 2022 23:36:18 +0200
On Thu, Oct 06, 2022 at 12:10:01PM +0000, Mike Volokhov wrote:
> With cairo and cairo-gobject form the current everything builds and
> installs just fine.
I'm happy to hear that. I've requested pullups for these changes to the branch.
Thanks,
Thomas
Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sat, 08 Oct 2022 09:55:09 +0000
Responsible-Changed-Why:
wiz fixed it
State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 08 Oct 2022 09:55:09 +0000
State-Changed-Why:
Fixed in pkgsrc-current and pulled up!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.