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

[bug] libpng broken using BazelDeps #17417

Closed
nedrebo opened this issue Dec 5, 2024 · 2 comments · Fixed by #17421
Closed

[bug] libpng broken using BazelDeps #17417

nedrebo opened this issue Dec 5, 2024 · 2 comments · Fixed by #17421
Assignees
Labels
Milestone

Comments

@nedrebo
Copy link

nedrebo commented Dec 5, 2024

Describe the bug

Environment: See reproducer

Error:

11.05 ======== Finalizing install (deploy, generators) ========
11.05 conanfile.txt: Writing generators to /tmp
11.05 conanfile.txt: Generator 'BazelDeps' calling 'generate()'
11.05 ERROR: Error in generator 'BazelDeps': libpng/1.6.44: Cannot obtain 'location' for library 'png' in ['/home/ubuntu/.conan2/p/b/libpn1d371201fdd0d/p/lib']. You can specify 'cpp_info.location' directly or report in github.com/conan-io/conan/issues if you think it should have been deduced correctly.

How to reproduce it

Build the Dockerfile below to reproduce:

docker buildx build .

Dockerfile:

FROM ubuntu:24.10

RUN apt-get --yes update
RUN apt-get --yes install pipx g++ cmake

USER ubuntu

RUN pipx install conan

RUN cat <<EOF > /tmp/conanfile.txt
[requires]
libpng/1.6.44

[generators]
BazelDeps
EOF

RUN ~/.local/bin/conan profile detect
RUN ~/.local/bin/conan install /tmp --build=missing
@franramirez688
Copy link
Contributor

Hi @nedrebo

Thanks a lot for reporting this. Yes, I can confirm this is a bug 😭
I'm proposing this #17421 to solve the issue.

@memsharded
Copy link
Member

Closed by #17421, it will be in next Conan 2.11 release. Thanks again for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants