Bug 2097273

Summary: [RHEL9] Please add libxdp-static and libxdp-devel to CRB repo
Product: Red Hat Enterprise Linux 9 Reporter: Hangbin Liu <haliu>
Component: xdp-toolsAssignee: Toke Høiland-Jørgensen <thoiland>
Status: CLOSED CURRENTRELEASE QA Contact: Zhiqian Guan <zhguan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: bstinson, jiji, jwboyer
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-23 10:26:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hangbin Liu 2022-06-15 10:28:07 UTC
Description of problem:

Currently, the appstream repo only has xdp-tools and libxdp. There is no way for customer to install libxdp-static or libxdp-devel. We need to include libxdp-static and libxdp-devel as well.

Comment 2 Josh Boyer 2022-06-21 13:00:53 UTC
Please follow https://one.redhat.com/rhel-development-guide/#proc_shipping-subpackages_assembly_managing-RHEL-content and ensure release+ is set.

The MR here: https://gitlab.com/redhat/centos-stream/release-engineering/comps/-/merge_requests/255 adds these to the CRB repo, but this bug is asking for AppStream.  We don't encourage static linking in general, so can someone explain the need for libxdp-static?

Comment 3 Toke Høiland-Jørgensen 2022-06-21 16:33:38 UTC
Both of those are for consistency with libbpf; we ship both libbpf-devel and libbpf-static, and they are in the CRB repo. While it's technically possible to use libxdp without libbpf, they are fairly close siblings, so it makes the most sense to have them together... I'll update the BZ title to reflect this.

Comment 4 Brian Stinson 2022-06-29 19:51:36 UTC
Merged here: https://gitlab.com/redhat/centos-stream/release-engineering/comps/-/merge_requests/255

This should show up in the next composes

Comment 5 Zhiqian Guan 2022-09-23 10:26:37 UTC
libxdp-devel and libxdp-static are in CRB repo, close this with currentrelease

[root@netqe1 ~]# yum install -y libxdp-devel
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 2:40:44 ago on Fri 23 Sep 2022 03:42:11 AM EDT.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                         Architecture                                     Version                                                    Repository                                                  Size
==============================================================================================================================================================================================================================================
Installing:
 libxdp-devel                                                    x86_64                                           1.2.6-1.el9                                                beaker-CRB                                                  18 k
Installing dependencies:
 elfutils-libelf-devel                                           x86_64                                           0.187-5.el9                                                beaker-AppStream                                            27 k
 libbpf-devel                                                    x86_64                                           2:0.6.0-1.el9                                              beaker-CRB                                                  74 k
 zlib-devel                                                      x86_64                                           1.2.11-34.el9                                              beaker-AppStream                                            47 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  4 Packages

Total download size: 166 k
Installed size: 471 k
Downloading Packages:
(1/4): elfutils-libelf-devel-0.187-5.el9.x86_64.rpm                                                                                                                                                           6.1 MB/s |  27 kB     00:00
(2/4): zlib-devel-1.2.11-34.el9.x86_64.rpm                                                                                                                                                                    9.0 MB/s |  47 kB     00:00
(3/4): libbpf-devel-0.6.0-1.el9.x86_64.rpm                                                                                                                                                                    7.6 MB/s |  74 kB     00:00
(4/4): libxdp-devel-1.2.6-1.el9.x86_64.rpm                                                                                                                                                                    2.8 MB/s |  18 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                          13 MB/s | 166 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1
  Installing       : zlib-devel-1.2.11-34.el9.x86_64                                                                                                                                                                                      1/4
  Installing       : elfutils-libelf-devel-0.187-5.el9.x86_64                                                                                                                                                                             2/4
  Installing       : libbpf-devel-2:0.6.0-1.el9.x86_64                                                                                                                                                                                    3/4
  Installing       : libxdp-devel-1.2.6-1.el9.x86_64                                                                                                                                                                                      4/4
  Running scriptlet: libxdp-devel-1.2.6-1.el9.x86_64                                                                                                                                                                                      4/4
  Verifying        : elfutils-libelf-devel-0.187-5.el9.x86_64                                                                                                                                                                             1/4
  Verifying        : zlib-devel-1.2.11-34.el9.x86_64                                                                                                                                                                                      2/4
  Verifying        : libbpf-devel-2:0.6.0-1.el9.x86_64                                                                                                                                                                                    3/4
  Verifying        : libxdp-devel-1.2.6-1.el9.x86_64                                                                                                                                                                                      4/4
Installed products updated.

Installed:
  elfutils-libelf-devel-0.187-5.el9.x86_64                         libbpf-devel-2:0.6.0-1.el9.x86_64                         libxdp-devel-1.2.6-1.el9.x86_64                         zlib-devel-1.2.11-34.el9.x86_64

Complete!
[root@netqe1 ~]# yum install -y libxdp-static
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 2:40:56 ago on Fri 23 Sep 2022 03:42:11 AM EDT.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                     Architecture                                         Version                                                      Repository                                                Size
==============================================================================================================================================================================================================================================
Installing:
 libxdp-static                                               x86_64                                               1.2.6-1.el9                                                  beaker-CRB                                                41 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package

Total download size: 41 k
Installed size: 151 k
Downloading Packages:
libxdp-static-1.2.6-1.el9.x86_64.rpm                                                                                                                                                                          7.7 MB/s |  41 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                         4.0 MB/s |  41 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1
  Installing       : libxdp-static-1.2.6-1.el9.x86_64                                                                                                                                                                                     1/1
  Running scriptlet: libxdp-static-1.2.6-1.el9.x86_64                                                                                                                                                                                     1/1
  Verifying        : libxdp-static-1.2.6-1.el9.x86_64                                                                                                                                                                                     1/1
Installed products updated.

Installed:
  libxdp-static-1.2.6-1.el9.x86_64

Complete!
[root@netqe1 ~]# uname -a
Linux netqe1.knqe.lab.eng.bos.redhat.com 5.14.0-162.3.1.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 16 09:38:07 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@netqe1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.1 Beta (Plow)
[root@netqe1 ~]#