possible readline license problem with ghc and -package util
11 Jun 2002 16:03:14 +0200
Content-Type: text/plain; charset=ISO-8859-1
I have a problem with the readline license that applies to ghc, and
programs compiled with ghc.
The readline library is under the GPL license. This means that any
program (including ghc) that links with this library must itself be
licensed under the GPL.
This is very unfortunate. I would suspect that this only applies if you
actually use the Readline module, so I can just avoid that.
However, using -package lang (to get the GetOpt module) links with
-lreadline even though it's not necessary. So the resulting binary is
dynamically linked with libreadline. My meaning is that this is not a
license violation of readline, but I am no lawyer, and I recall Richard
Stallman of the FSF says differently.
Linking statically with -lreadline may be a solution, since the linker
is smart and removes unused code in statically linked libraries. If only
I could be sure that that's the fact.
I think most ghc users have better things to do than to track licenses
of libraries that ghc links your program to, so I suggest that the
Readline module is either removed or moved to a separate package, so
that there is no doubt that it's not linked in.
Another question is what to do with ghc, ghc uses readline and is not
licensed under the GPL. A possible GPL violation, at least it would be
according to Richard Stallman.
Martin Norb=E4ck Safelogic AB
email@example.com Stena Center 1C
+46 (0)31 772 81 70 S-412 92 G=D6TEBORG
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: För information se http://www.gnupg.org/
-----END PGP SIGNATURE-----