NetBSD Problem Report #55763

From www@netbsd.org  Wed Oct 28 21:21:13 2020
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 D5B961A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 28 Oct 2020 21:21:13 +0000 (UTC)
Message-Id: <20201028212056.054EA1A923C@mollari.NetBSD.org>
Date: Wed, 28 Oct 2020 21:20:55 +0000 (UTC)
From: you.kawasaki@gmail.com
Reply-To: you.kawasaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysutils/upower Build fails on Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
X-Send-Pr-Version: www-1.0

>Number:         55763
>Category:       pkg
>Synopsis:       sysutils/upower Build fails on Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 28 21:25:00 +0000 2020
>Originator:     Yosuke Kawasaki
>Release:        pkgsrc-2020Q3
>Organization:
None
>Environment:
Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux
>Description:
Building of sysutils/upower on Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux fails in configure step.

The error message says the configure cannot find gudev-1.0 >= 147.
I installed host libgudev-1.0-dev package, but the configure cannot find the gudev-1.0.pc file installed in /usr/lib/x86_64-linux-gnu/pkgconfig.

When I copy  the gudev-1.0.pc into the buildlink directory (work/.buildlink/lib/pkgconfig/), configure found it.

The same happened for libusb1 library.

=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for upower-0.99.11.tar.xz
=> Checksum RMD160 OK for upower-0.99.11.tar.xz
=> Checksum SHA512 OK for upower-0.99.11.tar.xz
===> Installing dependencies for upower-0.99.11
==========================================================================
The supported build options for upower are:

        introspection

The currently selected options are:

        introspection

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

        PKG_OPTIONS.upower (not defined)

==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.64.5
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
=> Tool dependency intltool>=0.40.0: found intltool-0.51.0nb5
=> Tool dependency gettext-tools>=0.15: found gettext-tools-0.21nb1
=> Tool dependency perl>=5.0: found perl-5.32.0nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.6.0
=> Build dependency docbook-xsl-[0-9]*: found docbook-xsl-1.79.2nb4
=> Build dependency libxslt-[0-9]*: found libxslt-1.1.34nb3
=> Build dependency gobject-introspection>=1.62.0nb1: found gobject-introspection-1.64.1
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency glib2>=2.64.0nb1: found glib2-2.64.5nb1
=> Full dependency dbus>=0.91: found dbus-1.12.20
=> Full dependency dbus-glib>=0.110nb1: found dbus-glib-0.110nb1
===> Checking for vulnerabilities in upower-0.99.11
===> Overriding tools for upower-0.99.11
===> Extracting for upower-0.99.11
===> Patching for upower-0.99.11
===> Creating toolchain wrappers for upower-0.99.11
===> Configuring for upower-0.99.11
/usr/bin/printf "#! /bin/bash\\n /var/pkg/bin/xsltproc --nonet  --path /var/pkg/share/doc/dbus \$*\\n " > /var/pkg/work/sysutils/upower/work/.buildlink/bin/xsltproc
/bin/chmod +x /var/pkg/work/sysutils/upower/work/.buildlink/bin/xsltproc
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Adding run-time search paths to pkg-config files.
=> Fixing locale directory references.
checking for a BSD-compatible install... /bin/install -c -o root -g root
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /var/pkg/work/sysutils/upower/work/.tools/bin/mkdir -p
checking for gawk... /var/pkg/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking pkg-config is at least version 0.9.0... yes
checking for gobject-introspection... yes
checking for x86_64-debian-linux-gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/egrep
checking for ANSI C header files... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking build system type... x86_64-debian-linux-gnu
checking host system type... x86_64-debian-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /var/pkg/work/sysutils/upower/work/.cwrapper/bin/ld
checking if the linker (/var/pkg/work/sysutils/upower/work/.cwrapper/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... (cached) 2097152
checking how to convert x86_64-debian-linux-gnu file names to x86_64-debian-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-debian-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /var/pkg/work/sysutils/upower/work/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64-debian-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-debian-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-debian-linux-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-debian-linux-strip... no
checking for strip... strip
checking for x86_64-debian-linux-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-debian-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... /bin/rm: cannot remove 'conftest*': No such file or directory
yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/var/pkg/work/sysutils/upower/work/.cwrapper/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... /bin/rm: cannot remove 'conftest*': No such file or directory
no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for xsltproc... /var/pkg/work/sysutils/upower/work/.buildlink/bin/xsltproc
checking for gtk-doc... no
configure: WARNING:
  You will not be able to create source packages with 'make dist'
  because gtk-doc >= 1.11 is not found.
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /var/pkg/bin/gtkdoc-check
checking for gtkdoc-rebase... /var/pkg/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /var/pkg/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking whether C compiler accepts -fPIE... yes
checking whether the linker accepts -fPIE -pie... yes
checking whether the linker accepts -Wl,-z,relro,-z,now... yes
checking for GLIB... yes
checking for GIO... yes
checking for GIO_UNIX... yes
checking for GUDEV... no
configure: error: Package requirements (gudev-1.0 >= 147) were not met:

Package 'gudev-1.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GUDEV_CFLAGS
and GUDEV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error code 1

Stop.
bmake[1]: stopped in /var/pkgsrc/pkgsrc-2020Q3/sysutils/upower
*** Error code 1

Stop.
bmake: stopped in /var/pkgsrc/pkgsrc-2020Q3/sysutils/upower


>How-To-Repeat:
bmake
>Fix:
It was possible to finish the build by copying the system /usr/lib/x86_64-linux-gnu/pkgconfig/gudev-1.0.pc into the buildlink directory (work/.buildlink/lib/pkgconfig/).

However, I think there should be more appropriate way to fix this.

NetBSD Home
NetBSD PR Database Search

(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.