Bug 2053324 - libbpf: incorrect version exported to libbpf.pc
Summary: libbpf: incorrect version exported to libbpf.pc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libbpf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Olsa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2028922
TreeView+ depends on / blocked
 
Reported: 2022-02-11 00:36 UTC by Michel Lind
Modified: 2022-02-18 09:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-18 09:16:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github libbpf libbpf issues 455 0 None open Incorrect version exported to libbpf.pc 2022-02-11 00:36:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.