Skip to content

Commit

Permalink
unixPB,winPB: install jq on Linux+Windows for SBoM parsing (#3460)
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa committed Mar 11, 2024
1 parent c770d35 commit a8a152e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@
- ! (ansible_distribution_major_version == "7" and ansible_architecture == "s390x")
tags: build_tools

- name: Install jq for SBoM parsing for build reproducibility testing
package: "name=jq state=latest"
when:
- ansible_distribution_major_version > "7"
tags: test_tools

- name: Add devtools-2 to yum repo list for gcc 4.8
get_url:
url: https://people.centos.org/tru/devtools-2/devtools-2.repo
Expand Down Expand Up @@ -190,6 +196,13 @@
- ansible_distribution_major_version == "6"
tags: build_tools

- name: Install jq for SBoM parsing for build reproducibility testing
package: "name=jq state=latest"
when:
- ansible_distribution_major_version != "6"
- ansible_distribution_major_version != "7"
tags: test_tools

##############################
# expat on CentOS on x86_64 #
##############################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
- ansible_architecture == "x86_64"
tags: patch_update


- name: Enable EPEL release for RHEL8 or RHEL6 or RHEL7
yum: name=https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
failed_when: false
Expand Down Expand Up @@ -110,6 +109,12 @@
- (ansible_distribution_major_version == "8")
tags: build_tools

- name: Install jq for SBoM parsing for build reproducibility testing
package: "name=jq state=latest"
when:
- ansible_distribution_major_version > "7"
tags: test_tools

#################
# xorg Packages #
#################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Test_Tool_Packages:
- binfmt-support
- qemu-user-static
- gnutls-bin
- jq # For parsing SBoM during reproducibility tests
- libnss3
- libnss3-dev
- libnss3-tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Test_Tool_Packages:
- zlib-devel
- perl-devel
- expat-devel
- jq # For parsing SBoM during reproducibility tests
- libcurl-devel
- mercurial
- gnutls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Test_Tool_Packages:
- xorg-x11-server-extra
- glibc-locale # Internationalization tests
- gnutls
- jq # For parsing SBoM during reproducibility tests
- mozilla-nss
- mozilla-nss-devel
- mozilla-nss-tools
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Test_Tool_Packages:
- libexpat1-dev
- libcurl4-openssl-dev
- fakeroot
- jq # For parsing SBoM during reproducibility tests
- gnutls-bin
- libnss3
- libnss3-tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

- name: Install Cygwin
win_shell: |
Start-Process -Wait -FilePath 'C:\temp\cygwin.exe' -ArgumentList '--packages autoconf,automake,bsdtar,cmake,cpio,curl,gcc-core,git,gnupg,grep,libtool,make,mingw64-x86_64-gcc-core,perl,rsync,unzip,wget,zip --quiet-mode --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin/ --local-package-dir C:\cygwin_packages --root C:\cygwin64'
Start-Process -Wait -FilePath 'C:\temp\cygwin.exe' -ArgumentList '--packages autoconf,automake,bsdtar,cmake,cpio,curl,gcc-core,git,gnupg,grep,jq,libtool,make,mingw64-x86_64-gcc-core,perl,rsync,unzip,wget,zip --quiet-mode --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin/ --local-package-dir C:\cygwin_packages --root C:\cygwin64'
args:
executable: powershell
when: not cygwin_installed.stat.exists
Expand Down

0 comments on commit a8a152e

Please sign in to comment.