Merge ~canonical-kernel-team/+git/autotest-client-tests:phlin/ubuntu_bpf into ~canonical-kernel-team/+git/autotest-client-tests:master

Proposed by Po-Hsu Lin
Status: Merged
Merged at revision: d252c8a0a30ded98f17d38c5ed965604425a7d8a
Proposed branch: ~canonical-kernel-team/+git/autotest-client-tests:phlin/ubuntu_bpf
Merge into: ~canonical-kernel-team/+git/autotest-client-tests:master
Diff against target: 21 lines (+3/-2)
1 file modified
ubuntu_bpf/ubuntu_bpf.py (+3/-2)
Reviewer Review Type Date Requested Status
Andrei Gherzan Approve
Review via email: mp+444567@code.launchpad.net

Commit message

BugLink: https://bugs.launchpad.net/bugs/2023549

On Lunar, ubuntu_bpf test will need libssl-dev to build.
Instead of adding another if statement for checking the series,
I decided to add it to the pkg list as this package is available
in the archive since Xenial.

To post a comment you must log in.
Revision history for this message
Andrei Gherzan (agherzan) :
review: Approve
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Applied and pushed, thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ubuntu_bpf/ubuntu_bpf.py b/ubuntu_bpf/ubuntu_bpf.py
2index f718d13..0c52a7e 100644
3--- a/ubuntu_bpf/ubuntu_bpf.py
4+++ b/ubuntu_bpf/ubuntu_bpf.py
5@@ -19,13 +19,14 @@ class ubuntu_bpf(test.test):
6 'git',
7 'libcap-dev',
8 'libelf-dev',
9+ 'libssl-dev',
10 ]
11 gcc = 'gcc' if arch in ['ppc64le', 'aarch64', 's390x', 'riscv64'] else 'gcc-multilib'
12 pkgs.append(gcc)
13
14 if self.series == 'jammy':
15- if not re.match('5\.15\.0-.*' ,platform.release()):
16- pkgs.extend(['gcc-12', 'libssl-dev'])
17+ if not re.match('5\.15\.0-.*', platform.release()):
18+ pkgs.append('gcc-12')
19
20 if self.series == 'focal':
21 if self.kv.startswith('5.6.0'):

Subscribers

People subscribed via source and target branches

to all changes: