diff --git a/main.yml b/main.yml index 19ce1ea..efc3fed 100644 --- a/main.yml +++ b/main.yml @@ -82,24 +82,6 @@ remote_src: true creates: "{{ hpl_root }}/tmp/ATLAS/README" - # The source code for the configure script that ATLAS uses makes calls - # with fgrep to find information about the system from its various - # outputs to set the configuration accordingly. However, - # grep versions 3.8+ throw the following warning when calling fgrep: - # 'fgrep: warning: fgrep is obsolescent; using grep -F' - # This occurs as output from fgrep which causes the ATLAS configuration - # to get invalid return values, causing the configuration to fail - # due to it assuming the first value is the number it's looking for. - # - # If the version of grep is 3.8 or newer, we have to patch the ATLAS - # source code to get rid of the warning produced by fgrep. - - name: Checking installed software. - package_facts: - manager: auto - - - include_tasks: patch-atlas-src.yml - when: ansible_facts.packages['grep'][0].version is version("3.8", ">=") - - name: Install ATLAS (takes a LONG time). ansible.builtin.command: "{{ item }}" args: diff --git a/patch-atlas-src.yml b/patch-atlas-src.yml deleted file mode 100755 index 5808941..0000000 --- a/patch-atlas-src.yml +++ /dev/null @@ -1,40 +0,0 @@ -- name: Checking to see if patches need to be applied. - ansible.builtin.stat: - path: "{{ hpl_root }}/tmp/ATLAS_PATCHING_COMPLETE" - register: no_patches_needed - -# Fixes fgrep warning being added to output and causing -# the ATLAS configuration to fail to identify aspects of -# the given node -- name: Patching ATLAS source code (Part 1). - ansible.builtin.replace: - path: "{{ hpl_root }}tmp/ATLAS/CONFIG/include/atlas_sys.h" - regexp: '2>&1' - replace: '2>/dev/null' - when: no_patches_needed.stat.exists == false - -# Fixes 'free(): invalid pointer' error during -# ATLAS configuration -- name: Patching ATLAS source code (Part 2). - ansible.builtin.lineinfile: - path: "{{ hpl_root }}tmp/ATLAS/CONFIG/src/probe_comp.c" - insertbefore: 'free\(cmnd\)' - line: ' printf("\n");' - firstmatch: true - when: no_patches_needed.stat.exists == false - -# Fixes 'corrupted size vs. prev_size' error during -# ATLAS configuration -- name: Patching ATLAS source code (Part 3). - ansible.builtin.lineinfile: - path: "{{ hpl_root }}tmp/ATLAS/CONFIG/include/atlas_sys.h" - insertbefore: 'if \(fgets\(sout, len, fpin\)\)' - line: ' printf("\n");' - firstmatch: true - when: no_patches_needed.stat.exists == false - -- name: Create 'ATLAS_PATCHING_COMPLETE' file. - ansible.builtin.file: - path: "{{ hpl_root }}/tmp/ATLAS_PATCHING_COMPLETE" - state: touch - mode: 0644 \ No newline at end of file