* [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package
@ 2015-06-08 11:10 Pau Espin Pedrol
2015-06-08 18:04 ` Aníbal Limón
0 siblings, 1 reply; 2+ messages in thread
From: Pau Espin Pedrol @ 2015-06-08 11:10 UTC (permalink / raw)
To: openembedded-core; +Cc: Pau Espin Pedrol, anibal.limon
Signed-off-by: Pau Espin Pedrol <pau.espin@aweurope.be>
---
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
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package
2015-06-08 11:10 [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package Pau Espin Pedrol
@ 2015-06-08 18:04 ` Aníbal Limón
0 siblings, 0 replies; 2+ messages in thread
From: Aníbal Limón @ 2015-06-08 18:04 UTC (permalink / raw)
To: Pau Espin Pedrol, openembedded-core; +Cc: anibal.limon
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@aweurope.be>
Acked-by: Aníbal Limón <anibal.limon@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-08 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 11:10 [PATCH][Daisy] mesa: Avoid leaving empty sysconfdir in mesa package Pau Espin Pedrol
2015-06-08 18:04 ` Aníbal Limón
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox