[Buildroot] [PATCH 05/12] package: implement a 'local' site method

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Mon Jul 25 08:42:36 UTC 2011


Hi Thomas,

On Mon, Jul 25, 2011 at 9:11 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Le Sun, 24 Jul 2011 16:50:50 +0200,
> Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :
>
>> Ok, I was indeed confusing the two.
>> If I understand correctly, the main difference is that the file method
>> expects an archive, and the local method expects a prepared source
>> tree.
>
> Right.
>
>> But this also means that you cannot properly use a 'local' package
>> from two buildroot installations, since the compilation process
>> happens in the local directory. Is that correct?
>
> Yes, this is unfortunately correct. The only other options would be :
>
>  * Do the build out-of-tree, but this is already been discussed in
>   another thread as being highly problematic for many packages ;
>
>  * Make a copy of the complete source tree. This is reasonable for
>   small projects, but for example, for something like the kernel, it
>   is largely unreasonable, and one of the packages for which the
>   "source override" mechanism is the most interesting is the kernel
>   package.
>
> Do you see any other option ?

I agree that copying the source tree is out of the question.

If the unionfs trick does indeed add a dependency to the host-kernel
configuration (which is undesirable in my opinion), then using a
per-package indication about whether it supports out-of-tree building
could be helpful. I mentioned it in the other thread.

For those packages that do not support it, too bad, compilation from
multiple buildroot installations wouldn't work. If someone requires
this, he'll have to make a copy of the local package himself, or make
sure the package's out-of-tree building gets supported.

Best regards,
Thomas


More information about the buildroot mailing list