Skip to content

Instantly share code, notes, and snippets.

@davidfoerster
Last active December 7, 2016 19:54
Show Gist options
  • Save davidfoerster/a7eb57becee7d5c44a3f5d9df89e2a78 to your computer and use it in GitHub Desktop.
Save davidfoerster/a7eb57becee7d5c44a3f5d9df89e2a78 to your computer and use it in GitHub Desktop.
Family Search for Linux patch set for any JVM ≥ 1.6

Family Search for Linux patch set for any JVM ≥ 1.6

Prerequisites

You can install all of the following packages with a single apt install command. I just listed them here separately to explain each of them.

  • A Java runtime environment of at least version 1.6. On Debian you can install one like this:

     sudo apt install default-jre
    
  • According to Getting FamilySearch Indexing to work in Ubuntu 14.04 you also need a few shared libraries:

     sudo apt install libgtk2.0-0:i386 libxtst6:i386 libxtst6:i386 libx11-dev:i386 libz1:i386 libncurses5:i386 libbz2-1.0:i386 libxi6 libxtst6 libxrender1
    

    They were already installed on my system so I haven't tested the veracity of that claim.

  • The wget and patch tools:

     sudo apt install wget patch
    

Installation instructions

  1. Download the Unix installer.

    wget -c https://indexing.familysearch.org/downloads/Indexing_unix.sh
    
  2. Download the patch set.

    wget https://gist.githubusercontent.com/davidfoerster/a7eb57becee7d5c44a3f5d9df89e2a78/raw/Indexing_unix.sh.patch https://gist.githubusercontent.com/davidfoerster/a7eb57becee7d5c44a3f5d9df89e2a78/raw/indexing.patch
    
  3. Patch the installer.

    patch -b Indexing_unix.sh < Indexing_unix.sh.patch
    
  4. Run the installer.

    ./Indexing_unix.sh
    
  5. Patch the installed application.

    patch -p2 -d ~/.FamilySearchIndexing < indexing.patch
    

… and you're good to go.

Tested with OpenJDK 1.8 on Ubuntu 14.04.

--- a/.FamilySearchIndexing/indexing.familysearch.org/indexing 2016-06-15 13:29:12.000000000 +0200
+++ b/.FamilySearchIndexing/indexing.familysearch.org/indexing 2016-10-04 10:52:34.609943722 +0200
@@ -105,16 +105,16 @@
fi
fi
- if [ "$ver_major" = "" ]; then
- return;
- fi
- if [ "$ver_major" -gt "1" ]; then
- return;
- elif [ "$ver_major" -eq "1" ]; then
- if [ "$ver_minor" -gt "6" ]; then
- return;
- fi
- fi
+# if [ "$ver_major" = "" ]; then
+# return;
+# fi
+# if [ "$ver_major" -gt "1" ]; then
+# return;
+# elif [ "$ver_major" -eq "1" ]; then
+# if [ "$ver_minor" -gt "6" ]; then
+# return;
+# fi
+# fi
app_java_home=$test_dir
}
--- a/.FamilySearchIndexing/indexing.familysearch.org/uninstall 2016-06-15 13:29:12.000000000 +0200
+++ b/.FamilySearchIndexing/indexing.familysearch.org/uninstall 2016-10-04 10:52:34.609943722 +0200
@@ -105,16 +105,16 @@
fi
fi
- if [ "$ver_major" = "" ]; then
- return;
- fi
- if [ "$ver_major" -gt "1" ]; then
- return;
- elif [ "$ver_major" -eq "1" ]; then
- if [ "$ver_minor" -gt "6" ]; then
- return;
- fi
- fi
+# if [ "$ver_major" = "" ]; then
+# return;
+# fi
+# if [ "$ver_major" -gt "1" ]; then
+# return;
+# elif [ "$ver_major" -eq "1" ]; then
+# if [ "$ver_minor" -gt "6" ]; then
+# return;
+# fi
+# fi
app_java_home=$test_dir
}
--- Indexing_unix.sh 2016-10-04 10:38:56.804167702 +0200
+++ Indexing_unix.sh 2016-10-04 10:48:30.712992854 +0200
@@ -105,16 +105,16 @@
fi
fi
- if [ "$ver_major" = "" ]; then
- return;
- fi
- if [ "$ver_major" -gt "1" ]; then
- return;
- elif [ "$ver_major" -eq "1" ]; then
- if [ "$ver_minor" -gt "6" ]; then
- return;
- fi
- fi
+# if [ "$ver_major" = "" ]; then
+# return;
+# fi
+# if [ "$ver_major" -gt "1" ]; then
+# return;
+# elif [ "$ver_major" -eq "1" ]; then
+# if [ "$ver_minor" -gt "6" ]; then
+# return;
+# fi
+# fi
app_java_home=$test_dir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment