Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a pkgconfig .pc file #228

Closed
rubenk opened this issue Jul 31, 2015 · 11 comments · Fixed by #8691
Closed

Please provide a pkgconfig .pc file #228

rubenk opened this issue Jul 31, 2015 · 11 comments · Fixed by #8691
Labels
component-platform Portability layer and build scripts enhancement help-wanted This issue is not being actively worked on, but PRs welcome. historical-reviewed Reviewed & agreed to keep legacy PR/issue

Comments

@rubenk
Copy link

rubenk commented Jul 31, 2015

This would make downstream's life a bit easier.

@mpg
Copy link
Contributor

mpg commented Aug 4, 2015

Please excuse my ignorance about pkgconfig and .pc file, but could you please give me a few pointers? Is that specific to one package manager, or can it be used by many of them? If it's specific to one, I'm not sure we want to include that in our distribution, otherwise we'll consider it.

@rubenk
Copy link
Author

rubenk commented Aug 4, 2015

Hi @mpg,

Any project that uses pkg-config (http://www.freedesktop.org/wiki/Software/pkg-config/) can use this file. The autotools have macros to use and create this file, I'm not sure about Cmake.

To give you one example, sqlite drops this file in /usr/lib64/pkgconfig/sqlite3.pc:

$ cat /usr/lib64/pkgconfig/sqlite3.pc 
# Package Information for pkg-config

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Name: SQLite
Description: SQL database engine
Version: 3.8.11
Libs: -L${libdir} -lsqlite3
Libs.private: -ldl -lpthread 
Cflags: -I${includedir}

And in powerdns we use the following macro to check if sqlite is installed, and pick up the CFLAGS and LDFLAGS we need:

PKG_CHECK_MODULES([SQLITE3], [sqlite3],
      [AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3])],
      [AC_MSG_ERROR([Could not find libsqlite3])]
    )

Non-autotools-based projects can also call pkg-config manually, for example:

$ pkg-config --libs sqlite3
-lsqlite3 

@mpg
Copy link
Contributor

mpg commented Aug 10, 2015

Thanks for the info! We'll look into it.

@lulcat
Copy link

lulcat commented Mar 6, 2016

Love this world... here people are writing to-end crypto but haven't heard of pkgconfig. What's next elephants will start dressing in pink panties, throwing tantrums and being general dramaqueens on the savannah? :)

@janekolszak
Copy link

+1

@simonbutcher simonbutcher added the help-wanted This issue is not being actively worked on, but PRs welcome. label Apr 18, 2016
@zengxs
Copy link

zengxs commented Mar 2, 2018

There is an article about how to generate a pkg-config file with cmake, that look like very easy.

@pravi pravi mentioned this issue May 26, 2018
4 tasks
@tiennou tiennou mentioned this issue Jun 19, 2018
4 tasks
gilles-peskine-arm pushed a commit to gilles-peskine-arm/mbedtls that referenced this issue Dec 18, 2018
@RonEld RonEld added the component-platform Portability layer and build scripts label Feb 14, 2019
@tom-daubney-arm tom-daubney-arm added historical-reviewing Currently reviewing (for legacy PR/issues) historical-reviewed Reviewed & agreed to keep legacy PR/issue and removed historical-reviewing Currently reviewing (for legacy PR/issues) labels Nov 18, 2022
@tom-daubney-arm
Copy link
Contributor

Closing this issue as it will not be worked on in the near future. If someone would like to provide a .pc file via PR then they are more than welcome to do so.

@Tachi107
Copy link
Contributor

Hi @tom-daubney-arm, could you please mark the issue as "not planned" instead of "completed"?

In any case, I think I'll look into this issue somewhat soon. Thanks for the ping :)

@tom-daubney-arm
Copy link
Contributor

Sure - have made the change. Feel free to file a PR.

@tom-daubney-arm tom-daubney-arm closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2022
@rzr
Copy link

rzr commented Jul 11, 2023

For the record let me cross link to related open ticket:

https://bugs.debian.org/900015

@billatarm
Copy link
Contributor

I have a PR incoming for this

billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 9, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

TODO:
  - Figure out how to pass VERSION into project or a better way to do
    this. This seems wrong.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 9, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

TODO:
  - Figure out how to pass VERSION into project or a better way to do
    this. This seems wrong.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 9, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

TODO:
  - Figure out how to pass VERSION into project or a better way to do
    this. This seems wrong.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 18, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 22, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 23, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 23, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Jan 24, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Feb 5, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
valeriosetti pushed a commit to valeriosetti/mbedtls that referenced this issue Feb 19, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Feb 20, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Feb 21, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Feb 23, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
billatarm added a commit to billatarm/mbedtls that referenced this issue Feb 23, 2024
Add three package config files for mbedtls, mbedcrypto and mbedx509.
Also update various project variables so the generated PC files have the
required data needed without hardcoding it everywhere.

This will help distros package the project following existing
conventsions between a normal and -devel package that includes the
headers and .pc files for pkg-config aware consumers.

This also squashes:
  - fff51ce ("Update ChangeLog.d/pkg-config-files-addition.txt")

Fixes: Mbed-TLS#228
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-platform Portability layer and build scripts enhancement help-wanted This issue is not being actively worked on, but PRs welcome. historical-reviewed Reviewed & agreed to keep legacy PR/issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.