#1006686 libchipcard-dev: undefined variable in libchipcard-client.pc

Package:
libchipcard-dev
Source:
libchipcard
Description:
API for smartcard readers
Submitter:
Michael Klein
Date:
2022-03-02 19:54:03 UTC
Severity:
normal
Tags:
#1006686#5
Date:
2022-03-02 12:12:05 UTC
From:
To:
Dear Maintainer,

the pkg-config file libchipcard-client.pc is not usable as-is:

$ pkg-config libchipcard-client --cflags
Variable 'datadir' not defined in '/usr/lib/x86_64-linux-gnu/pkgconfig/libchipcard-client.pc'

pkgdatadir is defined before datadir, but depends on the latter:

$ pkg-config --debug libchipcard-client --cflags
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libchipcard-client'
Looking for package 'libchipcard-client-uninstalled'
Reading 'libchipcard-client' from file '/usr/lib/x86_64-linux-gnu/pkgconfig/libchipcard-client.pc'
Parsing package file '/usr/lib/x86_64-linux-gnu/pkgconfig/libchipcard-client.pc'
  line>
  line>
  line>
  line>
  line>prefix=/usr
 Variable declaration, 'prefix' has value '/usr'
  line>exec_prefix=${prefix}
 Variable declaration, 'exec_prefix' has value '/usr'
  line>libdir=${prefix}/lib/x86_64-linux-gnu
 Variable declaration, 'libdir' has value '/usr/lib/x86_64-linux-gnu'
  line>includedir=${prefix}/include
 Variable declaration, 'includedir' has value '/usr/include'
  line>pkgdatadir=${datadir}/chipcard
Variable 'datadir' not defined in '/usr/lib/x86_64-linux-gnu/pkgconfig/libchipcard-client.pc'

#1006686#10
Date:
2022-03-02 12:30:55 UTC
From:
To:
Dear Maintainer,

this fixes it.

#1006686#15
Date:
2022-03-02 19:50:56 UTC
From:
To:
Hi Michael,

thank you for reporting the issue to the Debian bug tracker. Assuming
your consent to distributing your patch under the LGPL v2.1 license, I
dared to commit it to the upstream Git repository, which you can find here:

https://www.aquamaniac.de/rdm/projects/libchipcard/repository/revisions/61eb11ada0cb5f9b16a7cb519f4165a4876ba636/diff/libchipcard-client.pc.in

The file libchipcard-server.pc.in, which you also modified in your
patch, doesn't exist anymore.

Thank you to your contribution to Debian and Libchipcard.

Kind regards,
Micha

Am 02.03.22 um 13:30 schrieb Michael Klein: