Om man fotograferar i RAW format och vill konvertera sin bilder till .jpg eller dylikt mha Linux så använder man i regel följande program: http://www.cybercom.net/~dcoffin/dcraw/ (alternativt ngt annat program vars kod är baserad på dcraw)
Hur som helst, jag kollade just source koden till dcraw och längst upp står det följande:
Attention! Some parts of this program are restricted under the terms of the GNU General Public License. Such code is enclosed in "BEGIN GPL BLOCK" and "END GPL BLOCK" declarations. Any code not declared GPL is free for all uses.
Jag undrar.. kan man verkligen göra såhär? Alltså ta snippets av GPL kod och klippa in i sin source (som ej totalt sett är GPL licensierad)??
Någon som kan klargöra?
mvh martin
Martin Olsson wrote:
Jag undrar.. kan man verkligen göra såhär? Alltså ta snippets av GPL kod och klippa in i sin source (som ej totalt sett är GPL licensierad)??
Det kan du göra, exempelvis i dcraw där resten av koden är att betrakta som public domain, men det blir då givetvis GPLen som gäller när programvaran distribueras som en helhet.
Jag kan tänka mig att utvecklaren valt att specifikt identifiera de GPLade bitarna för att göra det möjligt för utomstående att på ett enklare sätt kunna plocka ut endast de delar som är under public domain.
Det här faller under §2 i GPL:
"These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works."