[virt-tools-list] [virt-viewer] [PATCH 05/15] nsis: add libnettle-4-7.dll (and its dependencies)

Fabiano Fidêncio fidencio at redhat.com
Tue Dec 9 16:13:35 UTC 2014


libgcc_s_sjlj-1 is needed by libgmp (on x86)
libgcc_s_seh-1 is needed by libgmp (on x86_64s)
libgmp-10.dll is needed by libnettle
libhogweed-2-5.dll is provided by libnettle
libnettle-4-7.dll is needed by gnutls
gnutls is needed by gvnc and libvirt

An interesting point here that worth to mention is the usage of /nonfatal
when including libgcc_s_{sjlj,seh}-1.dll. As we only have the _seh in x64
the build breaks trying to add "not found" files. A check for arch was
one option to solve the problem, but _sjlj may exist in x64 as well, when
using an old gcc. An explicit check if the file exists (in compile time)
was another idea, but for some reason the "-" part of the filename was
interpreted as a math operand, breaking the build.
With all that in mind, adding /nonfatal was the most convenient solution.
---
 data/virt-viewer.nsis.in | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/data/virt-viewer.nsis.in b/data/virt-viewer.nsis.in
index 51b2a4e..810ae05 100644
--- a/data/virt-viewer.nsis.in
+++ b/data/virt-viewer.nsis.in
@@ -142,6 +142,11 @@ Section "VirtViewer"
   File "@prefix@/bin/libgcrypt-20.dll"
   File "@prefix@/bin/libgvnc-1.0-0.dll"
   File "@prefix@/bin/libgtk-vnc-1.0-0.dll"
+  File "@prefix@/bin/libgmp-10.dll"
+  File "@prefix@/bin/libhogweed-2-5.dll"
+  File "@prefix@/bin/libnettle-4-7.dll"
+  File /nonfatal "@prefix@/bin/libgcc_s_sjlj-1.dll"
+  File /nonfatal "@prefix@/bin/libgcc_s_seh-1.dll"
 
   File "@prefix@/bin/pango-querymodules.exe"
   File /oname=remote-viewer.com "${DESTDIR}@prefix@/bin/windows-cmdline-wrapper.exe"
@@ -302,6 +307,12 @@ Section "Uninstall"
   Delete /rebootok "$INSTDIR\bin\libidn-11.dll"
   Delete /rebootok "$INSTDIR\bin\libssh2-1.dll"
   Delete /rebootok "$INSTDIR\bin\libgvnc-1.0-0.dll"
+  Delete /rebootok "$INSTDIR\bin\libgmp-10.dll"
+  Delete /rebootok "$INSTDIR\bin\libhogweed-2-5.dll"
+  Delete /rebootok "$INSTDIR\bin\libnettle-4-7.dll"
+  Delete /rebootok "$INSTDIR\bin\libgcc_s_sjlj-1.dll"
+  Delete /rebootok "$INSTDIR\bin\libgcc_s_seh-1.dll"
+
   Delete /rebootok "$INSTDIR\bin\libgtk-vnc-1.0-0.dll"
   Delete /rebootok "$INSTDIR\bin\libgpg-error-0.dll"
   Delete /rebootok "$INSTDIR\bin\libportablexdr-0.dll"
-- 
2.1.0




More information about the virt-tools-list mailing list