mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Various changes to get makebuildserver to work with a 64 bit base box
Note that the apt packages are split into two halves, because it takes too long (on 64 bit!) to install them all. The sensible fix would be to simply up the timeout on the package installation section, but this is completely broken in chef.
This commit is contained in:
parent
8691bd9cf9
commit
1da89dc1f1
2 changed files with 22 additions and 3 deletions
|
@ -11,6 +11,12 @@ execute "jessie_backports" do
|
|||
only_if "grep jessie /etc/apt/sources.list"
|
||||
end
|
||||
|
||||
if node['kernel']['machine'] == "x86_64"
|
||||
execute "archi386" do
|
||||
command "dpkg --add-architecture i386"
|
||||
end
|
||||
end
|
||||
|
||||
execute "apt-get-update" do
|
||||
command "apt-get update"
|
||||
end
|
||||
|
@ -49,6 +55,13 @@ end
|
|||
libtool-bin
|
||||
make
|
||||
maven
|
||||
}.each do |pkg|
|
||||
package pkg do
|
||||
action :install
|
||||
end
|
||||
end
|
||||
|
||||
%w{
|
||||
mercurial
|
||||
nasm
|
||||
openjdk-8-jdk-headless
|
||||
|
@ -96,9 +109,15 @@ easy_install_package "compare-locales" do
|
|||
action :install
|
||||
end
|
||||
|
||||
if node['kernel']['machine'] == "x86_64"
|
||||
execute "set-default-java" do
|
||||
command "update-java-alternatives --set java-1.8.0-openjdk-amd64"
|
||||
end
|
||||
else
|
||||
execute "set-default-java" do
|
||||
command "update-java-alternatives --set java-1.8.0-openjdk-i386"
|
||||
end
|
||||
end
|
||||
|
||||
# Ubuntu trusty 14.04's paramiko does not work with jessie's openssh's default settings
|
||||
# https://stackoverflow.com/questions/7286929/paramiko-incompatible-ssh-peer-no-acceptable-kex-algorithm/32691055#32691055
|
||||
|
|
|
@ -271,7 +271,7 @@ def build_server(app, build, vcs, build_dir, output_dir, force):
|
|||
|
||||
# Get an SFTP connection...
|
||||
ftp = sshs.open_sftp()
|
||||
ftp.get_channel().settimeout(15)
|
||||
ftp.get_channel().settimeout(60)
|
||||
|
||||
# Put all the necessary files in place...
|
||||
ftp.chdir(homedir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue