NetBSD Problem Report #55913
From www@netbsd.org Tue Jan 5 14:48:02 2021
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 4693E1A9217
for <gnats-bugs@gnats.NetBSD.org>; Tue, 5 Jan 2021 14:48:02 +0000 (UTC)
Message-Id: <20210105144800.AB8111A9239@mollari.NetBSD.org>
Date: Tue, 5 Jan 2021 14:48:00 +0000 (UTC)
From: aza.sea.agenda@gmail.com
Reply-To: aza.sea.agenda@gmail.com
To: gnats-bugs@NetBSD.org
Subject: devel/kconfig config issue / dbus / build failure
X-Send-Pr-Version: www-1.0
>Number: 55913
>Category: pkg
>Synopsis: devel/kconfig config issue / dbus / build failure
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 05 14:50:00 +0000 2021
>Last-Modified: Tue Jan 05 21:10:01 +0000 2021
>Originator: Aleksey Arens
>Release: pkgsrc-2020Q4
>Organization:
>Environment:
NetBSD HOSTNAME_REDACTED 9.1_STABLE NetBSD 9.1_STABLE (GENERIC) #1: Sun Jan 3 20:58:50 UTC 2021 root@HOSTNAME_REDACTED:/usr/src/sys/arch/amd64/compile/obj/GENERIC amd64
>Description:
The build of devel/kconfig fails with the following output:
---8<---
CMake Error at /usr/pkg/qt5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5DBus" with any
of the following names:
Qt5DBusConfig.cmake
qt5dbus-config.cmake
Add the installation prefix of "Qt5DBus" to CMAKE_PREFIX_PATH or set
"Qt5DBus_DIR" to a directory containing one of the above files. If
"Qt5DBus" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:24 (find_package)
-- Configuring incomplete, errors occurred!
See also "/usr/obj/pkgsrc/devel/kconfig/work/kconfig-5.70.0/_KDE_build/CMakeFiles/CMakeOutput.log".
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/devel/kconfig
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/devel/kconfig
---8<---
>How-To-Repeat:
$ cd /usr/pkgsrc && cvs update -Pd -rpkgsrc-2020Q4
Then, build an application that uses Qt5.
>Fix:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
Date: Tue, 5 Jan 2021 16:10:29 +0100
On Tue, Jan 05, 2021 at 02:50:01PM +0000, aza.sea.agenda@gmail.com wrote:
> >Number: 55913
> >Category: pkg
> >Synopsis: devel/kconfig config issue / dbus / build failure
In another bug report you mentioned that you turned off the dbus
option. This looks like a related failure.
Thomas
From: Aleksey Arens <aza.sea.agenda@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
Date: Tue, 5 Jan 2021 07:32:22 -0800
Yes, it does appear to be related, But I do not see an obvious way to
supply the dbus configuration options. In particular, this package is
not using mkspecs/ directory to provide config options. I'm trying to
figure out its build process, and see if there's an easy way to
correct it. If you are aware of a package in pkgsrc that uses a
similar build, and that passes options, I would appreciate if you
refer me to it.
On Tue, Jan 5, 2021 at 7:15 AM Thomas Klausner <wiz@netbsd.org> wrote:
>
> The following reply was made to PR pkg/55913; it has been noted by GNATS.
>
> From: Thomas Klausner <wiz@NetBSD.org>
> To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
> Cc:
> Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
> Date: Tue, 5 Jan 2021 16:10:29 +0100
>
> On Tue, Jan 05, 2021 at 02:50:01PM +0000, aza.sea.agenda@gmail.com wrote:
> > >Number: 55913
> > >Category: pkg
> > >Synopsis: devel/kconfig config issue / dbus / build failure
>
> In another bug report you mentioned that you turned off the dbus
> option. This looks like a related failure.
> Thomas
>
From: Aleksey Arens <aza.sea.agenda@gmail.com>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
Date: Tue, 5 Jan 2021 13:05:03 -0800
Since this turned out to be a regular cmake build, that already
included an option for dbus, I had made a simple adjustment to provide
an option to build with or without dbus. I also added a buildlink
dependency, to create a dependency in the same way that qt5-qtbase
does. I'm working on producing a build with both dbus enabled and
disabled. So far, I'm working out the issues with interactions
between gtk3+, qt5-qtbase, and kconfig.
I suppose, it would make sense to join this PR with 55910 and 55912,
so that the dbus issue could be addressed in one bigger patch.
cvs diff -uN
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/kconfig/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile 5 Nov 2020 09:06:47 -0000 1.38
+++ Makefile 5 Jan 2021 19:40:55 -0000
@@ -8,6 +8,8 @@
COMMENT= Configuration system
LICENSE= gnu-lgpl-v2.1
+.include "options.mk"
+
.include "../../meta-pkgs/kde/kf5.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
Index: options.mk
===================================================================
RCS file: options.mk
diff -N options.mk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ options.mk 5 Jan 2021 19:40:55 -0000
@@ -0,0 +1,16 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.kconfig
+PKG_SUPPORTED_OPTIONS+= dbus
+PKG_SUGGESTED_OPTIONS+=
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= dbus
+.if !empty(PKG_OPTIONS:Mdbus)
+# Use lib/dbus-1.0/include/dbus/dbus-arch-deps.h from sysutils/dbus
+USE_DBUS-ARCH-DEPS_H= yes
+.include "../../sysutils/dbus/buildlink3.mk"
+CMAKE_ARGS+= -DKCONFIG_USE_DBUS=ON
+PLIST.dbus= yes
+.else
+CMAKE_ARGS+= -DKCONFIG_USE_DBUS=OFF
+.endif
On Tue, Jan 5, 2021 at 7:35 AM Aleksey Arens <aza.sea.agenda@gmail.com> wrote:
>
> The following reply was made to PR pkg/55913; it has been noted by GNATS.
>
> From: Aleksey Arens <aza.sea.agenda@gmail.com>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
> Date: Tue, 5 Jan 2021 07:32:22 -0800
>
> Yes, it does appear to be related, But I do not see an obvious way to
> supply the dbus configuration options. In particular, this package is
> not using mkspecs/ directory to provide config options. I'm trying to
> figure out its build process, and see if there's an easy way to
> correct it. If you are aware of a package in pkgsrc that uses a
> similar build, and that passes options, I would appreciate if you
> refer me to it.
>
>
> On Tue, Jan 5, 2021 at 7:15 AM Thomas Klausner <wiz@netbsd.org> wrote:
> >
> > The following reply was made to PR pkg/55913; it has been noted by GNATS.
> >
> > From: Thomas Klausner <wiz@NetBSD.org>
> > To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
> > Cc:
> > Subject: Re: pkg/55913: devel/kconfig config issue / dbus / build failure
> > Date: Tue, 5 Jan 2021 16:10:29 +0100
> >
> > On Tue, Jan 05, 2021 at 02:50:01PM +0000, aza.sea.agenda@gmail.com wrote:
> > > >Number: 55913
> > > >Category: pkg
> > > >Synopsis: devel/kconfig config issue / dbus / build failure
> >
> > In another bug report you mentioned that you turned off the dbus
> > option. This looks like a related failure.
> > Thomas
> >
>
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.