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

freecad@1.0.0_py312: attempt to resolve some linkage warnings on gnu+linux and update caveats #658

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions Formula/freecad@1.0.0_py312.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class FreecadAT100Py312 < Formula

Check warning on line 1 in Formula/freecad@1.0.0_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

No bottle built for freecad@1.0.0_py312!

freecad@1.0.0_py312 has unbottled dependencies, so a bottle will not be built.

Check warning on line 1 in Formula/freecad@1.0.0_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew linkage --cached --test --strict freecad/freecad/freecad@1.0.0_py312` failed on macOS Sonoma (14) on Apple Silicon!

/opt/homebrew/Cellar/freecad@1.0.0_py312/1.0.0/lib/libgtest_main.1.15.2.dylib

Check warning on line 1 in Formula/freecad@1.0.0_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

`brew linkage --cached --test --strict freecad/freecad/freecad@1.0.0_py312` failed on macOS Ventura (13)!

/usr/local/Cellar/freecad@1.0.0_py312/1.0.0/lib/libgtest_main.1.15.2.dylib

Check warning on line 1 in Formula/freecad@1.0.0_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew linkage --cached --test --strict freecad/freecad/freecad@1.0.0_py312` failed on Linux!

open-mpi
desc "Parametric 3D modeler"
homepage "https://www.freecadweb.org"
license "GPL-2.0-only"
Expand Down Expand Up @@ -85,14 +85,14 @@
depends_on "freecad/freecad/swig@4.2.1" => :build
depends_on "gcc" => :build # gfortran req for FEM WB
depends_on "lld" => :build if OS.linux?
depends_on "mesa" => :build if OS.linux?
depends_on "ninja" => :build if OS.linux?
depends_on "pkg-config" => :build
depends_on "boost"
depends_on "cython"
depends_on "doxygen"
depends_on "expat"
depends_on "fmt"
depends_on "fontconfig" if OS.linux?
depends_on "freecad/freecad/coin3d@4.0.3_py312"
depends_on "freecad/freecad/fc_bundle_py312"
depends_on "freecad/freecad/med-file@4.1.1_py312"
Expand All @@ -105,11 +105,13 @@
depends_on "hdf5"
depends_on "icu4c"
depends_on "libomp" if OS.linux?
depends_on "libx11" if OS.linux?
depends_on "llvm" if OS.linux?
depends_on macos: :high_sierra
depends_on "mesa" if OS.linux?
depends_on "mesa-glu" if OS.linux?
depends_on "nlohmann-json"
depends_on "openblas"
depends_on "openblas" if OS.linux?
depends_on "opencascade"
depends_on "orocos-kdl"
depends_on "python@3.12"
Expand Down Expand Up @@ -200,6 +202,7 @@
cmake_prefix_paths << Formula["med-file@4.1.1_py312"].prefix
cmake_prefix_paths << Formula["nlohmann-json"].prefix
cmake_prefix_paths << Formula["opencascade"].prefix
cmake_prefix_paths << Formula["orocos-kdl"].prefix
cmake_prefix_paths << Formula["pkg-config"].prefix
cmake_prefix_paths << Formula["pugixml"].prefix
cmake_prefix_paths << Formula["pybind11_py312"].prefix
Expand All @@ -215,11 +218,13 @@
cmake_prefix_paths << Formula["zlib"].prefix

if OS.linux?
cmake_prefix_paths << Formula["mesa-glu"].prefix
cmake_prefix_paths << Formula["mesa"].prefix
cmake_prefix_paths << Formula["fontconfig"].prefix
cmake_prefix_paths << Formula["libx11"].prefix
cmake_prefix_paths << Formula["libxcb"].prefix
cmake_prefix_paths << Formula["llvm"].prefix
cmake_prefix_paths << Formula["mesa"].prefix
cmake_prefix_paths << Formula["mesa-glu"].prefix
cmake_prefix_paths << Formula["openblas"].prefix
end

cmake_prefix_path_string = cmake_prefix_paths.join(";")
Expand Down Expand Up @@ -387,10 +392,11 @@
building a FreeCAD.app bundle using the existing python
script no longer works due to updating the rpaths of the
copied executables and libraries into a FreeCAD.app
bundle. Until a fix or work around is made freecad
is built for CLI by default now.
bundle, unless performing a work around described in the
below github issue comment,
https://github.com/FreeCAD/homebrew-freecad/issues/348#issuecomment-1248927545

2. presently the freecad py module is globally accessible, ie.
2. presently the freecad py module is NOT globally accessible, ie.
one cannot directly run `import freecad` from a python v3.12
repl
EOS
Expand Down
Loading