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

[package] imagemagick/7.0.11-14: optional dependencies not found #12880

Open
topheg opened this issue Sep 9, 2022 · 0 comments
Open

[package] imagemagick/7.0.11-14: optional dependencies not found #12880

topheg opened this issue Sep 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@topheg
Copy link

topheg commented Sep 9, 2022

Package and Environment Details

  • Package Name/Version: imagemagick/7.0.11-14
  • Operating System+version: Linux Ubuntu 22.04
  • Compiler+version: GCC 11
  • Conan version: conan 1.52.0
  • Python version: Python 3.10.4

Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

On a host with pkg-config NOT installed (in my case, a fresh ubuntu 22.04 with only build-essential, python3 and conan installed)

Try to install imagemagick:7.0.11-14 with webp support:

[requires]
imagemagick/7.0.11-14
[options]
imagemagick:with_webp=True
imagemagick:with_pango=False

(I disabled pango because it has other dependencies I don't won't to be bothered with)

conan will look for the libpng and libwebp packages:

Requirements
[...]
libpng/1.6.37 from 'conancenter' - Cache
[...]
libwebp/1.2.0 from 'conancenter' - Cache
[...]

We can see the .pc files for libpng and libwebp are created:

imagemagick/7.0.11-14: Generator pkg_config created libpng.pc
[...]
imagemagick/7.0.11-14: Generator pkg_config created libwebp.pc
imagemagick/7.0.11-14: Generator pkg_config created libwebpmux.pc
imagemagick/7.0.11-14: Generator pkg_config created libwebpdemux.pc
imagemagick/7.0.11-14: Generator pkg_config created libwebpdecoder.pc
imagemagick/7.0.11-14: Generator pkg_config created libwebp-all-do-not-use.pc

But in the configure steps of the build, these dependencies cannot be found:

checking for libpng >= 1.0.0... no
checking for libwebp >= 0.4.1... no
checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... no

This is because pkg-config is not installed so the configure script cannot use it (as everything works if pkg-config is installed via apt)
I solved this by adding pkgconf/1.7.4 as a build requirement in the imagemagick package. I this is the right fix, I can provide a PR..

Logs

No response

@topheg topheg added the bug Something isn't working label Sep 9, 2022
topheg pushed a commit to topheg/conan-center-index that referenced this issue Sep 12, 2022
topheg pushed a commit to topheg/conan-center-index that referenced this issue Sep 12, 2022
add pkgconf as a build dependency for imagemagick
topheg added a commit to topheg/conan-center-index that referenced this issue Sep 12, 2022
add pkgconf as a build dependency for imagemagick
topheg added a commit to topheg/conan-center-index that referenced this issue Sep 12, 2022
add pkgconf as a build dependency for imagemagick
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.

1 participant