Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711836 - media-libs/waffle-1.6.0-r1 has an undeclared dependency on dev-util/cmocka
Summary: media-libs/waffle-1.6.0-r1 has an undeclared dependency on dev-util/cmocka
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-07 23:24 UTC by Roy Bamford
Modified: 2020-03-08 00:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Bamford gentoo-dev 2020-03-07 23:24:07 UTC
Build log
* Package:    media-libs/waffle-1.6.0-r1
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE:        X arm64 doc elibc_glibc kernel_linux test userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox test userpriv usersandbox
>>> Unpacking source...
>>> Unpacking waffle-1.6.0.tar.xz to /var/tmp/portage/media-libs/waffle-1.6.0-r1/work
>>> Source unpacked in /var/tmp/portage/media-libs/waffle-1.6.0-r1/work
>>> Preparing source in /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0 ...
 * Applying waffle-1.6.0-meson-Generate-cmake-config-and-version-files-if-mes.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0 ...
 * .arm64: running multilib-minimal_abi_src_configure
meson --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload -Dglx=enabled -Dwayland=disabled -Dx11_egl=enabled -Dgbm=disabled -Dsurfaceless_egl=disabled -Dbuild-tests=true -Dbuild-manpages=true /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0 /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0-.arm64
 * Unable to trace static ELF: /sbin/ldconfig: /sbin/ldconfig -p 
The Meson build system
Version: 0.52.1
Source dir: /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0
Build dir: /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0-.arm64
Build type: native build
Project name: waffle
Project version: 1.6.0
Appending CFLAGS from environment: '-mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer'
Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed']
Appending CFLAGS from environment: '-mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer'
Appending LDFLAGS from environment: ['-Wl,-O1', '-Wl,--as-needed']
C compiler for the host machine: aarch64-unknown-linux-gnu-gcc (gcc 9.2.0 "aarch64-unknown-linux-gnu-gcc (Gentoo 9.2.0-r2 p3) 9.2.0")
C linker for the host machine: GNU ld.bfd 2.32
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python3 found: YES (/usr/bin/python3)
Run-time dependency threads found: YES 
Library dl found: YES
Found pkg-config: /usr/bin/aarch64-unknown-linux-gnu-pkg-config (1.6.3)
Run-time dependency gl found: YES 1.2
Run-time dependency egl found: YES 1.5
Dependency wayland-client skipped: feature wayland disabled
Dependency wayland-egl skipped: feature wayland disabled
Run-time dependency x11-xcb found: YES 1.6.9
Dependency gbm skipped: feature gbm disabled
Dependency libudev skipped: feature gbm disabled
Found CMake: /usr/bin/cmake (3.14.6)
Run-time dependency bash-completion found: NO (tried pkgconfig and cmake)
Checking if "Thread Local Storage" compiles: YES 
Checking if "TLS model "Initial Exec"" compiles: YES 
Compiler for C supports arguments -Werror=implicit-function-declaration: YES 
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES 
Compiler for C supports arguments -Werror=int-conversion: YES 
Compiler for C supports arguments -Werror=missing-prototypes: YES 
Run-time dependency cmocka found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency cmocka

meson.build:218:2: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /var/tmp/portage/media-libs/waffle-1.6.0-r1/work/waffle-1.6.0-.arm64/meson-logs/meson-log.txt
 * ERROR: media-libs/waffle-1.6.0-r1::gentoo failed (configure phase):
 *   (no error message)


Emerging dev-util/cmocka-1.1.5 enables media-libs/waffle-1.6.0-r1 to install successfully
Comment 1 Matt Turner gentoo-dev 2020-03-08 00:19:45 UTC
Interesting. cmocka is only used for the test suite, which is disabled with RESTRICT="test".

It looks like if you set FEATURES=test it won't try to link with cmocka since tests are restricted, but if you set USE=test it will still try to build the test suite.

I'll make some changes to waffle to avoid this, but I think it's really a portage problem. Also, I don't think you should ever set USE=test yourself.
Comment 2 Larry the Git Cow gentoo-dev 2020-03-08 00:23:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8ba9729865be02ebebf2daf813c6d3cfc06d5f

commit 6f8ba9729865be02ebebf2daf813c6d3cfc06d5f
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-03-08 00:21:34 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-03-08 00:23:33 +0000

    media-libs/waffle: Never build tests, since RESTRICT=test
    
    Closes: https://bugs.gentoo.org/711836
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/waffle/waffle-1.6.0-r1.ebuild | 4 ++--
 media-libs/waffle/waffle-9999.ebuild     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)