Closed
Description
Missing files in pypi https://pypi.org/project/capstone/5.0.5/#files .tar.gz, not possible to build from source. (probably only for macOS because of using cmake)
Repro:
cd $(mktemp -d)
wget https://files.pythonhosted.org/packages/a4/23/759da7f13c2ce29ffe90ccb45eb61ffcd310b436bfb489f3dbd11fba8776/capstone-5.0.5.tar.gz
tar -xf capstone-5.0.5.tar.gz
cd capstone-5.0.5/src
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -G "Unix Makefiles" ..
$ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -G "Unix Makefiles" ..
-- PROJECT_VERSION: 5.0.5 CAPSTONE_VERSION: 5.0.5
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_ARM64_SUPPORT
Enabling CAPSTONE_M68K_SUPPORT
Enabling CAPSTONE_MIPS_SUPPORT
Enabling CAPSTONE_PPC_SUPPORT
Enabling CAPSTONE_SPARC_SUPPORT
Enabling CAPSTONE_SYSZ_SUPPORT
Enabling CAPSTONE_XCORE_SUPPORT
Enabling CAPSTONE_X86_SUPPORT
Enabling CAPSTONE_TMS320C64X_SUPPORT
Enabling CAPSTONE_M680X_SUPPORT
Enabling CAPSTONE_EVM_SUPPORT
Enabling CAPSTONE_MOS65XX_SUPPORT
Enabling CAPSTONE_WASM_SUPPORT
Enabling CAPSTONE_BPF_SUPPORT
Enabling CAPSTONE_RISCV_SUPPORT
Enabling CAPSTONE_SH_SUPPORT
Enabling CAPSTONE_TRICORE_SUPPORT
CMake Error: File /var/folders/7x/qtmkc2790t55sclcdkdgzx780000gn/T/tmp.YenSkupS8b/capstone-5.0.5/src/capstone.pc.in does not exist.
CMake Error at CMakeLists.txt:766 (configure_file):
configure_file Problem configuring file
CMake Error: File /var/folders/7x/qtmkc2790t55sclcdkdgzx780000gn/T/tmp.YenSkupS8b/capstone-5.0.5/src/capstone-config.cmake.in does not exist.
CMake Error at /nix/store/w00k62fv8r6jvx67avb0yi0grxm641pj-cmake-3.30.5/share/cmake-3.30/Modules/CMakePackageConfigHelpers.cmake:501 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:771 (configure_package_config_file)
CMake Error: File /var/folders/7x/qtmkc2790t55sclcdkdgzx780000gn/T/tmp.YenSkupS8b/capstone-5.0.5/src/cmake_uninstall.cmake.in does not exist.
CMake Error at CMakeLists.txt:811 (configure_file):
configure_file Problem configuring file
CMake Error at CMakeLists.txt:853 (include):
include could not find requested file:
CPackConfig.txt
-- Configuring incomplete, errors occurred!
Activity