From 54f3eb2e868c40d15eec023eaeca4035a64a799f Mon Sep 17 00:00:00 2001 From: Will Parker Date: Mon, 6 Jan 2020 15:23:09 +0000 Subject: [PATCH] UnixPB: Make changes so FreeBSD works --- .../roles/Common/vars/FreeBSD.yml | 34 ++++--------------- .../roles/ccache/tasks/main.yml | 9 +++++ 2 files changed, 16 insertions(+), 27 deletions(-) diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/FreeBSD.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/FreeBSD.yml index d5c625be53..cf20dcbb17 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/FreeBSD.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Common/vars/FreeBSD.yml @@ -7,47 +7,27 @@ Build_Tool_Packages: - alsa-lib - autoconf - - automake - bash - - binutils - - bison - cups - - curl - fontconfig - freetype2 - - gcc - - gcc-ecj + - giflib - git - gmake - - libICE - - libSM - - libX11 - - libXau - - libXdmcp + - jpeg-turbo + - lcms2 - libXext - - libXfixes - libXi + - libX11 - libXrandr # JDK12+ compilation - libXrender - libXt - libXtst - - libdaemon - - libffi - - libfontenc - - libgnomecups - - libiconv - - libxcb - - m4 - - mercurial - - mkfontdir - - nano - openjdk - openjdk8 - - ntp - - gtar - - xextproto - - xproto - - wget + - pkgconf + - png + - unzip - zip gcc_compiler: diff --git a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml index 7088b75f5e..a875226ef8 100644 --- a/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/ccache/tasks/main.yml @@ -27,6 +27,7 @@ when: - ccache_status.stat.isdir is not defined - ansible_architecture != "s390x" + - ansible_distribution != "FreeBSD" tags: ccache - name: Running ./configure & make for CCACHE for s390x @@ -34,6 +35,14 @@ when: - ccache_status.stat.isdir is not defined - ansible_architecture == "s390x" + - ansible_distribution != "FreeBSD" + tags: ccache + +- name: Running ./configure & make for CCACHE for FreeBSD + shell: cd /tmp/ccache-3.4.2 && ./configure && make -j {{ ansible_processor_cores }} && gmake install + when: + - ccache_status.stat.isdir is not defined + - ansible_distribution == "FreeBSD" tags: ccache - name: Remove downloaded packages for ccache