Skip to content

Add fix for building libnl3 on Ubuntu 24.04 #22093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

saiarcot895
Copy link
Contributor

Why I did it

When building libnl3 inside a container with a newer kernel (such as what is used on Ubuntu 24.04), some commands to create a private network namespace may fail due to restrictions. This was seen in libnl3's own Github Actions CI, and is now seen on build machines running Ubuntu 24.04 as the host with kernel 6.8.

Work item tracking
  • Microsoft ADO (number only): 31902668

How I did it

Backport a patch from libnl3 to handle such cases.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

When building libnl3 inside a container with a newer kernel (such as
what is used on Ubuntu 24.04), some commands to create a private network
namespace may fail due to restrictions. Backport a patch from libnl3 to
handle such cases.

Signed-off-by: Saikrishna Arcot <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit 19604fb into sonic-net:master Mar 24, 2025
21 checks passed
@saiarcot895 saiarcot895 deleted the fix-libnl3-build-for-ubuntu-24-04 branch March 24, 2025 17:54
saiarcot895 added a commit to saiarcot895/sonic-buildimage that referenced this pull request Apr 10, 2025
Why I did it
When building libnl3 inside a container with a newer kernel (such as what is used on Ubuntu 24.04), some commands to create a private network namespace may fail due to restrictions. This was seen in libnl3's own Github Actions CI, and is now seen on build machines running Ubuntu 24.04 as the host with kernel 6.8.

Work item tracking
Microsoft ADO (number only): 31902668
How I did it
Backport a patch from libnl3 to handle such cases.
yanjundeng pushed a commit to yanjundeng/sonic-buildimage that referenced this pull request Apr 23, 2025
Why I did it
When building libnl3 inside a container with a newer kernel (such as what is used on Ubuntu 24.04), some commands to create a private network namespace may fail due to restrictions. This was seen in libnl3's own Github Actions CI, and is now seen on build machines running Ubuntu 24.04 as the host with kernel 6.8.

Work item tracking
Microsoft ADO (number only): 31902668
How I did it
Backport a patch from libnl3 to handle such cases.
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.

3 participants