[meta-oe] graphviz: added PACKAGECONFIG for librsvg

Message ID 20220221172947.17173-1-ceggers@arri.de
State New
Headers show
Series [meta-oe] graphviz: added PACKAGECONFIG for librsvg | expand

Commit Message

Christian Eggers Feb. 21, 2022, 5:29 p.m. UTC
nativesdk-librsvg is not available anymore ([2], transition to Rust).
According to [2], graphviz can be used fine (even with svg images)
without librsvg.

[1] oe-core: 67dd505c42 ("librsvg: do not enable nativesdk")
[2] https://www.linuxfromscratch.org/blfs/view/cvs/general/graphviz.html

Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Khem Raj Feb. 21, 2022, 6:06 p.m. UTC | #1
this patch is corrupt somehow can not be applied from mbox.

On Mon, Feb 21, 2022 at 9:30 AM Christian Eggers <ceggers@arri.de> wrote:
>
> nativesdk-librsvg is not available anymore ([2], transition to Rust).
> According to [2], graphviz can be used fine (even with svg images)
> without librsvg.
>
> [1] oe-core: 67dd505c42 ("librsvg: do not enable nativesdk")
> [2] https://www.linuxfromscratch.org/blfs/view/cvs/general/graphviz.html
>
> Signed-off-by: Christian Eggers <ceggers@arri.de>
> ---
>  meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
> index 203e0206fbfe..ff9939ebd02a 100644
> --- a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
> +++ b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
> @@ -9,7 +9,6 @@ DEPENDS = " \
>      groff-native \
>      libtool \
>      gdk-pixbuf \
> -    librsvg \
>      cairo \
>      pango \
>      expat \
> @@ -34,6 +33,10 @@ SRC_URI:append:class-nativesdk = "\
>  "
>  SRC_URI[sha256sum] = "8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313"
>
> +PACKAGECONFIG ??= "librsvg"
> +PACKAGECONFIG:class-nativesdk ??= ""
> +PACKAGECONFIG[librsvg] = "--with-librsvg,--without-librsvg,librsvg"
> +
>  EXTRA_OECONF:append = " PS2PDF=/bin/echo"
>
>  EXTRA_OECONF:class-target = "\
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#95420): https://lists.openembedded.org/g/openembedded-devel/message/95420
> Mute This Topic: https://lists.openembedded.org/mt/89298975/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

Patch

diff --git a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
index 203e0206fbfe..ff9939ebd02a 100644
--- a/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
+++ b/meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb
@@ -9,7 +9,6 @@  DEPENDS = " \
     groff-native \
     libtool \
     gdk-pixbuf \
-    librsvg \
     cairo \
     pango \
     expat \
@@ -34,6 +33,10 @@  SRC_URI:append:class-nativesdk = "\
 "
 SRC_URI[sha256sum] = "8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313"
 
+PACKAGECONFIG ??= "librsvg"
+PACKAGECONFIG:class-nativesdk ??= ""
+PACKAGECONFIG[librsvg] = "--with-librsvg,--without-librsvg,librsvg"
+
 EXTRA_OECONF:append = " PS2PDF=/bin/echo"
 
 EXTRA_OECONF:class-target = "\