Re: [dwm] sic ipv6 patch

2008-05-19 Thread Tobias Ulmer
On Mon, May 19, 2008 at 07:57:43PM +0200, Enno Gottox Boland wrote:
> > Define abuse? According to MIT/BSD, using the code in closed source
> >  products is not abuse, it's simply use. Since that does not in any way
> >  affect the freedom of the original MIT/BSD licensed code, it shouldn't
> >  be a problem. Unless, of course, you want to restrict the users of
> >  your code in what they can and can't do with it. If you want that,
> >  fine, that's your choice, but please don't try to sell it as
> >  "freedom", since that's simply not what it is.
> 
> Right. I like the GPL more than MIT, but I think giving others the
> ability to change something without releasing its source is not abuse.
> If I use MIT for a license, I have to accept that people will change
> the license.

Only the copyright holder can change the license, ever. Plus, if you're
concerned about the future, once you got something under a certain
license, it will stay there forever, no matter what the copyright holder
does.

>There is not only the GPL meaning of freedom.
> 
> 
> -- 
> http://www.gnuffy.org - Real Community Distro
> http://www.gnuffy.org/index.php/GnuEm - Gnuffy on Ipaq (Codename Peggy)
> 
> 



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Enno "Gottox" Boland
> Define abuse? According to MIT/BSD, using the code in closed source
>  products is not abuse, it's simply use. Since that does not in any way
>  affect the freedom of the original MIT/BSD licensed code, it shouldn't
>  be a problem. Unless, of course, you want to restrict the users of
>  your code in what they can and can't do with it. If you want that,
>  fine, that's your choice, but please don't try to sell it as
>  "freedom", since that's simply not what it is.

Right. I like the GPL more than MIT, but I think giving others the
ability to change something without releasing its source is not abuse.
If I use MIT for a license, I have to accept that people will change
the license. There is not only the GPL meaning of freedom.


-- 
http://www.gnuffy.org - Real Community Distro
http://www.gnuffy.org/index.php/GnuEm - Gnuffy on Ipaq (Codename Peggy)



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Sander van Dijk
On Mon, May 19, 2008 at 5:17 PM, Sylvain Bertrand
<[EMAIL PROTECTED]> wrote:
> Freedom which does not defend itself *will* be abused again and again,

Define abuse? According to MIT/BSD, using the code in closed source
products is not abuse, it's simply use. Since that does not in any way
affect the freedom of the original MIT/BSD licensed code, it shouldn't
be a problem. Unless, of course, you want to restrict the users of
your code in what they can and can't do with it. If you want that,
fine, that's your choice, but please don't try to sell it as
"freedom", since that's simply not what it is.

Greetings, Sander.



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Matthias Kirschner
Hello Anshelm,

* Anselm R. Garbe <[EMAIL PROTECTED]> [2008-05-19 16:33:36 +0200]:

> My licensing reasons are rather pragmatic, the reasons why I
> don't use the GPL* are:
> 
> 1) I don't understand it completely and in any detail. So I
> stick to MIT that I know and understand any impact of it.

If you (like everybody else) have problems understanding GPL feel free
to contact FSFE's FTF:
http://www.fsfeurope.org/projects/ftf/index.en.html or ask your
questions on [EMAIL PROTECTED]

> 2) To be honest, I think that license violations in commercial
> products who might use GPLed code are hard to proof if they are
> done properly, so I believe that the GPL doesn't protect you
> that much in the real world from license violation. It's a
> different story in theory of course.

Yes, it is difficult, but certainly it is possible. Even in practice :)

(That makes me think of: "In theory, there is no difference between
theory and practice; In practice, there is." (Chuck Reid))

Beside that gpl-violations.org and FSFE's FTF have good technical
experts who can analyse GPL violations. And they get _a lot_ of
information about possible violations.

Best wishes,
Matthias

-- 
Deputy  German Coordinator, Fellowship Coordinator
Free Software Foundation Europe (FSFE) [] (http://fsfeurope.org)
Join the Fellowship of FSFE! [][][]   (http://fsfe.org/join)
Your donation powers our work! ||  (http://fsfeurope.org/donate)



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Anselm R. Garbe
On Mon, May 19, 2008 at 05:17:18PM +0200, Sylvain Bertrand wrote:
> On Mon, May 19, 2008 at 4:52 PM, hiro <[EMAIL PROTECTED]> wrote:
> >> use single GPL licensed software, use Linux and secure your digital 
> >> freedom!
> >
> > You think this is freedom?
> 
> Freedom which does not defend itself *will* be abused again and again,
> and after 15 years of software engineering, I said "it's over". You
> care and want to be able to legally do something, GPL. You do not care
> and don't want to legally be able to do something, BSD like/MIT
> (Anselm choice). It's a matter of personal choice. Mine is GPL.
> Usually students or people with a golden professional experience do
> not understand "why the GPL". After being screwed several times,
> coders usually do.
> The only piece of freedom which is removed from the GPL is the piece
> of freedom which allows to remove its freedom... For a consistent GPL
> whole, you cannot close the code.
> I'll stop here, since it's a dangerous path for this mailing list.
> A more appropriate subject would be "how to fight against bloat in the
> software stack?", don't you think?

Maybe I should consider writing my own license, which is
somewhat copy-left, very short and judges not to exceed a
certain complexity level in the software itself, otherwise it is
considered a license violation ;) For example, the 2000 LOC
license ;)

Kind regards,
-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Sylvain Bertrand
On Mon, May 19, 2008 at 4:52 PM, hiro <[EMAIL PROTECTED]> wrote:
>> use single GPL licensed software, use Linux and secure your digital freedom!
>
> You think this is freedom?

Freedom which does not defend itself *will* be abused again and again,
and after 15 years of software engineering, I said "it's over". You
care and want to be able to legally do something, GPL. You do not care
and don't want to legally be able to do something, BSD like/MIT
(Anselm choice). It's a matter of personal choice. Mine is GPL.
Usually students or people with a golden professional experience do
not understand "why the GPL". After being screwed several times,
coders usually do.
The only piece of freedom which is removed from the GPL is the piece
of freedom which allows to remove its freedom... For a consistent GPL
whole, you cannot close the code.
I'll stop here, since it's a dangerous path for this mailing list.
A more appropriate subject would be "how to fight against bloat in the
software stack?", don't you think?

-- 
use single GPL licensed software, use Linux and secure your digital freedom!



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Anselm R. Garbe
On Mon, May 19, 2008 at 10:49:37AM -0400, hiro wrote:
> Why don't you just use the beerware license? It's really easy to
> understand. And you will get a lot more out of it.

I should consider dual-licensing it with the beer license ;)

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361



Re: [dwm] sic ipv6 patch

2008-05-19 Thread hiro
> use single GPL licensed software, use Linux and secure your digital freedom!

You think this is freedom?



Re: [dwm] sic ipv6 patch

2008-05-19 Thread hiro
Why don't you just use the beerware license? It's really easy to
understand. And you will get a lot more out of it.



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Anselm R. Garbe
On Mon, May 19, 2008 at 04:02:51PM +0200, Sylvain Bertrand wrote:
> On Mon, May 19, 2008 at 1:58 PM, Anselm R. Garbe <[EMAIL PROTECTED]> wrote:
> > Hi Sylvain,
> >
> > any chance to let us agree on the MIT license for the IPv6 bits?
> 
> Ok, make it all MIT ( 10 lines... :) ), but you should really consider
> GPLv3 instead of MIT, just because we don't live in a perfect world...
> really...

Thank you!

My licensing reasons are rather pragmatic, the reasons why I
don't use the GPL* are:

1) I don't understand it completely and in any detail. So I
stick to MIT that I know and understand any impact of it.

2) To be honest, I think that license violations in commercial
products who might use GPLed code are hard to proof if they are
done properly, so I believe that the GPL doesn't protect you
that much in the real world from license violation. It's a
different story in theory of course.

Kind regards,
-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Sylvain Bertrand
On Mon, May 19, 2008 at 1:58 PM, Anselm R. Garbe <[EMAIL PROTECTED]> wrote:
> Hi Sylvain,
>
> any chance to let us agree on the MIT license for the IPv6 bits?

Ok, make it all MIT ( 10 lines... :) ), but you should really consider
GPLv3 instead of MIT, just because we don't live in a perfect world...
really...

Kind regards,

   Sylvain

