Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922123

Summary: net-libs/mbedtls: Add pkgconfig .pc file
Product: Gentoo Linux Reporter: Conrad Kostecki <conikost>
Component: Current packagesAssignee: Azamat H. Hackimov <azamat.hackimov>
Status: RESOLVED UPSTREAM    
Severity: normal CC: azamat.hackimov, conikost, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/Mbed-TLS/mbedtls/issues/228
Whiteboard:
Package list:
Runtime testing required: ---

Description Conrad Kostecki gentoo-dev 2024-01-14 18:25:57 UTC
Would it possible to ship a pkgconfig .pc file with mbedtls? There is an upstream issue about that, but unfortunately for a longer time no progress.

But there is a fresh PR: https://github.com/Mbed-TLS/mbedtls/pull/8691
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-14 18:28:18 UTC
Adding downstream .pc files is a controversial topic because it makes Gentoo "weird" if someone develops software on Gentoo and then finds it doesn't work on other distros...
Comment 2 Conrad Kostecki gentoo-dev 2024-01-14 18:35:11 UTC
(In reply to Sam James from comment #1)
> Adding downstream .pc files is a controversial topic because it makes Gentoo
> "weird" if someone develops software on Gentoo and then finds it doesn't
> work on other distros...

Funnily, there is already software outside of Gentoo, which searches for pkgconfig files of mbedtls.
Comment 3 Azamat H. Hackimov 2024-01-14 22:57:20 UTC
I would wait for changes in the upstream. Implementing Gentoo-specific solutions may cause compatibility issues.

Most of the projects I've checked either use the cmake subproject or try to use their own implementations of the FindMbed.cmake module.

The upstream implementation of the cmake project is also quite specific, and I plan to make a few changes in upstream to make the installation of the package more consistent.
Comment 4 Conrad Kostecki gentoo-dev 2024-01-14 23:27:59 UTC
Thanks!