Skip to content

pkg-config uses a more general version scheme #163

Closed
@bos

Description

@bos

(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.8f
Currently 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions