NetBSD Problem Report #58911

From www@netbsd.org  Tue Dec 17 15:08:09 2024
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 668721A923C
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Dec 2024 15:08:09 +0000 (UTC)
Message-Id: <20241217150807.D82601A923D@mollari.NetBSD.org>
Date: Tue, 17 Dec 2024 15:08:07 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/gtk3 missing atk-bridge-2.0 dependency
X-Send-Pr-Version: www-1.0

>Number:         58911
>Category:       pkg
>Synopsis:       x11/gtk3 missing atk-bridge-2.0 dependency
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 15:10:00 +0000 2024
>Last-Modified:  Wed Dec 18 07:10:02 +0000 2024
>Originator:     Robert Whitlock
>Release:        pkgsrc current, Dec 17 2024
>Organization:
>Environment:
NetBSD current, Nov 9 2024, amd64
>Description:
x11/gtk3 fails to build because it can't find atk-bridge-2.0.

=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Configuring for gtk3+-3.24.43nb5
=> Generating pkg-config files for builtin xz package.
=> Generating pkg-config file for builtin expat package.
The Meson build system
Version: 1.6.0
Source dir: /usr/pkgsrc/x11/gtk3/work/gtk+-3.24.43
Build dir: /usr/pkgsrc/x11/gtk3/work/gtk+-3.24.43/output
Build type: native build
Project name: gtk+
Project version: 3.24.43
C compiler for the host machine: gcc (gcc 12.4.0 "gcc (nb1 20240630) 12.4.0")
C linker for the host machine: gcc ld.bfd 2.42
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "crt/externs.h" : NO 
Has header "dlfcn.h" : YES 
Has header "ftw.h" : YES 
Has header "inttypes.h" : YES 
Has header "linux/memfd.h" : NO 
Has header "linux/input.h" : NO 
Has header "dev/evdev/input.h" : NO 
Has header "locale.h" : YES 
Has header "memory.h" : YES 
Has header "stdint.h" : YES 
Has header "stdlib.h" : YES 
Has header "string.h" : YES 
Has header "strings.h" : YES 
Has header "sys/mman.h" : YES 
Has header "sys/param.h" : YES 
Has header "sys/stat.h" : YES 
Has header "sys/sysinfo.h" : NO 
Has header "sys/systeminfo.h" : NO 
Has header "sys/time.h" : YES 
Has header "sys/types.h" : YES 
Has header "unistd.h" : YES 
Library m found: YES
Checking for function "dcgettext" with dependency -lm: YES 
Checking for function "getpagesize" with dependency -lm: YES 
Checking for function "getresuid" with dependency -lm: NO 
Checking for function "lstat" with dependency -lm: YES 
Checking for function "mmap" with dependency -lm: YES 
Checking for function "nearbyint" with dependency -lm: YES 
Checking for function "posix_fallocate" with dependency -lm: YES 
Checking for function "_lock_file" with dependency -lm: NO 
Checking for function "flockfile" with dependency -lm: YES 
Checking for function "mkstemp" with dependency -lm: YES 
Checking for function "mallinfo" with dependency -lm: NO 
Checking for function "round" with dependency -lm: YES 
Checking for function "rint" with dependency -lm: YES 
Checking for function "log2" with dependency -lm: YES 
Checking for function "exp2" with dependency -lm: YES 
Checking for function "sincos" with dependency -lm: YES 
Checking for function "trunc" with dependency -lm: YES 
Checking for function "localtime_r" with dependency -lm: YES 
Checking for function "fmin" with dependency -lm: YES 
Header "math.h" has symbol "isinf" : YES 
Header "math.h" has symbol "isnan" : YES 
Compiler for C supports arguments -fno-strict-aliasing: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wimplicit-function-declaration: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wformat-security: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wold-style-definition: YES 
Compiler for C supports arguments -Wundef: YES 
Compiler for C supports arguments -Wunused: YES 
Compiler for C supports arguments -Wcast-align: YES 
Compiler for C supports arguments -Wmissing-noreturn: YES 
Compiler for C supports arguments -Wmissing-format-attribute: YES 
Compiler for C supports arguments -Wmissing-include-dirs: YES 
Compiler for C supports arguments -Wlogical-op: YES 
Compiler for C supports arguments -Wignored-qualifiers: YES 
Compiler for C supports arguments -Wno-discarded-qualifiers: YES 
Compiler for C supports arguments -Werror=implicit: YES 
Compiler for C supports arguments -Werror=nonnull: YES 
Compiler for C supports arguments -Werror=init-self: YES 
Compiler for C supports arguments -Werror=main: YES 
Compiler for C supports arguments -Werror=missing-braces: YES 
Compiler for C supports arguments -Werror=sequence-point: YES 
Compiler for C supports arguments -Werror=return-type: YES 
Compiler for C supports arguments -Werror=trigraphs: YES 
Compiler for C supports arguments -Werror=array-bounds: YES 
Compiler for C supports arguments -Werror=write-strings: YES 
Compiler for C supports arguments -Werror=address: YES 
Compiler for C supports arguments -Werror=int-to-pointer-cast: YES 
Compiler for C supports arguments -Werror=pointer-to-int-cast: YES 
Compiler for C supports arguments -Werror=empty-body: YES 
Compiler for C supports arguments -Werror=write-strings: YES (cached)
Checking if "-Wl,-Bsymbolic" : links: YES 
Checking if "-Wl,-z,relro" : links: YES 
Checking if "-Wl,-z,now" : links: YES 
Found pkg-config: YES (/usr/pkgsrc/x11/gtk3/work/.tools/bin/pkg-config) 2.3.0
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gobject-2.0 found: YES 2.82.2
Run-time dependency gio-unix-2.0 found: YES 2.82.2
Run-time dependency gmodule-2.0 found: YES 2.82.2
Run-time dependency cairo found: YES 1.18.2
Run-time dependency cairo-gobject found: YES 1.18.2
Run-time dependency pango found: YES 1.54.0
Run-time dependency fribidi found: YES 1.0.16
Run-time dependency pangoft2 found: YES 1.54.0
Run-time dependency freetype2 found: YES 26.2.20
Run-time dependency pangocairo found: YES 1.54.0
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.12
Run-time dependency epoxy found: YES 1.5.4
Run-time dependency atk found: YES 2.54.0
Run-time dependency harfbuzz found: YES 10.1.0
WARNING: Found CMake '/usr/pkgsrc/x11/gtk3/work/.tools/bin/false' but couldn't run it
Found CMake: NO
Run-time dependency xkbcommon found: NO (tried pkgconfig and cmake)
Run-time dependency iso-codes found: NO (tried pkgconfig and cmake)
Run-time dependency cairo-xlib found: YES 1.18.2
Run-time dependency xrandr found: YES 1.5.4
Dependency xrandr found: YES 1.5.4 (cached)
Run-time dependency x11 found: YES 1.8.9
Run-time dependency xrender found: YES 0.9.11
Run-time dependency xi found: YES 1.8.1
Run-time dependency xext found: YES 1.3.6
Run-time dependency xcursor found: YES 1.2.2
Run-time dependency xdamage found: YES 1.1.6
Run-time dependency xfixes found: YES 6.0.1
Run-time dependency xcomposite found: YES 0.4.6
Run-time dependency fontconfig found: YES 2.15.0
Run-time dependency atk-bridge-2.0 found: NO (tried pkgconfig)

meson.build:570:19: ERROR: Dependency "atk-bridge-2.0" not found, tried pkgconfig

A full log can be found at /usr/pkgsrc/x11/gtk3/work/gtk+-3.24.43/output/meson-logs/meson-log.txt
*** Error code 1

Stop.
make[1]: stopped making "install" in /usr/pkgsrc/x11/gtk3
*** Error code 1

Stop.
make: stopped making "install" in /usr/pkgsrc/x11/gtk3
>How-To-Repeat:
cd x11/gtk3
make install
>Fix:
Add the dependency to the pkgsrc makefile.
I'm not sure which package provides the needed functionality.

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 16:18:05 +0100

 On Tue, Dec 17, 2024 at 03:10:00PM +0000, rwhitlock22@gmail.com wrote:
 > >Number:         58911
 > >Category:       pkg
 > >Synopsis:       x11/gtk3 missing atk-bridge-2.0 dependency

 You're pkgsrc seems partly updated. You need the latest at-spi2
 package, which gtk3 in pkgsrc head requires:

 BUILDLINK_API_DEPENDS.at-spi2-core+=    at-spi2-core>=2.54
 .include "../../devel/at-spi2-core/buildlink3.mk"

  Thomas

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 11:26:06 -0500

 > On Dec 17, 2024, at 10:20 AM, Thomas Klausner <wiz@NetBSD.org> wrote:
 >=20
 > The following reply was made to PR pkg/58911; it has been noted by =
 GNATS.
 >=20
 > From: Thomas Klausner <wiz@NetBSD.org>
 > To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
 > Cc:=20
 > Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
 > Date: Tue, 17 Dec 2024 16:18:05 +0100
 >=20
 > On Tue, Dec 17, 2024 at 03:10:00PM +0000, rwhitlock22@gmail.com wrote:
 >>> Number:         58911
 >>> Category:       pkg
 >>> Synopsis:       x11/gtk3 missing atk-bridge-2.0 dependency
 >=20
 > You're pkgsrc seems partly updated. You need the latest at-spi2
 > package, which gtk3 in pkgsrc head requires:
 >=20
 > BUILDLINK_API_DEPENDS.at-spi2-core+=3D    at-spi2-core>=3D2.54
 > .include "../../devel/at-spi2-core/buildlink3.mk"
 >=20
 >  Thomas

 My pkgsrc/gtk3/Makefile has those two lines. Something else must be =
 going wrong.

 I doubt my pkgsrc tree is out of date because I update with the =
 following command:

 cvs -q up -PdAC

 Makefile is at version 1.207 (according to the CVS/Entries file) which =
 matches the version on cvsweb.netbsd.org.

 pkg_info cannot find an installed at-api2-core package, so it's =
 confirmed that it's not getting installed.=

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 11:32:43 -0500

 > On Dec 17, 2024, at 11:30 AM, Rob Whitlock <rwhitlock22@gmail.com> =
 wrote:
 >=20
 > pkg_info cannot find an installed at-api2-core package, so it's =3D
 > confirmed that it's not getting installed.=3D

 I made a little spelling mistake there... at-spi2-core is installed. So =
 it looks like the problem is that gtk3 isn't finding it.=

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 17:40:14 +0100

 Works for me.
 You'll have to do what the output says:

 > A full log can be found at /usr/pkgsrc/x11/gtk3/work/gtk+-3.24.43/output/meson-logs/meson-log.txt

  Thomas

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org,
 "John D. Baker via gnats" <gnats-admin@netbsd.org>,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 12:07:01 -0500

 > On Dec 17, 2024, at 11:45 AM, Thomas Klausner via gnats =
 <gnats-admin@NetBSD.org> wrote:
 >=20
 > The following reply was made to PR pkg/58911; it has been noted by =
 GNATS.
 >=20
 > From: Thomas Klausner <wiz@NetBSD.org>
 > To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
 > Cc:=20
 > Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
 > Date: Tue, 17 Dec 2024 17:40:14 +0100
 >=20
 > Works for me.
 > You'll have to do what the output says:
 >=20
 >> A full log can be found at =
 /usr/pkgsrc/x11/gtk3/work/gtk+-3.24.43/output/meson-logs/meson-log.txt
 >=20
 >  Thomas
 >=20

 The end of that file says

 env[PKG_CONFIG]: /usr/pkgsrc/x11/gtk3/work/.tools/bin/pkg-config
 env[PKG_CONFIG_LIBDIR]: =
 /usr/pkgsrc/x11/gtk3/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/x11/gtk3/wo=
 rk/.buildlink/share/pkgconfig
 env[PKG_CONFIG_LOG]: /usr/pkgsrc/x11/gtk3/work/.pkg-config.log
 env[PKG_CONFIG_PATH]:=20
 -----------
 Called: `/usr/pkgsrc/x11/gtk3/work/.tools/bin/pkg-config --modversion =
 atk-bridge-2.0` -> 1
 stderr:
 Package atk-bridge-2.0 was not found in the pkg-config search path.
 Perhaps you should add the directory containing `atk-bridge-2.0.pc'
 to the PKG_CONFIG_PATH environment variable
 Package 'atk-bridge-2.0' not found
 -----------
 CMake binary for host machine is cached as not found
 Dependency lookup for atk-bridge-2.0 with method 'cmake' failed: CMake =
 binary for machine host machine not found. Giving up.
 Run-time dependency atk-bridge-2.0 found: NO (tried pkgconfig)

 meson.build:570:19: ERROR: Dependency "atk-bridge-2.0" not found, tried =
 pkgconfig


 and the work/.pkg-config.log says

 atk-bridge-2.0 NOT-FOUND


 I don't see any atk-bridge-2.0 package in pkgsrc.=

From: Thomas Klausner <wiz@gatalith.at>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 19:44:23 +0100

 On Tue, Dec 17, 2024 at 12:07:01PM -0500, Rob Whitlock wrote:
 > I don't see any atk-bridge-2.0 package in pkgsrc.

 The files are part of at-spi2-core, which is why I mentioned it.
 # pkg_info -L at-spi2-core | grep pc
 /usr/pkg/lib/pkgconfig/atk-bridge-2.0.pc
 /usr/pkg/lib/pkgconfig/atk.pc
 /usr/pkg/lib/pkgconfig/atspi-2.pc

  Thomas

From: Benny Siegert <bsiegert@gmail.com>
To: Rob Whitlock <rwhitlock22@gmail.com>
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, 
    "John D. Baker via gnats" <gnats-admin@netbsd.org>, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 20:15:12 +0000 (UTC)

 On Tue, 17 Dec 2024, Rob Whitlock wrote:

 > Package atk-bridge-2.0 was not found in the pkg-config search path.
 > Perhaps you should add the directory containing `atk-bridge-2.0.pc'
 > to the PKG_CONFIG_PATH environment variable
 > Package 'atk-bridge-2.0' not found

 I saw the same, but cleaning all work directories and retrying made it 
 work again, for whatever reason.

 -- 
 Benny

From: Rob Whitlock <rwhitlock22@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Tue, 17 Dec 2024 19:20:32 -0500

 > On Dec 17, 2024, at 1:45 PM, Thomas Klausner via gnats =
 <gnats-admin@NetBSD.org> wrote:
 >=20
 > The following reply was made to PR pkg/58911; it has been noted by =
 GNATS.
 >=20
 > From: Thomas Klausner <wiz@gatalith.at>
 > To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
 > Cc:=20
 > Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
 > Date: Tue, 17 Dec 2024 19:44:23 +0100
 >=20
 > On Tue, Dec 17, 2024 at 12:07:01PM -0500, Rob Whitlock wrote:
 >> I don't see any atk-bridge-2.0 package in pkgsrc.
 >=20
 > The files are part of at-spi2-core, which is why I mentioned it.
 > # pkg_info -L at-spi2-core | grep pc
 > /usr/pkg/lib/pkgconfig/atk-bridge-2.0.pc
 > /usr/pkg/lib/pkgconfig/atk.pc
 > /usr/pkg/lib/pkgconfig/atspi-2.pc
 >=20
 >  Thomas

 Thanks for the pointer. It looks like atk-bridge-2.0.pc doesn't get =
 installed unless at-spi2-core  was built with the dbus option, which I =
 have disabled. So then gtk+ needs the gtk3-atk-bridge option disabled to =
 build.

 It would be nice if there were some error or warning alerting the user =
 to why such a build of gtk+ is failing, but I will refrain from =
 suggesting a patch because I'm not familiar enough with these programs =
 to be confident in the fix.=

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58911: x11/gtk3 missing atk-bridge-2.0 dependency
Date: Wed, 18 Dec 2024 08:07:48 +0100

 On Tue, Dec 17, 2024 at 07:20:32PM -0500, Rob Whitlock wrote:
 > Thanks for the pointer. It looks like atk-bridge-2.0.pc doesn't get installed unless at-spi2-core  was built with the dbus option, which I have disabled. So then gtk+ needs the gtk3-atk-bridge option disabled to build.
 > 
 > It would be nice if there were some error or warning alerting the user to why such a build of gtk+ is failing, but I will refrain from suggesting a patch because I'm not familiar enough with these programs to be confident in the fix.

 Ah yes.

 I don't like the dbus option for that package, but some other people
 think dbus is so bad that it's needed.

 The dbus option in at-spi2-core/options.mk is even commented to break
 stuff but perhaps it should yell louder:

 #
 # Make dbus optional. Note that turning dbus off does not actually
 # make at-spi2 work without dbus; it tells it to build only atk, and
 # makes this package approximately equivalent to the standalone atk
 # package that used to exist. This in turn avoids incurring a
 # mandatory dbus dependency for a large number of applications that
 # never previously had one.
 #
 # However, anything that actually needs at-spi2 will not work with
 # dbus turned off, and probably not build either.
 #

  Thomas

NetBSD Home
NetBSD PR Database Search

(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-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.