Open diversys opened 3 years ago
@yurikoles maybe you have an idea what's going on here?
Hi @diversys
Please try args << "-DCMAKE_INSTALL_BUNDLEDIR=#{bin}"
and instruct users to make a symlink to corresponding .app under ~/Applications
.
@yurikoles I tried this
brew tap F1ash/homebrew-qt-virt-manager
brew install f1ash/qt-virt-manager/qt-virt-manager
With this patch:
diff --git a/qt-virt-manager.rb b/qt-virt-manager.rb
index 02d7fe1..503be22 100644
--- a/qt-virt-manager.rb
+++ b/qt-virt-manager.rb
@@ -30,12 +30,20 @@ class QtVirtManager < Formula
args<<"-DQT5_LIB_PATH=#{Formula["qt5"].prefix}"
args<<"-DVNC_LIB_PATH=#{Formula["libvnc"].prefix}"
args<<"-DSPICE_LIB_PATH=#{Formula["spice-protocol"].prefix}"
+ args<<"-DCMAKE_INSTALL_BUNDLEDIR=#{bin}"
mkdir "build" do
system "cmake", "..", *args
system "make", "install"
end
end
+ def caveats; <<-EOS.undent
+ You need to take some manual steps in order to make this formula work:
+ mkdir -p "~/Applications/KDE"
+ ln -sf "#{prefix}/bin/qt5-virt-manager.app" "~/Applications/KDE/"
+ EOS
+ end
+
def post_install
# manual schema compile step
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
An the build still ended with:
CMake Error at cmake_install.cmake:91 (file):
file cannot create directory:
/Applications/qt5-virt-manager.app/Contents/Resources. Maybe need
administrative privileges.
@yurikoles any other ideas what could go wrong here?
anyone?
qt5-virt-manager compiles ok but cmake fails to create
/Applications/qt5-virt-manager.app/Contents/Resources
probably because it's sandboxed. Any ideas?