Skip to content

PC LTP kernel devel package to match kernel#25166

Merged
ricardobranco777 merged 1 commit intoos-autoinst:masterfrom
volodymyrkatkalov:pc_match_kernel_devel_ver
Apr 8, 2026
Merged

PC LTP kernel devel package to match kernel#25166
ricardobranco777 merged 1 commit intoos-autoinst:masterfrom
volodymyrkatkalov:pc_match_kernel_devel_ver

Conversation

@volodymyrkatkalov
Copy link
Copy Markdown
Contributor

@volodymyrkatkalov volodymyrkatkalov commented Mar 31, 2026

Ensure that devel package matches the kernel version before building LTP modules for the targeted kernel

VR after code change

@volodymyrkatkalov volodymyrkatkalov force-pushed the pc_match_kernel_devel_ver branch 2 times, most recently from bf52cc9 to 1bf169e Compare March 31, 2026 15:40
@volodymyrkatkalov volodymyrkatkalov marked this pull request as ready for review April 1, 2026 11:07
Copy link
Copy Markdown
Contributor

@ricardobranco777 ricardobranco777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can get all the information with just one command run through ssh and less Perl like this:

rpm -qf /boot/config-$(uname -r) | sed -e "s/\.$(arch)//" | ...

or even:

rpm -qf /boot/config-$(uname -r) | awk -F- '{ printf "%s-%s-devel", $1, $2 }'

@volodymyrkatkalov volodymyrkatkalov force-pushed the pc_match_kernel_devel_ver branch 3 times, most recently from 4069067 to f9571f8 Compare April 1, 2026 13:53
Ensure that devel package matches the kernel version
before building LTP modules for the targeted kernel

- Related ticket: https://progress.opensuse.org/issues/198164
@volodymyrkatkalov volodymyrkatkalov force-pushed the pc_match_kernel_devel_ver branch from f9571f8 to efeeba1 Compare April 1, 2026 13:57
@volodymyrkatkalov volodymyrkatkalov marked this pull request as draft April 1, 2026 13:57
Copy link
Copy Markdown
Contributor

@ricardobranco777 ricardobranco777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@volodymyrkatkalov volodymyrkatkalov marked this pull request as ready for review April 8, 2026 07:12
@ricardobranco777 ricardobranco777 merged commit 8b98792 into os-autoinst:master Apr 8, 2026
14 checks passed
$instance->softreboot();
} else {
zypper_call_remote($instance, cmd => "install --no-recommends " . join(' ', get_required_build_dependencies()));
zypper_call_remote($instance, cmd => "install --no-recommends " . join(' ', @deps));
Copy link
Copy Markdown
Contributor

@m-dati m-dati Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, all fine, but this command, even working, is 'formally' incorrect from a language POV. the instance should be set externally as the self pointer:

Suggested change
zypper_call_remote($instance, cmd => "install --no-recommends " . join(' ', @deps));
$instance->zypper_call_remote(cmd => "install --no-recommends " . join(' ', @deps));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-dati I didn't change the way it's called I only changed the array that's passed into the call

Copy link
Copy Markdown
Contributor Author

@volodymyrkatkalov volodymyrkatkalov Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About formally incorrect I can include the refinement in next iteration, no problems

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, no hurry 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants