How to find out the source of non-linkage when build succeeds? #4990
Unanswered
Jerry1144
asked this question in
Writing Formulae/Casks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I'm trying to understand why my tests fail in the CI. Can anyone point me to the right direction?
The modified
test do
uses a new option--sharpyuv
, enabled through linkage to libwebp at compile time (and is a runtime dependency). When that option is not enabled, passing such option triggers the same error message as seen in the CI outputs: conversion to YUV failed. (the next message is unrelated: conversion to YUV is part of file import, so when this step fails, file import fails)Problem is, I've tried my best to help the build system find
webp
in the formula - thePKG_CONFIG_PATH
line is totally not needed on my machine, and will cause build error if it came without correspondingdepends_on "webp"
and with anaom
not depending onjpeg-xl
; Thedepends_on "webp"
isn't even needed in the first place - there's an indirectlibavif
-aom
-jpeg-xl
-webp
chain of inclusion.I have even explicitly passed
-DAVIF_LIBSHARPYUV_ENABLED=1
in hope that it'd turn into a build-time failure if webp were not found. This does not work - if webp is not found the build proceeds as if it was not enabled, producing binary that fails the test. What else could I do to make the new dependency - and the updated test - work?Beta Was this translation helpful? Give feedback.
All reactions