>
> Kind regards,
> Anselm
>
> On Mon, May 19, 2008 at 01:51:18PM +0200, Sylvain Bertrand wrote:
>> diff -u sic-0.9/LICENSE sic-0.9-ipv6/LICENSE
>> --- sic-0.9/LICENSE 2007-02-13 17:02:16.0 +0100
>> +++ sic-0.9-ipv6/LICENSE2008-05-19 13:32:09.0 +0200
>> @@ -1,6 +1,6 @@
>>  MIT/X Consortium License
>>
>> -(C)opyright MMV-MMVI Anselm R. Garbe <[EMAIL PROTECTED]>
>> +(C)opyright MMV-MMVIII Anselm R. Garbe <[EMAIL PROTECTED]>
>>  (C)opyright MMV Nico Golde 
>>
>>  Permission is hereby granted, free of charge, to any person obtaining a
>> @@ -20,3 +20,8 @@
>>  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
>>  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
>>  DEALINGS IN THE SOFTWARE.
>> +
>> +
>> +
>> +IPv6 code is protected by the GPLv3
>> +(C)opyright MMVIII Sylvain BERTRAND 
>> diff -u sic-0.9/sic.c sic-0.9-ipv6/sic.c
>> --- sic-0.9/sic.c   2008-03-20 12:26:29.0 +0100
>> +++ sic-0.9-ipv6/sic.c  2008-05-19 13:34:16.0 +0200
>> @@ -1,5 +1,6 @@
>>  /* (C)opyright MMV-MMVI Anselm R. Garbe 
>>   * (C)opyright MMV-MMVI Nico Golde 
>> + * (C)opyright MMVIII Sylvain BERTRAND 
>>   * See LICENSE file for license details.
>>   */
>>  #include 
>> @@ -17,8 +18,8 @@
>>  #define PINGTIMEOUT 1000
>>  #define MAXMSG 4096
>>
>> -static char *host = "irc.freenode.net";
>> -static unsigned short port = 6667;
>> +static char *host = "ipv6.chat.eu.freenode.net";
>> +static char *port = "6667";
>>  static char *password = NULL;
>>  static char nick[32];
>>
>> @@ -154,10 +155,9 @@
>>  main(int argc, char *argv[]) {
>> int i;
>> struct timeval tv;
>> -   struct hostent *hp;
>> -   static struct sockaddr_in addr;  /* initially filled with 0's */
>> char ping[256];
>> fd_set rd;
>> +   struct addrinfo hints,*results,*rp;
>>
>> strncpy(nick, getenv("USER"), sizeof nick);
>> for(i = 1; i < argc; i++)
>> @@ -165,7 +165,7 @@
>> if(++i < argc) host = argv[i];
>> }
>> else if(!strncmp(argv[i], "-p", 3)) {
>> -   if(++i < argc) port = (unsigned short)atoi(argv[i]);
>> +   if(++i < argc) port = argv[i];
>> }
>> else if(!strncmp(argv[i], "-n", 3)) {
>> if(++i < argc) strncpy(nick, argv[i], sizeof nick);
>> @@ -174,22 +174,24 @@
>> if(++i < argc) password = argv[i];
>> }
>> else if(!strncmp(argv[i], "-v", 3))
>> -   eprint("sic-"VERSION", (C)opyright MMVI Anselm
>> R. Garbe\n");
>> +   eprint("sic-"VERSION", (C)opyright MMV-MMVIII
>> Anselm R. Garbe and others\n");
>> else
>> eprint("usage: sic [-h host] [-p port] [-n
>> nick] [-k keyword] [-v]\n");
>>
>> /* init */
>> -   if((srv = socket(AF_INET, SOCK_STREAM, 0)) < 0)
>> -   eprint("sic: cannot connect host '%s'\n", host);
>> -   if(NULL == (hp = gethostbyname(host)))
>> -   eprint("sic: cannot resolve hostname '%s'\n", host);
>> -   addr.sin_family = AF_INET;
>> -   addr.sin_port = htons(port);
>> -   memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
>> -   if(connect(srv, (struct sockaddr *) &addr, sizeof(struct
>> sockaddr_in))) {
>> +   memset(&hints,0,sizeof(hints));
>> +   hints.ai_family=AF_INET6;
>> +   hints.ai_socktype=SOCK_STREAM;
>> +   if(getaddrinfo(host,port,&hints,&results)!=0)
>> +   eprint("sic: cannot resolve hostname '%s'\n",host);
>> +   for(rp=results;rp!=NULL;rp=rp->ai_next){
>> +
>> if((srv=socket(rp->ai_family,rp->ai_socktype,rp->ai_protocol))<0)
>> continue;
>> +   if(connect(srv,rp->ai_addr,rp->ai_addrlen)!=-1) break;
>> close(srv);
>> -   eprint("sic: cannot connect host '%s'\n", host);
>> }
>> +   if(!rp) eprint("sic: unable to connect to '%s:%s'\n",host,port);
>> +   freeaddrinfo(results);
>> +
>> /* login */
>> if(password)
>> snprintf(bufout, sizeof bufout,
>>
>
> --
>  Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
>
>



-- 
use single GPL licensed software, use Linux and secure your digital freedom!



Re: [dwm] sic ipv6 patch

2008-05-19 Thread Anselm R. Garbe
Hi Sylvain,

any chance to let us agree on the MIT license for the IPv6 bits?

Kind regards,
 Anselm

On Mon, May 19, 2008 at 01:51:18PM +0200, Sylvain Bertrand wrote:
> diff -u sic-0.9/LICENSE sic-0.9-ipv6/LICENSE
> --- sic-0.9/LICENSE 2007-02-13 17:02:16.0 +0100
> +++ sic-0.9-ipv6/LICENSE2008-05-19 13:32:09.0 +0200
> @@ -1,6 +1,6 @@
>  MIT/X Consortium License
> 
> -(C)opyright MMV-MMVI Anselm R. Garbe <[EMAIL PROTECTED]>
> +(C)opyright MMV-MMVIII Anselm R. Garbe <[EMAIL PROTECTED]>
>  (C)opyright MMV Nico Golde 
> 
>  Permission is hereby granted, free of charge, to any person obtaining a
> @@ -20,3 +20,8 @@
>  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
>  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
>  DEALINGS IN THE SOFTWARE.
> +
> +
> +
> +IPv6 code is protected by the GPLv3
> +(C)opyright MMVIII Sylvain BERTRAND 
> diff -u sic-0.9/sic.c sic-0.9-ipv6/sic.c
> --- sic-0.9/sic.c   2008-03-20 12:26:29.0 +0100
> +++ sic-0.9-ipv6/sic.c  2008-05-19 13:34:16.0 +0200
> @@ -1,5 +1,6 @@
>  /* (C)opyright MMV-MMVI Anselm R. Garbe 
>   * (C)opyright MMV-MMVI Nico Golde 
> + * (C)opyright MMVIII Sylvain BERTRAND 
>   * See LICENSE file for license details.
>   */
>  #include 
> @@ -17,8 +18,8 @@
>  #define PINGTIMEOUT 1000
>  #define MAXMSG 4096
> 
> -static char *host = "irc.freenode.net";
> -static unsigned short port = 6667;
> +static char *host = "ipv6.chat.eu.freenode.net";
> +static char *port = "6667";
>  static char *password = NULL;
>  static char nick[32];
> 
> @@ -154,10 +155,9 @@
>  main(int argc, char *argv[]) {
> int i;
> struct timeval tv;
> -   struct hostent *hp;
> -   static struct sockaddr_in addr;  /* initially filled with 0's */
> char ping[256];
> fd_set rd;
> +   struct addrinfo hints,*results,*rp;
> 
> strncpy(nick, getenv("USER"), sizeof nick);
> for(i = 1; i < argc; i++)
> @@ -165,7 +165,7 @@
> if(++i < argc) host = argv[i];
> }
> else if(!strncmp(argv[i], "-p", 3)) {
> -   if(++i < argc) port = (unsigned short)atoi(argv[i]);
> +   if(++i < argc) port = argv[i];
> }
> else if(!strncmp(argv[i], "-n", 3)) {
> if(++i < argc) strncpy(nick, argv[i], sizeof nick);
> @@ -174,22 +174,24 @@
> if(++i < argc) password = argv[i];
> }
> else if(!strncmp(argv[i], "-v", 3))
> -   eprint("sic-"VERSION", (C)opyright MMVI Anselm
> R. Garbe\n");
> +   eprint("sic-"VERSION", (C)opyright MMV-MMVIII
> Anselm R. Garbe and others\n");
> else
> eprint("usage: sic [-h host] [-p port] [-n
> nick] [-k keyword] [-v]\n");
> 
> /* init */
> -   if((srv = socket(AF_INET, SOCK_STREAM, 0)) < 0)
> -   eprint("sic: cannot connect host '%s'\n", host);
> -   if(NULL == (hp = gethostbyname(host)))
> -   eprint("sic: cannot resolve hostname '%s'\n", host);
> -   addr.sin_family = AF_INET;
> -   addr.sin_port = htons(port);
> -   memcpy(&addr.sin_addr, hp->h_addr, hp->h_length);
> -   if(connect(srv, (struct sockaddr *) &addr, sizeof(struct
> sockaddr_in))) {
> +   memset(&hints,0,sizeof(hints));
> +   hints.ai_family=AF_INET6;
> +   hints.ai_socktype=SOCK_STREAM;
> +   if(getaddrinfo(host,port,&hints,&results)!=0)
> +   eprint("sic: cannot resolve hostname '%s'\n",host);
> +   for(rp=results;rp!=NULL;rp=rp->ai_next){
> +
> if((srv=socket(rp->ai_family,rp->ai_socktype,rp->ai_protocol))<0)
> continue;
> +   if(connect(srv,rp->ai_addr,rp->ai_addrlen)!=-1) break;
> close(srv);
> -   eprint("sic: cannot connect host '%s'\n", host);
> }
> +   if(!rp) eprint("sic: unable to connect to '%s:%s'\n",host,port);
> +   freeaddrinfo(results);
> +
> /* login */
> if(password)
> snprintf(bufout, sizeof bufout,
> 

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361