[OE-core] [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package
Aníbal Limón
anibal.limon at linux.intel.com
Mon Jun 8 18:04:20 UTC 2015
Hi,
Looks good for me i tested with rpm and deb package_classes.
Cheers,
alimon
On 08/06/15 06:10, Pau Espin Pedrol wrote:
> Signed-off-by: Pau Espin Pedrol <pau.espin at aweurope.be>
Acked-by: Aníbal Limón <anibal.limon at linux.intel.com>
> ---
> meta/recipes-graphics/mesa/mesa.inc | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
> index 96313b5..f88b2a4 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -99,6 +99,11 @@ do_install_append () {
>
> # it was packaged in libdricore9.1.3-1 and preventing upgrades when debian.bbclass was used
> rm -f ${D}${sysconfdir}/drirc
> +
> + # /etc is sometimes left as an empty directory and it ends up into 'mesa' package, which is then a non-empty package
> + if [ -d ${D}${sysconfdir} ]; then
> + rmdir --ignore-fail-on-non-empty ${D}${sysconfdir}
> + fi
> }
>
> # For the packages that make up the OpenGL interfaces, inject variables so that
More information about the Openembedded-core
mailing list