package complete ${datadir} ${libdir} by default
Hello,
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?
All the recipes where ${PN} does not match the actual package name currently need workarounds for this.
Regards,
Leon.
FILES_${PN}
The base package, this includes everything needed to actually run
the application on the target system.
FILES_${PN} = "\
${bindir}/* \
${sbindir}/* \
${libexecdir}/* \
${libdir}/lib*.so.* \
${sysconfdir} \
${sharedstatedir} \
${localstatedir} \
/bin/* \
/sbin/* \
/lib/*.so* \
${datadir}/${PN} \
${libdir}/${PN}/* \
${datadir}/pixmaps \
${datadir}/applications \
${datadir}/idl \
${datadir}/omf \
${datadir}/sounds \
${libdir}/bonobo/servers"Signature · 1 line
Leon
Dnia czwartek, 22 października 2009 o 21:08:27 Leon Woestenberg napisał(a):
Quoted 4 lines
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.
Fix me if I am wrong.
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Hello,
Quoted 11 lines · Marcin Juszkiewicz
Dnia czwartek, 22 października 2009 o 21:08:27 Leon Woestenberg napisał(a):
Quoted 4 lines
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.
IMO everything that is not _standard_ ought to be explicited add.
Regards,
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Hello Otavio,
2009/10/23 Otavio Salvador <[email protected]>:
Quoted 8 lines
Quoted 6 lines · Marcin Juszkiewicz
Dnia czwartek, 22 października 2009 o 21:08:27 Leon Woestenberg napisał(a):
Quoted 4 lines
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?
Quoted 9 lines
Quoted 5 lines
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.
Quoted 2 lines
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,
Signature · 1 line
Leon
Quoted 12 lines · Marcin Juszkiewicz
Dnia czwartek, 22 października 2009 o 21:08:27 Leon Woestenberg napisał(a):
Quoted 4 lines
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.
Good point, so the package order should change to:
PACKAGES = "PN-dbg PN-doc PN-dev PN-locale PN"
Regards,
Signature · 1 line
Leon
Quoted 6 lines · Leon Woestenberg
Hello,
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?
This would require a bit of juggling of the order that the subpackages appear in PACKAGES, so that the right files continue to land in the -dev/-locale/-doc subpackages, but apart from that it sounds like a fairly sound plan to me.
As a less intrusive (though also less elegant) alternative, you could introduce a new variable ${BINPN} or something, which defaults to the same as ${PN} but is overrideable as necessary, and then define FILES_ ${PN} in terms of that one. That would deal with the case where you have multiple variations on the same package, all with slightly different ${PN}s.
p.