All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/1] syslog-ng: fix build without json
@ 2018-05-30 17:18 Joe Slater
  2018-05-31  1:10 ` Andre McCurdy
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Slater @ 2018-05-30 17:18 UTC (permalink / raw)
  To: openembedded-devel

Remove configurations requiring json from target.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index 771cdb1..a5e4e72 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -83,6 +83,11 @@ do_install_append() {
     install -d ${D}/${localstatedir}/lib/${BPN}
     # Remove /var/run as it is created on startup
     rm -rf ${D}${localstatedir}/run
+
+    # If json is not supported, remove certain conf files.
+    if ${@oe.utils.conditional('PACKAGECONFIG','json','false','true',d)} ; then
+        rm -rf ${D}${datadir}/${BPN}/include/scl/{loggly,logmatic,cim,elasticsearch}
+    fi
 }
 
 FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-oe][PATCH 1/1] syslog-ng: fix build without json
  2018-05-30 17:18 [meta-oe][PATCH 1/1] syslog-ng: fix build without json Joe Slater
@ 2018-05-31  1:10 ` Andre McCurdy
  0 siblings, 0 replies; 2+ messages in thread
From: Andre McCurdy @ 2018-05-31  1:10 UTC (permalink / raw)
  To: Joe Slater; +Cc: openembeded-devel

On Wed, May 30, 2018 at 10:18 AM, Joe Slater <joe.slater@windriver.com> wrote:
> Remove configurations requiring json from target.
>
> Signed-off-by: Joe Slater <joe.slater@windriver.com>
> ---
>  meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> index 771cdb1..a5e4e72 100644
> --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> @@ -83,6 +83,11 @@ do_install_append() {
>      install -d ${D}/${localstatedir}/lib/${BPN}
>      # Remove /var/run as it is created on startup
>      rm -rf ${D}${localstatedir}/run
> +
> +    # If json is not supported, remove certain conf files.
> +    if ${@oe.utils.conditional('PACKAGECONFIG','json','false','true',d)} ; then

oe.utils.conditional() probably isn't the best way to test whether or
not PACKAGECONFIG contains a particular value. Maybe try
bb.utils.contains() instead?

> +        rm -rf ${D}${datadir}/${BPN}/include/scl/{loggly,logmatic,cim,elasticsearch}

This kind of brace expansion is bash specific.

> +    fi
>  }
>
>  FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-31  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 17:18 [meta-oe][PATCH 1/1] syslog-ng: fix build without json Joe Slater
2018-05-31  1:10 ` Andre McCurdy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.