On Sat, 5 Jan 2013 11:25:23 +0200 Juha Manninen <[email protected]> wrote:
> On Sat, Jan 5, 2013 at 3:13 AM, Mattias Gaertner > <[email protected]> wrote: > > Codetools do not care if a file is reachable multiple times. fpc > > does, because of its ppu files. > > Make sure both packages do not share any source directory. > > They share the source directory but not any source files. Are you sure? The error indicates that they share unit GR32_Blend. > The package .lpk files are in "Packages" directory below the source directory. > I thought it is allowed. Is it not? You can put the lpk where ever you want. > > What exactly is the bug? > > If the rule is against sharing source directories between packages, > then it is a feature, not a bug. > I am still wondering why such rule is needed. First of all: The rule is only a recommendation, it is not forced by the IDE. There are cases where it makes sense to share a directory (e.g. historical reasons, other build systems). The IDE should detect such things and warn. Two packages are compiled with different sets of options, so fpc might recompile the shared unit, which means all depending units must be recompiled as well, creating a logical circle. If you can not split the sources of the two lpk and both lpk should always be compiled exactly the same, then it is probably easier to merge the two lpk into one. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
