Bug 32119 - keyutils: devel package doesn't provide pkgconfig(libkeyutils)
Summary: keyutils: devel package doesn't provide pkgconfig(libkeyutils)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-07-18 15:34 CEST by Aurelian R
Modified: 2023-12-12 23:21 CET (History)
4 users (show)

See Also:
Source RPM: keyutils-1.6.3-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Aurelian R 2023-07-18 15:34:05 CEST
Using iurt to build a rpm package that depends on lib64keyutils-devel fails when 

BuildRequires:  pkgconfig(libkeyutils)

is used in a spec file, but it works fine if keyutils-devel is used.
For some reasons, using the link directory for libraries(i.e. "/%{_lib}") in the keyutils spec file messes up iurt loading/finding the rpm package. An issue with iurt/rpmbuild, maybe !?.
It looks like the maintainer, for some reason, went out of the way to use /%{_lib} instead of %{_libdir}. It's been like this since Mageia 1.
 
However, replacing "/%{_lib}" with "%{_libdir}" pleases iurt and all is good.

Regards,
A
Aurelian R 2023-07-18 15:39:17 CEST

Source RPM: (none) => keyutils-1.6.3-2.mga9.src.rpm

Comment 1 Jani Välimaa 2023-07-18 18:18:57 CEST
It's because pkgconfig() provides are generated from files in /usr/lib(64)/pkgconfig, and not /lib(64)/pkgconfig.

I don't see any reason anymore to ship files under /lib(64), /bin, nor /sbin.

I'll fix this in SVN. The fix will be in the next release.

Summary: keyutils: pkgconfig fails to load the devel keyutils pkg in an iurt build. => keyutils: devel package doesn't provide pkgconfig(libkeyutils)
CC: (none) => jani.valimaa
Whiteboard: (none) => MGA9TOO

Comment 2 Jani Välimaa 2023-07-18 18:23:15 CEST
Fixed in SVN. Upcoming mga9 pkg can be fixed after branching by merging the commit.

https://svnweb.mageia.org/packages?view=revision&revision=1963985
Comment 3 Aurelian R 2023-07-18 18:55:21 CEST
Nice, I missed the sbin one. 
Thanks.
Comment 4 Lewis Smith 2023-07-19 20:44:04 CEST
Thanks Jani for rapid correction.
OK to close this?

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Aurelian R 2023-11-21 17:58:14 CET
Looks like this bug haven't been fixed in Mageia 9, maybe got overlooked in the rush to release Mageia. The spec file mentioned by Jani in comment 2 is a fine solution and the package just needs a rebuild.

Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 6 Jani Välimaa 2023-11-21 18:54:19 CET
Please test keyutils-1.6.3-2.1.mga9 from mga9 core/updates_testing.

SRPM:
keyutils-1.6.3-2.1.mga10

RPMS:
keyutils-1.6.3-2.1.mga10
lib(64)keyutils1-1.6.3-2.1.mga10
lib(64)keyutils-devel-1.6.3-2.1.mga10
Comment 7 Aurelian R 2023-11-21 21:16:17 CET
Tested the new version and it's been properly found, installed and used in my case, I'm using it to build "stress-ng" that needs it.
Thanks Jani, this runs great.

Regards,
A.
Comment 8 Lewis Smith 2023-12-01 21:25:53 CET
Thanks Jani for the work, & Aurelian for testing it OK.
But Cauldron or Mageia 9 ?
Comment 6 mixes the two.
For M9 it will need an advisory. If A tested M9, that is good for QA OK.

CC: (none) => lewyssmith

Comment 9 Aurelian R 2023-12-01 23:17:13 CET
(In reply to Lewis Smith from comment #8)
> For M9 it will need an advisory. If A tested M9, that is good for QA OK.

Tested Mageia 9 and Cauldron.
Thanks.
Comment 10 Lewis Smith 2023-12-04 17:05:18 CET
Thank you for this confirmation.

Needs its Advisory (adapted & checked to exist for mga9).
> SRPM:
> keyutils-1.6.3-2.1.mga10
> RPMS:
> keyutils-1.6.3-2.1.mga10
> lib(64)keyutils1-1.6.3-2.1.mga10
> lib(64)keyutils-devel-1.6.3-2.1.mga10

> Please test keyutils-1.6.3-2.1.mga9 from mga9 core/updates_testing.
It can be taken as tested OK comment 7, comment 9.
Passing to QA.

CC: lewyssmith => (none)
Assignee: bugsquad => qa-bugs

Comment 11 Marja Van Waes 2023-12-05 11:53:56 CET
Advisory added to SVN:


type: bugfix
subject: Updated keyutils packages fix a bug
src:
  9:
   core:
     - keyutils-1.6.3-2.1.mga9
description: |
  The lib(64)keyutils-devel package did not provide
  pkgconfig(libkeyutils), this update fixes the issue.
references:
 - https://bugs.mageia.org/show_bug.cgi?id=32119

CC: (none) => marja11
Keywords: (none) => advisory
Version: Cauldron => 9

Comment 12 Thomas Andrews 2023-12-09 23:44:34 CET
MGA9-64 Plasma. No installation issues, so giving this an OK.

Removing the MGA9TOO from the Whiteboard as redundant, and validating.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: MGA9TOO => MGA9-64-OK

Comment 13 Mageia Robot 2023-12-12 23:21:12 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0140.html

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED


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