Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1895447 - Wrong version in pkgconfig for nss-devel
Summary: Wrong version in pkgconfig for nss-devel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nss
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-06 17:12 UTC by Dmitry Butskoy
Modified: 2020-11-10 15:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-10 15:21:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dmitry Butskoy 2020-11-06 17:12:41 UTC
Latest nss-devel's file /usr/lib64/pkgconfig/nss.pc is:
```
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include/nss3

Name: NSS
Description: Network Security Services
Version: 4.29.0
Requires: nspr >= 4.29.0, nss-util >= 3.58.0
Libs: -L${libdir} -lssl3 -lsmime3 -lnss3
Cflags: -I${includedir}
```

Note the version of 4.29.0, instead of 3.58.0

The problem is here:
https://src.fedoraproject.org/rpms/nss/blob/master/f/nss.spec#_479
because the %{version} macro expanded to the *latest* Version tag in the spec file, which (in this case) is related to nspr version, not nss...

IOW, s/%{version}/%{nss_version}/ there.

Comment 1 Daiki Ueno 2020-11-06 17:26:28 UTC
Thank you for the report; yes, this is really bad.

I guess we should probably use the same versioning for both nspr and nss (i.e., we should rename nspr to nspr429 or something and use the nss version number).

Comment 2 Daiki Ueno 2020-11-10 15:21:49 UTC
For the meantime, I applied your suggestion (s/%{version}/%{nss_version}/). Thank you for that!
https://src.fedoraproject.org/rpms/nss/c/a0090873a5b47a896b574ea437c5d3b8d0f6c2e4?branch=master


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