[fpc-pascal] releasing commercial components as PPU files

Florian Klämpfl florian at freepascal.org
Mon Oct 22 19:32:56 CEST 2012


Am 22.10.2012 15:36, schrieb michael.vancanneyt at wisa.be:
>>
>> That's why I'm saying only official FPC releases will be supported in
>> the PPU versions of my components. If they want to use FPC 2.6.x (fixes
>> branch) or FPC 2.7.1, then they must buy the source code version of my
>> components.
> 
> Like I said, it may work. But I think you are in trouble as soon as
> someone uses e.g. lazarus.

The fpc 2.6.0 in lazarus has the same Crc as that one in fpc 2.6.0 (just
tested on a randomly selected unit):

c:\>ppudump
c:\entwicklung\lazarus\fpc\2.6.0\units\i386-win32\fcl-web\fphtml.ppu |
grep Crc
Uses unit: System (Crc: 6BD71D20, IntfcCrc: 3A58C34A, IndCrc: 615445DA)
Uses unit: objpas (Crc: 632812FE, IntfcCrc: 0387260E, IndCrc: 615445DA)
Uses unit: Classes (Crc: BB218490, IntfcCrc: 2DEF17D2, IndCrc: B22D8393)
Uses unit: sysutils (Crc: 8455ECEA, IntfcCrc: 76A43C16, IndCrc: F7DDC23E)
Uses unit: htmlelements (Crc: A4B12E1E, IntfcCrc: 56E40320, IndCrc:
751273A1)
Uses unit: htmlwriter (Crc: 6B16F859, IntfcCrc: 1A1CA7A8, IndCrc: FA677B0C)
Uses unit: HTTPDefs (Crc: A716ADEF, IntfcCrc: D213E99D, IndCrc: E368C51E)
Uses unit: fphttp (Crc: F26E2B11, IntfcCrc: 88D2B91B, IndCrc: 0E47BE25)
Uses unit: db (Crc: 3BC6D223, IntfcCrc: 240C7144, IndCrc: 4A0E76CE)
Uses unit: DOM (Crc: 7A25D014, IntfcCrc: FF8CE4B1, IndCrc: 70037A98)
Uses unit: contnrs (Crc: F0F5E296, IntfcCrc: 6A65580B, IndCrc: C305805A)
Uses unit: WebPage (Crc: 1F66A67B, IntfcCrc: 8851B3A5, IndCrc: 6B3F01C1)
Uses unit: XMLWrite (Crc: D83C16B0, IntfcCrc: FED2E472, IndCrc: C22EF90B)

c:\>ppudump c:\pp\units\i386-win32\fcl-web\fphtml.ppu | grep Crc
Uses unit: System (Crc: 6BD71D20, IntfcCrc: 3A58C34A, IndCrc: 615445DA)
Uses unit: objpas (Crc: 632812FE, IntfcCrc: 0387260E, IndCrc: 615445DA)
Uses unit: Classes (Crc: BB218490, IntfcCrc: 2DEF17D2, IndCrc: B22D8393)
Uses unit: sysutils (Crc: 8455ECEA, IntfcCrc: 76A43C16, IndCrc: F7DDC23E)
Uses unit: htmlelements (Crc: A4B12E1E, IntfcCrc: 56E40320, IndCrc:
751273A1)
Uses unit: htmlwriter (Crc: 6B16F859, IntfcCrc: 1A1CA7A8, IndCrc: FA677B0C)
Uses unit: HTTPDefs (Crc: A716ADEF, IntfcCrc: D213E99D, IndCrc: E368C51E)
Uses unit: fphttp (Crc: F26E2B11, IntfcCrc: 88D2B91B, IndCrc: 0E47BE25)
Uses unit: db (Crc: 3BC6D223, IntfcCrc: 240C7144, IndCrc: 4A0E76CE)
Uses unit: DOM (Crc: 7A25D014, IntfcCrc: FF8CE4B1, IndCrc: 70037A98)
Uses unit: contnrs (Crc: F0F5E296, IntfcCrc: 6A65580B, IndCrc: C305805A)
Uses unit: WebPage (Crc: 1F66A67B, IntfcCrc: 8851B3A5, IndCrc: 6B3F01C1)
Uses unit: XMLWrite (Crc: D83C16B0, IntfcCrc: FED2E472, IndCrc: C22EF90B)

So it should be no problem to use units built with units from fpc 2.6.0
with lazarus and the fpc 2.6.0 supplied by lazarus. If no sources are
found, the only thing which counts are the CRCs.

-Ur has nothing to do with the CRCs, -Ur avoids only the check if newer
sources are available.



More information about the fpc-pascal mailing list