3 ms·
gzip is GPL but zlib is not. However since zlib's license is GPL-compatible it's just fine to e.g. vendor zlib inside gzip. That does not make it gzip code, th
by masklinn 6y ago
gzip is GPL but zlib is not. However since zlib's license is GPL-compatible it's just fine to e.g. vendor zlib inside gzip.
That does not make it gzip code, the zlib code is not relicensed and it keeps its original license.
Furthermore, both gzip and DrMario64 having merged in zlib's code does not give gzip any claim upon DrMario64.
- gfodor 6y agoThat wasn't my question, my question was if the posted code is from gzip or zlib. It looks like it's probably zlib.
- masklinn 6y ago> That wasn't my question But it's the answer. > my question was if the posted code is from gzip or zlib. It looks like it's probably zlib. It's zlib code living inside gzip, so it's not an either / or question.
- gfodor 6y agoThe question I am asking is the code posted "zlib code living inside of gzip" or "gzip code that has nothing to do with zlib." The decompression code posted may be in gzip proper, but probably not. I haven't seen anyone post the zlib source in this thread proving so. edit: I see you've answered this in another thread. Thanks.
- duckerude 6y agoDoes gzip actually use zlib? zlib's implementation (https://github.com/madler/zlib/blob/v1.1.3/inflate.c https://github.com/madler/zlib/blob/v1.1.3/inflate.c) looks different at first glance, gzip predates it by three years, and I believe gzip is also noticeably slower.
- masklinn 6y ago> Does gzip actually use zlib? If you go and download gzip 1.2.4a (the version mentioned) and open it, the first two lines state: /* inflate.c -- Not copyrighted 1992 by Mark Adler version c10p1, 10 January 1993 */ Note that the file you link to is copyrighted (rather than not-copyrighted) 1995-1998. Now maybe saying that it's zlib's is inexact because zlib did not actually exist at the time, but that doesn't really make a difference, it's basically the code to what would eventually become zlib, by zlib's author, under a hyper-permissive license.
- duckerude 6y agoSaying it's zlib's did confuse me. But I think I understand now, thank you.