Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure with SYSTEM_DEPS_DAV1D_BUILD_INTERNAL=always #85

Closed
fintelia opened this issue Oct 25, 2023 · 5 comments · Fixed by #86
Closed

Build failure with SYSTEM_DEPS_DAV1D_BUILD_INTERNAL=always #85

fintelia opened this issue Oct 25, 2023 · 5 comments · Fixed by #86
Assignees
Labels
bug Something isn't working

Comments

@fintelia
Copy link

I haven't had a chance to investigate much, but since the release of 0.9.5, I've been seeing CI failures for image crate builds that use dav1d. I believe the relevant output is...

  thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dav1d-sys-0.7.2/build.rs:83:10:
  called `Result::unwrap()` on an `Err` value: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" PKG_CONFIG_PATH="" "pkg-config" "--libs" "--cflags" "dav1d" "dav1d >= 1.0.0" "dav1d <= 1.2.1"` did not exit successfully: exit status: 1
  error: could not find system library 'dav1d' required by the 'dav1d-sys' crate

  --- stderr
  Package dav1d was not found in the pkg-config search path.
  Perhaps you should add the directory containing `dav1d.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'dav1d' found
  Package dav1d was not found in the pkg-config search path.
  Perhaps you should add the directory containing `dav1d.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'dav1d' found
  Package dav1d was not found in the pkg-config search path.
  Perhaps you should add the directory containing `dav1d.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'dav1d' found
@sdroege
Copy link
Contributor

sdroege commented Oct 25, 2023

Indeed, that makes sense. Sorry for missing that. The cause is in 3d8c514

It's unclear to me how we can handle this correctly as system-deps would decide whether to build the internal version or not. So we would have to be able to pass the upper bound there instead of checking ourselves.

@gdesmott any ideas?

@lu-zero lu-zero added the bug Something isn't working label Oct 25, 2023
@sdroege
Copy link
Contributor

sdroege commented Oct 25, 2023

We'd need gdesmott/system-deps#60 I guess.

@gdesmott
Copy link
Contributor

We'd need gdesmott/system-deps#60 I guess.

Yeah I think so.

@sdroege
Copy link
Contributor

sdroege commented Oct 26, 2023

Let's do that then

@sdroege sdroege self-assigned this Oct 27, 2023
@sdroege
Copy link
Contributor

sdroege commented Oct 27, 2023

gdesmott/system-deps#82 should allow us to fix this.

sdroege added a commit to sdroege/dav1d-rs that referenced this issue Oct 31, 2023
Otherwise if we check for it ourselves the internal build of dav1d will
not be usable.

Fixes rust-av#85
sdroege added a commit to sdroege/dav1d-rs that referenced this issue Oct 31, 2023
Otherwise if we check for it ourselves the internal build of dav1d will
not be usable.

Fixes rust-av#85
lu-zero pushed a commit that referenced this issue Oct 31, 2023
Otherwise if we check for it ourselves the internal build of dav1d will
not be usable.

Fixes #85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants