Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl modules and the GPL

by Corion (Pope)
on Feb 01, 2010 at 21:06 UTC ( #820843=note: print w/replies, xml ) Need Help??

in reply to Perl modules and the GPL

As far as I understand it, the GPL only governs distribution. As the GPL is implemented via copyright and the concept of a "derived work", and use of an API is not a "derived work", the interpreter gap that Perl creates insulates your code while using a GPLed library. Any XS wrapper (statically) linking to a GPLed library gets infected by the GPL, but that's where the infection ends. If you want to play it really safe, you can write a second implementation to the same API, like Term::ReadLine::Perl is for Term::ReadLine.

Replies are listed 'Best First'.
Re^2: Perl modules and the GPL
by zwon (Abbot) on Feb 01, 2010 at 21:56 UTC
    Any XS wrapper (statically) linking to a GPLed library

    As far as I understand dynamic linking of GPL libraries with proprietary programs are not allowed either. There was a famous email conversation between RMS and Bruno Haible where they discussed this question.

      There is no fact, mere "discussions with a lawyer" regarding dynamic linking, and I don't see the linking that Perl does (dynamically loading object code) as "creating a derivative work" in the same sense that linking to a C header creates a "derivative work", because to use the API from Perl does not involve the C headers.

      Building the XS component involves the C headers and thus makes the XS component a derivative work, but that cannot infect the Perl program, no matter how much RMS wants this to.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://820843]
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail
[shmem]: use parens to group expressions
[shmem]: you can't use next in a statement modifier

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-05-20 18:42 GMT
Find Nodes?
    Voting Booth?