Bug#657789: (no subject)

Julian Taylor jtaylor.debian at googlemail.com
Sat Feb 18 23:31:06 UTC 2012


the patch in that upstream bug is bogus, it will fail on all arches
except amd64.
It should not be applied in debian in that way.

The canonical way to solve this problem (if you don't want to use
pkg-config) is to try to compile and link to figure out if the library
is usable.
e.g.
c = distutils.ccompiler.new_compiler()
c.has_function("lzo_version_date", libraries=("lzo2",)
(this is similar to AC_TRY_COMPILE in autotools)

the debian can also just disable the check as the package should know
exactly what is available during the build and runtime.
You will want to to fail when something goes wrong with the dependencies
and not hide the failure in some log message.

the LDFLAGS setting is not necessary, the toolchain is aware of the
multiarch paths already.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20120219/950e25e1/attachment-0001.pgp>


More information about the debian-science-maintainers mailing list