[oe] [RFC] package complete ${datadir} ${libdir} by default

Leon Woestenberg leon.woestenberg at gmail.com
Fri Oct 23 09:24:27 UTC 2009


Hello Otavio,

2009/10/23 Otavio Salvador <otavio at ossystems.com.br>:
> On Thu, Oct 22, 2009 at 5:19 PM, Marcin Juszkiewicz
> <marcin at juszkiewicz.com.pl> wrote:
>> Dnia czwartek, 22 października 2009 o 21:08:27 Leon Woestenberg napisał(a):
>>> Why does FILES_${PN} have ${PN} after ${datadir} and ${libdir}?
>>>
>>> I would propose to just package ${datadir} and ${libdir} as-is.
>>> Or am I overlooking something?
>>
>> PACKAGES = "PN-dbg PN PN-doc PN-dev PN-locale"
>>
>> With your suggestion PN-doc and PN-locale starts to be useless as PN will get
>> /usr/share/{doc,man,info}/ which are part of PN-doc and /usr/share/locale/
>> which is packaged to PN-locale.
>
> Even more; it can "hide" contents inside of the package without
> further noticing.
>
We have always suffered from this and still do in some recipes.

Changing {libdir}/${PN} to {libdir} will not change that.

I think the default assumption, that after -doc -locale, -dbg and
-dev, all files that are installed should end up in the main package.

My proposal is to ignore the recipe name (PN) during the packaging of
{libdir} and {datadir} by default, so that alternative recipes
(i.e. our approach to the USE flags) do not require special handling.

> IMO everything that is not _standard_ ought to be explicited add.
>
Correct. I just proposed to default to the {libdir} and {datadir} that
the package wants to install.

Regards,

-- 
Leon




More information about the Openembedded-devel mailing list