Package: pkg-config
Version: 0.26-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

pkg-config exits with zero exit code if one tries to query a variable that
doesn't exist. Consider the following example:

  $ cat test.pc
  Name: test
  Description: test
  Version: 1

  $ pkg-config test.pc --variable=var; echo $?

  0
 
It would be nice if pkg-config could exit with a non-zero exit code if the
variable doesn't exist. This could also be done with an extra option to not
break anything depending on the current behavior.


This request is motiviated by the following snippet:

In debian/rules:

override_dh_gencontrol:
  echo "subst:var=var-$(shell pkg-config --variable=var pkg || echo '<error>')" 
>> debian/pkg.substvars
  dh_gencontrol

where ${subst:var} is used in Depends. If pkg-config failed with a non-zero exit
code, this would make dpkg-gencontrol fail since var-<error> is not a valid
package name.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (650, 'unstable'), (601, 'testing'), (600, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pkg-config depends on:
ii  libc6         2.13-27
ii  libglib2.0-0  2.30.2-6
ii  libpopt0      1.16-3

pkg-config recommends no packages.

pkg-config suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJPcEVJAAoJEGny/FFupxmToWEP/j1pZ0v8a7yy7Npp/EJ0HiU4
cAwejdrn07bLvicvbbaAcrWG5UJ+2m7sGRjxJSlONwx5xTJ7AlmD1CdwKAOnS6Yg
8toMNVqABD1OOeJZ1WJzyWOzx+8nMIHtSEupPOKAJa/g9gYgUTmx6dunULr8wZJF
TxDgIVokLN5ETqQreCf3NlQ2A81MzL+ISF2YlKPqAFCl/yiLDpNFkFZdexS+8wA4
RDKL2LL35hZxrZ7DCt1PVjORbVcNDZW4yEWXnMj78OjurG48yWgdVQDMM/MUH/Pa
KeR0ey6GyIIJZAyW9rlTnUJP49OsPJB/CF4a5/KFtby0B/oRYd4u6Khf4cZkkoaf
cqKdRAC3MwT+mIuzjGIpkoP1DbrAiDjA6NRhhysyIskP19H5mRgnZU69klilLlwZ
BYT1ssRy7V/Qcj4ISttkwXhhC1FT/3bko3z/jEsCBTcJJt5V/78up6A5+qBf8+AQ
nx6lppggF/4apsTuP/MEqmaW3mhsLjpB0b2KpILNsTq0ABN116cjaaSBeOJpTtk/
kgFLED2MZpAiuDn7VtrUeMGiZDYV1vONy9kNwdNGTwwsTTF+lm/4F78wRkC7Zsxn
aeiefaMyUteFmIqQ4DEaKcZT5E74UoG0+kPtoLQ6s9Oi2sh+Sb76wGrGr6RILKjI
PpZNrywQRkkx9BKwP6fS
=A+2Y
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to