NetBSD Problem Report #58867
From www@netbsd.org Sun Dec 1 16:43:44 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 4FA541A9238
for <gnats-bugs@gnats.NetBSD.org>; Sun, 1 Dec 2024 16:43:44 +0000 (UTC)
Message-Id: <20241201164342.CD2601A923E@mollari.NetBSD.org>
Date: Sun, 1 Dec 2024 16:43:42 +0000 (UTC)
From: rwhitlock22@gmail.com
Reply-To: rwhitlock22@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysutils/libnotify build error
X-Send-Pr-Version: www-1.0
>Number: 58867
>Category: pkg
>Synopsis: sysutils/libnotify build error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 01 16:45:00 +0000 2024
>Closed-Date: Sun Dec 01 19:10:02 +0000 2024
>Last-Modified: Sun Dec 01 19:20:00 +0000 2024
>Originator: Robert Whitlock
>Release: pkgsrc current, Sat Nov 30, 2024
>Organization:
>Environment:
NetBSD current 10.99.12, Sat Nov 9, 2024
>Description:
Build fails looking for gi-docgen, which seems to be the devel/py-gi-docgen package. This dependency is needed to build the documentation when using the doc option. Output below:
=> 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 libnotify-0.8.3nb2
=> Generating pkg-config files for builtin xz package.
The Meson build system
Version: 1.6.0
Source dir: /usr/pkgsrc/sysutils/libnotify/work/libnotify-0.8.3
Build dir: /usr/pkgsrc/sysutils/libnotify/work/libnotify-0.8.3/output
Build type: native build
Project name: libnotify
Project version: 0.8.3
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
Found pkg-config: YES (/usr/pkgsrc/sysutils/libnotify/work/.tools/bin/pkg-config) 2.3.0
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.12
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gio-2.0 found: YES 2.82.2
WARNING: Found CMake '/usr/pkgsrc/sysutils/libnotify/work/.tools/bin/false' but couldn't run it
Found CMake: NO
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig and cmake)
Configuring config.h using configuration
Program xsltproc found: YES (/usr/pkg/bin/xsltproc)
Configuring notify-features.h using configuration
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-mkenums found: YES (/usr/pkg/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-mkenums found: YES (/usr/pkg/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-genmarshal found: YES (/usr/pkg/bin/glib-genmarshal)
Compiler for C supports link arguments -Wl,--version-script,/usr/pkgsrc/sysutils/libnotify/work/libnotify-0.8.3/libnotify/libnotify.map: YES
Program g-ir-scanner found: YES (/usr/pkg/bin/g-ir-scanner)
Run-time dependency gobject-introspection-1.0 found: YES 1.80.1
Dependency gobject-introspection-1.0 found: YES 1.80.1 (cached)
Program /usr/pkg/bin/g-ir-scanner found: YES (/usr/pkg/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.80.1 (cached)
Program /usr/pkg/bin/g-ir-compiler found: YES (/usr/pkg/bin/g-ir-compiler)
Program xmlto found: YES (/usr/pkg/bin/xmlto)
Configuring libnotify.toml using configuration
WARNING: Found CMake '/usr/pkgsrc/sysutils/libnotify/work/.tools/bin/false' but couldn't run it
Found CMake: NO
Build-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency gi-docgen
docs/reference/meson.build:13:0: ERROR: Subproject exists but has no meson.build file.
A full log can be found at /usr/pkgsrc/sysutils/libnotify/work/libnotify-0.8.3/output/meson-logs/meson-log.txt
*** Error code 1
Stop.
make[1]: stopped making "install" in /usr/pkgsrc/sysutils/libnotify
*** Error code 1
Stop.
make: stopped making "install" in /usr/pkgsrc/sysutils/libnotify
>How-To-Repeat:
enable doc option for libnotify
cd sysutils/libnotify
make install
>Fix:
I tried adding a dependency for py-gi-docgen and fixing a bit of the python tool dependency, but meson still doesn't find gi-docgen and I'm not sure why. Here is what I have done:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/libnotify/Makefile,v
retrieving revision 1.83
diff -u -r1.83 Makefile
--- Makefile 17 Nov 2024 07:16:41 -0000 1.83
+++ Makefile 30 Nov 2024 17:36:45 -0000
@@ -28,7 +28,7 @@
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,${WRKSRC}/libnotify/libnotify.map
-PYTHON_FOR_BUILD_ONLY= tool
+#PYTHON_FOR_BUILD_ONLY= tool
.include "options.mk"
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/libnotify/options.mk,v
retrieving revision 1.9
diff -u -r1.9 options.mk
--- options.mk 14 Feb 2023 14:03:53 -0000 1.9
+++ options.mk 30 Nov 2024 17:36:45 -0000
@@ -9,6 +9,8 @@
.if !empty(PKG_OPTIONS:Mdoc)
TOOL_DEPENDS+= gtk-doc-[0-9]*:../../textproc/gtk-doc
+TOOL_DEPENDS+= ${PYPKGPREFIX}-gi-docgen-[0-9]*:../../devel/py-gi-docgen
+.include "../../lang/python/tool.mk"
TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
PLIST.doc= yes
MESON_ARGS+= -Ddocbook_docs=enabled
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@gatalith.at>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/58867: sysutils/libnotify build error
Date: Sun, 1 Dec 2024 19:59:41 +0100
On Sun, Dec 01, 2024 at 04:45:00PM +0000, rwhitlock22@gmail.com wrote:
> >Number: 58867
> >Category: pkg
> >Synopsis: sysutils/libnotify build error
Just for comparison - I can't get this to fail to build, it works fine
on my machine, even when gtk-doc is installed:
=> Checking for portability problems in extracted files
The Meson build system
Version: 1.6.0
Source dir: /scratch/sysutils/libnotify/work/libnotify-0.8.3
Build dir: /scratch/sysutils/libnotify/work/libnotify-0.8.3/output
Build type: native build
Project name: libnotify
Project version: 0.8.3
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
Found pkg-config: YES (/scratch/sysutils/libnotify/work/.tools/bin/pkg-config) 2.3.0
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.12
Run-time dependency glib-2.0 found: YES 2.82.2
Run-time dependency gio-2.0 found: YES 2.82.2
WARNING: Found CMake '/scratch/sysutils/libnotify/work/.tools/bin/false' but couldn't run it
Found CMake: NO
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig and cmake)
Configuring config.h using configuration
Program xsltproc found: YES (/usr/pkg/bin/xsltproc)
Configuring notify-features.h using configuration
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-mkenums found: YES (/usr/pkg/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-mkenums found: YES (/usr/pkg/bin/glib-mkenums)
Dependency glib-2.0 found: YES 2.82.2 (cached)
Program /usr/pkg/bin/glib-genmarshal found: YES (/usr/pkg/bin/glib-genmarshal)
Compiler for C supports link arguments -Wl,--version-script,/scratch/sysutils/libnotify/work/libnotify-0.8.3/libnotify/libnotify.map: YES
Program g-ir-scanner found: YES (/usr/pkg/bin/g-ir-scanner)
Run-time dependency gobject-introspection-1.0 found: YES 1.80.1
Dependency gobject-introspection-1.0 found: YES 1.80.1 (cached)
Program /usr/pkg/bin/g-ir-scanner found: YES (/usr/pkg/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.80.1 (cached)
Program /usr/pkg/bin/g-ir-compiler found: YES (/usr/pkg/bin/g-ir-compiler)
Build targets in project: 9
libnotify 0.8.3
User defined options
buildtype : plain
docbook_docs : disabled
gtk_doc : false
introspection: enabled
libdir : lib
libexecdir : libexec
mandir : man
prefix : /usr/pkg
sysconfdir : /usr/pkg/etc
tests : false
wrap_mode : nodownload
Found ninja-1.12.1 at /usr/pkg/bin/ninja
===> Building for libnotify-0.8.3nb2
ninja: Entering directory `output'
[5/15] Generating docs/notify-send-man with a custom command
Note: namesp. cut : stripped namespace before processing notify-send
[11/15] Linking target libnotify/libnotify.so.4.0.0
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabs()
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabsf()
[13/15] Linking target tools/notify-send
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabs()
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabsf()
[14/15] Generating libnotify/Notify-0.7.gir with a custom command (wrapped by meson to set env)
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabs()
ld: /usr/lib/libm.so.0: warning: warning: reference to compatibility cabsf()
[15/15] Generating libnotify/Notify-0.7.typelib with a custom command
*** Please use pkgtools/verifypc to sanity check dependencies.
===> Installing for libnotify-0.8.3nb2
=> Generating pre-install file lists
=> Adding run-time search paths to pkg-config files.
ninja: Entering directory `output'
[0/1] Installing files.
Installing libnotify/notify-enum-types.h to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/include/libnotify
Installing libnotify/libnotify.so.4.0.0 to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/lib
Installing libnotify/Notify-0.7.gir to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/share/gir-1.0
Installing libnotify/Notify-0.7.typelib to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/lib/girepository-1.0
Installing tools/notify-send to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/bin
Installing docs/notify-send.1 to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/man/man1
Installing /scratch/sysutils/libnotify/work/libnotify-0.8.3/libnotify/notify.h to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/include/libnotify
Installing /scratch/sysutils/libnotify/work/libnotify-0.8.3/libnotify/notification.h to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/include/libnotify
Installing /scratch/sysutils/libnotify/work/libnotify-0.8.3/output/libnotify/notify-features.h to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/include/libnotify
Installing /scratch/sysutils/libnotify/work/libnotify-0.8.3/output/meson-private/libnotify.pc to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/lib/pkgconfig
Installing symlink pointing to libnotify.so.4.0.0 to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/lib/libnotify.so.4
Installing symlink pointing to libnotify.so.4 to /scratch/sysutils/libnotify/work/.destdir/usr/pkg/lib/libnotify.so
=> Automatic manual page handling
=> Generating post-install file lists
# make show-options
Any of the following general options may be selected:
doc Include the documentation.
tests Build and install tests.
These options are enabled by default:
These options are currently enabled:
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or PKG_OPTIONS.libnotify.
Thomas
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/58867: sysutils/libnotify build error
Date: Sun, 1 Dec 2024 20:00:42 +0100
Sorry, I had overlooked 'doc option'.
Thomas
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Sun, 01 Dec 2024 19:10:02 +0000
State-Changed-Why:
Just fixed it, thanks for the PR
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58867 CVS commit: pkgsrc/sysutils/libnotify
Date: Sun, 1 Dec 2024 19:09:42 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Sun Dec 1 19:09:42 UTC 2024
Modified Files:
pkgsrc/sysutils/libnotify: Makefile PLIST options.mk
Log Message:
libnotify: fix doc option
Closes PR 58867.
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 pkgsrc/sysutils/libnotify/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/sysutils/libnotify/PLIST \
pkgsrc/sysutils/libnotify/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.