vifino / vifino-overlay

My personal overlay for Gentoo. Contains openrazer ebuilds and friends mostly.
MIT License
10 stars 4 forks source link

libopenrazer build failed at src_configure phase #70

Closed mcizek-2 closed 2 years ago

mcizek-2 commented 2 years ago

I cannot build the libopenrazer dependency for razergenie and get the following error message:

* Package:    dev-libs/libopenrazer-9999
 * Repository: vifino-overlay
 * Maintainer: arabek@users.noreply.github.com
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Repository id: z3ntu_libopenrazer.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_Z3NTU_LIBOPENRAZER
 *   EGIT_OVERRIDE_BRANCH_Z3NTU_LIBOPENRAZER
 *   EGIT_OVERRIDE_COMMIT_Z3NTU_LIBOPENRAZER
 *   EGIT_OVERRIDE_COMMIT_DATE_Z3NTU_LIBOPENRAZER
 *
 * Fetching https://github.com/z3ntu/libopenrazer.git ...
git fetch https://github.com/z3ntu/libopenrazer.git +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/dev-libs/libopenrazer/0/__main__ refs/git-r3/HEAD
 * Checking out https://github.com/z3ntu/libopenrazer.git to /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://github.com/z3ntu/libopenrazer.git
   at the commit:            1829dabd8c4d2a80b4323d4794d9990757feb6b8
>>> Source unpacked in /var/tmp/portage/dev-libs/libopenrazer-9999/work
>>> Preparing source in /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999 ...
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/dev-libs/libopenrazer-9999/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain --buildtype release -Ddemo=false /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999 /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999-build
The Meson build system
Version: 0.62.2
Source dir: /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999
Build dir: /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999-build
Build type: native build
Project name: libopenrazer
Project version: 0.0.1
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ (gcc 11.3.0 "x86_64-pc-linux-gnu-g++ (Gentoo 11.3.0 p4) 11.3.0")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0)
Run-time dependency qt5 (modules: Core, DBus, Gui, Xml) found: YES 5.15.5 (pkg-config)
Found CMake: /usr/bin/cmake (3.22.4)
Run-time dependency razer_test found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency razer_test

meson.build:9:0: ERROR: Automatic wrap-based subproject downloading is disabled

A full log can be found at /var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999-build/meson-logs/meson-log.txt
 * ERROR: dev-libs/libopenrazer-9999::vifino-overlay failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 2797:  Called meson_src_configure
 *   environment, line 2213:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libopenrazer-9999::vifino-overlay'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libopenrazer-9999::vifino-overlay'`.
 * The complete build log is located at '/var/log/portage/dev-libs:libopenrazer-9999:20220710-145539.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/libopenrazer-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libopenrazer-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999'
 * S: '/var/tmp/portage/dev-libs/libopenrazer-9999/work/libopenrazer-9999'

I'm not familiar at all with the meson build system, so any help would be appreciated.

vifino commented 2 years ago

Apologies, I was under the impression that the razer-test dependency was indeed optional. It was not. This is fixed now.

mcizek-2 commented 2 years ago

After enabling the razer-test flag, the package built properly. Thanks.