Closed
Description
(Imported from Trac #170, reported by @dcoutts on 2007-11-05)
From HsOpenSSL.cabal
--PkgConfig-Depends: openssl >= 0.9.7l -- We really should use this instead of the configure -- script but Cabal 1.2.2.0 can't handle the weird version -- scheme of OpenSSL.For example:
$ pkg-config --modversion openssl 0.9.8fCurrently Cabal tries to map pkg-config versions to the standard Version type which only allows for a sequence of numbers.
pkg-config uses just strings to represent package versions. It uses code lifted from rpm to compare version strings. See the compare_versions function in pkg-gconfig-0.22/pkg.c from http://pkgconfig.freedesktop.org/releases/pkg-config-0.22.tar.gz