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

[package] <glib> Generated pkg-conf file contains invalid content #12890

Closed
planetmarshall opened this issue Sep 10, 2022 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@planetmarshall
Copy link
Contributor

Package and Environment Details

  • Package Name/Version: glib/2.73.0
  • Conan version: conan 1.52.0

Conan profile

No response

Steps to reproduce

Create the following conanfile.txt

[requires]
glib/2.73.3

[generators]
PkgConfigDeps

Run

conan install .

The generated gio-2.0/pc file contains the following content

prefix=C:/.conan/85edc9/1
libdir1=${prefix}/lib
includedir1=${prefix}/include
# Custom PC content
datadir=${prefix}/res
schemasdir=${datadir}/glib-2.0/schemas
bindir=${prefix}/bin
giomoduledir=${libdir}/gio/modules
gio=${bindir}/gio
gio_querymodules=${bindir}/gio-querymodules
glib_compile_schemas=${bindir}/glib-compile-schemas
glib_compile_resources=${bindir}/glib-compile-resources
gdbus=${bindir}/gdbus
gdbus_codegen=${bindir}/gdbus-codegen
gresource=${bindir}/gresource
gsettings=${bindir}/gsettings

Name: gio-2.0
Description: Conan component: glib-gio-2.0
Version: 2.73.3
Libs: -L"${libdir1}" -lgio-2.0 -liphlpapi -ldnsapi -lshlwapi
Cflags: -I"${includedir1}"
Requires: glib-2.0 gobject-2.0 gmodule-2.0 zlib

The libdir variable - required by giomoduledir is undefined (libdir1 is defined instead)

Logs

No response

@planetmarshall planetmarshall added the bug Something isn't working label Sep 10, 2022
@SpaceIm
Copy link
Contributor

SpaceIm commented Sep 10, 2022

Indeed, #12221 fixes this issue (but CI fails on macOS for other reasons, so PR is still pending).
There is an explanation in #12221 (comment)

@jwillikers
Copy link
Contributor

@planetmarshall I believe this has been fixed in #13645.

@prince-chrismc
Copy link
Contributor

Closed since the mentioned PR went it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants