To compile *for* the docker container, 1. Need to use SVN in the *host* machine to checkout the subversion directory from gs2-extensions at https://trac.greenstone.org/browser/main/trunk/gs2-extensions/subversion/ as follows: ssh gsb-linux32|64 cd /greenstone mkdir packages cd packages svn co https://svn.greenstone.org/main/trunk/gs2-extensions/subversion 2. Next we need to have our docker container (manylinux for 32 or 64 bit) running, for which follow the instructions at: - To install docker and prep: https://wiki.greenstone.org/doku.php?id=internal:greenstone_build_systems#dockermanylinux2014_replaces_lsb - Create our manylinux docker container for 32/64 bit linux: https://wiki.greenstone.org/doku.php?id=internal:greenstone_build_systems#one_time_docker_steps_-_automated_version Follow those instructions until *just before* the line ./gs-docker.sh prep-release (because prep-release is dependent on *having* svn). At this step of the instructions, it will have logged you into the docker container. This is the point at which to compile up SVN, which needs to happen inside the 32/64 bit docker container for it to create a subversion matching the bitness of the docker. 3. Now we're in the container, go into the checked out subversion's source folder, then run the cascade-make steps: # Inside the docker container: cd /greenstone/packages/subversion/source ./CASCADE-MAKE.sh # Add the new subversion to PATH export PATH=/greenstone/packages/subversion/source/linux/bin:$PATH ./GS-SUBVERSION-DIST-TARUP.sh ./GS-SUBVERSION-DIST-SVN-COMMIT.sh # copy the commit message the -SVN-COMMIT.sh script above prints out # go one folder up into the folder above the source folder: cd .. # Add any tarballs to svn that need adding # Then run the copied commit message 4. You can now proceed with https://wiki.greenstone.org/doku.php?id=internal:greenstone_build_systems#one_time_docker_steps_-_automated_version starting from the instructions to run ./gs-docker.sh prep_release from *within* the docker container. 5. If you ever need to check out the tarball of the compiled up subversion of the bitness you just created: svn export https://svn.greenstone.org/main/trunk/gs2-extensions/subversion/subversion-linux64.tar.gz #svn export https://svn.greenstone.org/main/trunk/gs2-extensions/subversion/subversion-linux32.tar.gz tar -xvzf subversion-linux.tar.gz To use this subversion binary, put /greenstone/subversion/linux's bin on PATH and lib folder on LD_LIBRARY_PATH: export PATH=/greenstone/subversion/linux/bin:$PATH export LD_LIBRARY_PATH=/greenstone/subversion/linux/lib:$LD_LIBRARY_PATH