Bug 2053324

Summary: libbpf: incorrect version exported to libbpf.pc
Product: [Fedora] Fedora Reporter: Michel Lind <michel>
Component: libbpfAssignee: Jiri Olsa <jolsa>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ckalina, jolsa
Target Milestone: ---   
Target Release: ---   
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-02-18 09:16:16 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:
Bug Depends On:    
Bug Blocks: 2028922    

Description Michel Lind 2022-02-11 00:36:22 UTC
Description of problem:
The version of libbpf is 0.6.1, but libbpf.pc reports version 0.6.0

Version-Release number of selected component (if applicable):
libbpf-2:0.6.1-2.fc37

How reproducible:
Always

Steps to Reproduce:
1. download libbpf-devel-0.6.1-2.fc37 from Koji (no Rawhide compose yet)
2. rpm -qp --provides libbpf-devel*.rpm | grep pkgconfig

Actual results:
pkgconfig(libbpf) = 0.6.0

Expected results:
pkgconfig(libbpf) = 0.6.1

Additional info:
PR fixing this: https://src.fedoraproject.org/rpms/libbpf/pull-request/2

also reported upstream (will link GH)

Comment 1 Michel Lind 2022-02-11 18:18:51 UTC
Note: talked to Andrii who did the patch to source the version from libbpf.map
- he's going to start recording PATCH_VERSION and use that in Makefile, so the version will be correct in any newer patch releases
- 0.7.0 is out, so the version sourced from libbpf.map is currently correct if we bump to 0.7.0

Given that, I think updating to 0.7.0 is probably better than overriding the version when calling make

Comment 2 Jiri Olsa 2022-02-18 09:16:16 UTC
rawhide is now on 0.7.0, closing