cryfs / homebrew-tap

A tap to allow installing CryFS on Mac OS X using homebrew
GNU Lesser General Public License v3.0
4 stars 1 forks source link

Conan build profile doesn't exist #14

Closed gapuchi closed 1 year ago

gapuchi commented 1 year ago

I'm encountering an issue when installing cryfs on my M1 Mac

$ brew install cryfs/tap/cryfs
-- Conan executing: /opt/homebrew/bin/conan install /tmp/cryfs-20230417-17256-9mkzb2/conanfile.py --build missing --settings build_type=Release --settings compiler=apple-clang --settings compiler.version=14.0 --settings compiler.libcxx=libc++
ERROR: The default build profile '/private/tmp/cryfs-20230417-17256-9mkzb2/.brew_home/.conan2/profiles/default' doesn't exist.
You need to create a default profile (type 'conan profile detect' command)
or specify your own profile with '--profile:build=<myprofile>'
CMake Error at cmake-utils/conan.cmake:633 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake-utils/DependenciesFromConan.cmake:4 (conan_cmake_install)
  CMakeLists.txt:47 (include)

Running conan profile detect doesn't help since it seems to need a profile relative to CryFs

owais commented 1 year ago

Running into the same issue. Any workarounds @gapuchi ?

atanaschristov commented 1 year ago

I am having the same issue as well

PhilippSoeder commented 1 year ago

same here

smessmer commented 1 year ago

This happened because conan2 was released and homebrew then tried to use conan2 for building cryfs, but cryfs doesn't work with conan2 yet. I'm waiting for the cmake integration of conan 2 to be stable before migrating to conan2.

But I was able to change the cryfs formula so that it forces homebrew to use conan1 for building cryfs and ignore whichever conan version may be available on the system. https://github.com/cryfs/homebrew-tap/pull/15 should fix this issue.

smessmer commented 1 year ago

Should be fixed now