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@0.21.2_py310: update post_install steps ipatch/homebrew-freecad #634

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
18 changes: 14 additions & 4 deletions Formula/freecad@0.21.2_py310.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class FreecadAT0212Py310 < Formula

Check warning on line 1 in Formula/freecad@0.21.2_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

No bottle built for freecad@0.21.2_py310!

freecad@0.21.2_py310 has unbottled dependencies, so a bottle will not be built.

Check warning on line 1 in Formula/freecad@0.21.2_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

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

tbb

Check warning on line 1 in Formula/freecad@0.21.2_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

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

tbb
desc "Parametric 3D modeler"
homepage "https://www.freecadweb.org"
license "GPL-2.0-only"
Expand Down Expand Up @@ -116,7 +116,7 @@
# sha256 "ce9f4b2afb2c621274e74208a563616eeeee54369f295b6c5f6f4f3112923135"
# end

def install

Check warning on line 119 in Formula/freecad@0.21.2_py310.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

`brew install --verbose --formula --build-bottle freecad/freecad/freecad@0.21.2_py310` failed on Linux!

| ^ 16 warnings generated. [822/4963] /home/linuxbrew/.linuxbrew/opt/llvm/bin/clang++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PP_VARIADICS=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DBUILD_ADDONMGR -DCMAKE_BUILD_TYPE=\"RelWithDebInfo\" -DFreeCADGui_EXPORTS -DHAVE_CONFIG_H -DHAVE_PYSIDE2 -DHAVE_SHIBOKEN2 -DNDEBUG -DPYCXX_6_2_COMPATIBILITY -DPYSIDE_QML_SUPPORT=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -D_OCC64 -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/FreeCADGui_autogen/include -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/FreeCAD-0.21.2/src -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/FreeCAD-0.21.2/src/Gui -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/FreeCAD-0.21.2/src/Gui/Quarter -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/FreeCAD-0.21.2/src/Gui/.. -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/.. -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/Language -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/propertyeditor -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/TaskView -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/Quarter -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/src/Gui/DAGView -I/home/linuxbrew/.linuxbrew/opt/eigen/include/eigen3 -I/home/linuxbrew/.linuxbrew/opt/coin3d_py310/include -I/home/linuxbrew/.linuxbrew/opt/xerces-c/include -I/home/linuxbrew/.linuxbrew/opt/zlib/include -I/home/linuxbrew/.linuxbrew/opt/pyside2@5.15.11_py310/include/PySide2/QtCore -I/home/linuxbrew/.linuxbrew/opt/pyside2@5.15.11_py310/include/PySide2/QtGui -I/home/linuxbrew/.linuxbrew/opt/pyside2@5.15.11_py310/include/PySide2/QtWidgets -I/tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/build/_deps/fmt-src/include -isystem /home/linuxbrew/.linuxbrew/Cellar/boost/1.86.0_2/include -isystem /home/linuxbrew/.linuxbrew/opt/python@3.10/include/python3.10 -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtCore -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/./mkspecs/linux-g++ -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtWidgets -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtGui -isystem /home/linuxbrew/.linuxbrew/opt/mesa/include -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtOpenGL -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtPrintSupport -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtSvg -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtNetwork -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtUiTools -isystem /home/linuxbrew/.linuxbrew/opt/pyside2@5.15.11_py310/include/shiboken2 -isystem /home/linuxbrew/.linuxbrew/opt/pyside2@5.15.11_py310/include/PySide2 -isystem /home/linuxbrew/.linuxbrew/opt/qt@5/include/QtXml -Wall -Wextra -Wpedantic -Wno-write-strings -Wno-undefined-var-template -O2 -g -DNDEBUG -std=gnu++17 -fPIC -I/home/linuxbrew/.linuxbrew/opt/open-mpi/include -fPIC -MD -MT src/Gui/CMakeFiles/FreeCADGui.dir/SoFCOffscreenRenderer.cpp.o -MF src/Gui/CMakeFiles/FreeCADGui.dir/SoFCOffscreenRenderer.cpp.o.d -o src/Gui/CMakeFiles/FreeCADGui.dir/SoFCOffscreenRenderer.cpp.o -c /tmp/freecadA0.21.2_py310-20241111-24444-ivoznm/FreeCAD-0.21.2/src/Gui/SoFCOffscreenRenderer.cpp FAILED: src/Gui/CMakeFiles/FreeCADGui.dir/SoFCOffscreenRenderer.cpp.o /home/linuxbrew/.linuxbrew/opt/llvm/bin/clang++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOO
hbp = HOMEBREW_PREFIX

# NOTE: `which` cmd is not installed by default on every OS
Expand Down Expand Up @@ -341,12 +341,22 @@
def post_install
if OS.mac?
ohai "the value of prefix = #{prefix}"
ln_s "#{prefix}/MacOS/FreeCAD", "#{HOMEBREW_PREFIX}/bin/freecad", force: true
ln_s "#{prefix}/MacOS/FreeCADCmd", "#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
freecad_path = Pathname.new("#{prefix}/MacOS/FreeCAD")
freecadcmd_path = Pathname.new("#{prefix}/MacOS/FreeCADCmd")

ln_s freecad_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")), "#{HOMEBREW_PREFIX}/bin/freecad",
force: true
ln_s freecadcmd_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")),
"#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
elsif OS.linux?
ohai "the value of prefix = #{prefix}"
ln_s "#{bin}/FreeCAD", "#{HOMEBREW_PREFIX}/bin/freecad", force: true
ln_s "#{bin}/FreeCADCmd", "#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
freecad_path = Pathname.new("#{bin}/FreeCAD")
freecadcmd_path = Pathname.new("#{bin}/FreeCADCmd")

ln_s freecad_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")), "#{HOMEBREW_PREFIX}/bin/freecad",
force: true
ln_s freecadcmd_path.relative_path_from(Pathname.new("#{HOMEBREW_PREFIX}/bin")),
"#{HOMEBREW_PREFIX}/bin/freecadcmd", force: true
end
end

Expand Down
Loading