tags 514052 + patch
block 514122 by 514052
thanks.

* Nelson A. de Oliveira | 2009-02-03 17:04:37 [-0200]:

>A new version of Google Earth is available and make-googleearth-package needs
>to be updated:

Attached patch fixes this problem for me on AMD64, the resulting package
|5.0.11337.1968+0.5.4-1.1
runs fine.
Killing libcrypto fixes also #514122. The new binary depends on
libgthread-2.0.so.0 with is provided by ia32-libs-gtk.


>Nelson

Sebastian
--- a/make-googleearth-package
+++ b/make-googleearth-package
@@ -69,7 +69,7 @@ function check_version() {
 
   echo $version >&2
 
-  if grep -E 'GNU/Linux 4.[0123]' <<<"$version" > /dev/null; then
+  if grep -E 'GNU/Linux 5.[0123]' <<<"$version" > /dev/null; then
     GoogleEarth_VERSION=$(sed -e 's/.*GNU\/Linux //' <<<"$version")
     echo 'Supported Google Earth version:' $GoogleEarth_VERSION >&2
   elif [ "$OPT_FORCE" ]; then
@@ -301,7 +301,7 @@ EOF
   rmdir debian
   
   if [ "$(dpkg-architecture -qDEB_BUILD_ARCH)" != "i386" ]; then
-    ia32libs=", ia32-libs"
+    ia32libs=", ia32-libs, ia32-libs-gtk"
   fi
 
   cat <<EOF >control
@@ -339,6 +339,14 @@ function build_package() {
   tar -xf "$tmpdir"/googleearth-linux-x86.tar
   tar -xf "$tmpdir"/googleearth-data.tar
 
+  # The libcrypto in google's package fails with
+  # |/usr/lib/googleearth/googleearth-bin: relocation error:
+  # |/usr/lib32/i686/cmov/libssl.so.0.9.8: symbol BIO_test_flags, version
+  # |OPENSSL_0.9.8 not defined in file libcrypto.so.0.9.8 with link time
+  # |reference
+  # atleast on AMD64. The file provided by ia32-libs seems to work
+  rm libcrypto.so.0.9.8
+
   # debian menu entry
   cd "$instdir"
   mkdir -p usr/share/menu

Reply via email to