Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

Recipe `hidapi_1.4.1.bb` does not work as expected #770

Closed DaniilKl closed 6 months ago

DaniilKl commented 8 months ago

Component

Dasharo Tools Suite

Device

other

Dasharo version

No response

Dasharo Tools Suite version

Commit 386e4d402abd29661b88c76e0ef5bb6568766dac

Brief summary

Recipe hidapi_1.4.1.bb does not work as expected

How reproducible

100%

How to reproduce

Build on commit 386e4d402abd29661b88c76e0ef5bb6568766dac with mets-dts-distro layer priority set to 11 or higher.

Expected behavior

The package hidapi builds from the recipe provided by meta-dts-distro.

Actual behavior

Several errors during build:

(...)
WARNING: hidapi-1.4.1.AUTOINC+f39c5e17a5-r0 do_fetch: Failed to fetch URL gitsm://git@github.com/ruabmbua/hidapi-rs.git;protocol=ssh;nobranch=1, attempting MIRRORS if available
ERROR: hidapi-1.4.1.AUTOINC+f39c5e17a5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export GIT_PROXY_COMMAND="oe-git-proxy"; export NO_PROXY="*"; export PATH="/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/usr/bin/python3-native:/work/poky/scripts:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/usr/bin/x86_64-dts-linux:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot/usr/bin/crossscripts:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/usr/sbin:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/usr/bin:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/sbin:/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/recipe-sysroot-native/bin:/work/poky/bitbake/bin:/build/tmp/hosttools"; export HOME="/tmp/tmppa4nj65x"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror ssh://git@github.com/ruabmbua/hidapi-rs.git /build/downloads/git2/github.com.ruabmbua.hidapi-rs.git --progress failed with exit code 128, no output
ERROR: hidapi-1.4.1.AUTOINC+f39c5e17a5-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'gitsm://git@github.com/ruabmbua/hidapi-rs.git;protocol=ssh;nobranch=1')
ERROR: Logfile of failure stored in: /build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/temp/log.do_fetch.451
ERROR: Task (/repo/meta-dts-distro/recipes-support/hidapi/hidapi_1.4.1.bb:do_fetch) failed with exit code '1'
(...)
WARNING: hidapi-1.4.1.AUTOINC+f39c5e17a5-r0 do_fetch: Failed to fetch URL git://git@github.com/ruabmbua/hidapi-rs.git;branch=main;protocol=ssh, attempting MIRRORS if available
ERROR: hidapi-1.4.1.AUTOINC+f39c5e17a5-r0 do_compile: ExecutionError('/build/tmp/work/core2-64-dts-linux/hidapi/1.4.1.AUTOINC+f39c5e17a5-r0/temp/run.do_compile.1445', 101, None, None)
(...)
\"libusb-1.0\"`\nThe pkg-config command could not be found.\n\nMost likely, you need to install a pkg-config package for your OS.\nTry `apt install pkg-config`, or `yum install pkg-config`,\nor `pkg install pkg-config` depending on your distribution.\n\nIf you've already installed it, ensure the pkg-config command is one of the\ndirectories in the PATH environment variable.\n\nIf you did not expect this build to link to a pre-installed system library,\nthen check documentation of the hidapi crate for an option to\nbuild the library from source, or disable features or dependencies\nthat require pkg-config."', build.rs:69:60
(...)
ERROR: Task (/repo/meta-dts-distro/recipes-support/hidapi/hidapi_1.4.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 742 tasks of which 733 didn't need to be rerun and 1 failed.
(...)

Screenshots

No response

Additional context

This problem was found in https://github.com/Dasharo/dasharo-issues/issues/729 and referenced in https://github.com/Dasharo/dasharo-issues/issues/769.

Solutions you've tried

No response

DaniilKl commented 6 months ago

Closing the issue because the fix has been merged.