graphviz fix
cover graphviz fix
Since [1] graphviz is broken - fix it by cherry-picks
| ERROR: graphviz-2.40.1-r0 do_package_qa: QA Issue: graphviz: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol [src-uri-bad]
[1] https://github.com/openembedded/openembedded-core/commit/72f2c45880afbba1745e5e0cbd841d7fd666f374
Christian Eggers (1):
graphviz: Extend for nativesdk
Khem Raj (1):
graphviz: Upgrade to 2.44.1 release
...o-be-empty-string-if-tcl-is-disabled.patch | 2 +-
.../graphviz/0001-Use-native-mkdefs.patch | 9 ++----
...-Include-freetype-headers-explicitly.patch | 5 ---
.../graphviz/graphviz/graphviz-setup.sh | 6 ++++
...{graphviz_2.40.1.bb => graphviz_2.44.1.bb} | 32 ++++++++++++++++---
5 files changed, 36 insertions(+), 18 deletions(-)
create mode 100644 meta-oe/recipes-graphics/graphviz/graphviz/graphviz-setup.sh
rename meta-oe/recipes-graphics/graphviz/{graphviz_2.40.1.bb => graphviz_2.44.1.bb} (65%)Signature · 1 line
2.26.2
PATCH 1/2 graphviz: Extend for nativesdk
From: Christian Eggers <[email protected]>
The "dot" tool is often used together with doxygen which is already available for nativesdk.
Cross compiling graphviz for nativesdk looks quite similar as building for target. At installation time of the SDK, "dot -c" must be called in order to create <SDK sysroot>/usr/lib/graphviz/config6.
--- .../graphviz/graphviz/graphviz-setup.sh | 6 +++++ .../graphviz/graphviz_2.40.1.bb | 24 ++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-graphics/graphviz/graphviz/graphviz-setup.sh
meta-oe/recipes-graphics/graphviz/graphviz/graphviz-setup.sh new file +6 -0
@@ -0,0 +1,6 @@ +#!/bin/sh + +echo "Setting up graphviz..." + +# Create /usr/lib/graphviz/config6 +$OECORE_NATIVE_SYSROOT/usr/bin/dot -c
meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb +23 -1
@@ -16,6 +16,7 @@ DEPENDS = " \ freetype \ " DEPENDS_append_class-target = " ${BPN}-native" +DEPENDS_append_class-nativesdk = " ${BPN}-native" inherit autotools-brokensep pkgconfig gettext
@@ -33,6 +34,10 @@ SRC_URI_append_class-target = "\ file://0001-Use-native-mkdefs.patch \ file://0001-Set-use_tcl-to-be-empty-string-if-tcl-is-disabled.patch \ " +SRC_URI_append_class-nativesdk = "\ + file://0001-Use-native-mkdefs.patch \ + file://graphviz-setup.sh \ +" SRC_URI[md5sum] = "2acf30ca8e6cc8b001b0334db65fd072" SRC_URI[sha256sum] = "e6c3f8dbfde1c4523055403927bef29f97f9fc12715c1042b5dcf648a2c1c62a"
@@ -47,7 +52,17 @@ EXTRA_OECONF_class-target = "\ --disable-r \ --disable-sharp \ " +EXTRA_OECONF_class-nativesdk = "\ + --with-expatincludedir=${STAGING_INCDIR} \ + --with-expatlibdir=${STAGING_LIBDIR} \ + --without-included-ltdl \ + --disable-java \ + --disable-tcl \ + --disable-r \ + --disable-sharp \ + " CFLAGS_append_class-target = " -D_typ_ssize_t=1 -D_long_double=1" +CFLAGS_append_class-nativesdk = " -D_typ_ssize_t=1 -D_long_double=1" do_configure_prepend() { cd ${S} # create version.m4 and ignore libtoolize errors
@@ -59,6 +74,13 @@ do_install_append_class-native() { install -m755 ${B}/lib/gvpr/mkdefs ${D}${bindir} } +do_install_append_class-nativesdk() { + # graphviz-setup.sh must be executed at SDK installation + install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d + install -m 0755 ${WORKDIR}/graphviz-setup.sh ${D}${SDKPATHNATIVE}/post-relocate-setup.d +} +FILES_${PN}_class-nativesdk += "${SDKPATHNATIVE}" + PACKAGES =+ "${PN}-python ${PN}-perl ${PN}-demo" FILES_${PN}-python += "${libdir}/python*/site-packages/ ${libdir}/graphviz/python/"
@@ -74,4 +96,4 @@ INSANE_SKIP_${PN}-python = "dev-so" FILES_SOLIBSDEV_append = " ${libdir}/graphviz/lib*${SOLIBSDEV}" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.26.2
PATCH 2/2 graphviz: Upgrade to 2.44.1 release
In reply to Andreas MüllerFrom: Khem Raj <[email protected]>
- Refresh patches to apply on new sources
- Switch away from gitlab archives
- Bypass pdf documentation generation
---
...t-use_tcl-to-be-empty-string-if-tcl-is-disabled.patch | 2 +-
.../graphviz/graphviz/0001-Use-native-mkdefs.patch | 9 ++-------
...lugin-pango-Include-freetype-headers-explicitly.patch | 5 -----
.../graphviz/{graphviz_2.40.1.bb => graphviz_2.44.1.bb} | 8 ++++----
4 files changed, 7 insertions(+), 17 deletions(-)
rename meta-oe/recipes-graphics/graphviz/{graphviz_2.40.1.bb => graphviz_2.44.1.bb} (91%)meta-oe/recipes-graphics/graphviz/graphviz/0001-Set-use_tcl-to-be-empty-string-if-tcl-is-disabled.patch +1 -1
@@ -11,7 +11,7 @@ Signed-off-by: Khem Raj <[email protected]> --- a/configure.ac +++ b/configure.ac -@@ -1676,7 +1676,7 @@ AC_ARG_ENABLE(tcl, +@@ -1540,7 +1540,7 @@ AC_ARG_ENABLE(tcl, [], [enable_tcl=yes]) if test "x$enable_tcl" != "xyes"; then
meta-oe/recipes-graphics/graphviz/graphviz/0001-Use-native-mkdefs.patch +2 -7
@@ -13,12 +13,10 @@ Signed-off-by: Andreas Müller <[email protected]> lib/gvpr/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/lib/gvpr/Makefile.am b/lib/gvpr/Makefile.am -index ac3c098..4914854 100644 --- a/lib/gvpr/Makefile.am +++ b/lib/gvpr/Makefile.am -@@ -57,7 +57,7 @@ endif - mkdefs_SOURCES = mkdefs.c +@@ -59,7 +59,7 @@ mkdefs$(EXEEXT): + $(HOSTCC) $(srcdir)/mkdefs.c -o mkdefs$(EXEEXT) gdefs.h: $(top_srcdir)/lib/gvpr/gprdata mkdefs$(EXEEXT) - ./mkdefs$(EXEEXT) gdefs.h < $(top_srcdir)/lib/gvpr/gprdata
@@ -26,6 +24,3 @@ index ac3c098..4914854 100644 EXTRA_DIST = $(man_MANS) $(pdf_DATA) gprdata mkdefs.c gdefs.h trie.c gvprlib.vcxproj* --- -2.20.1 -
meta-oe/recipes-graphics/graphviz/graphviz/0001-plugin-pango-Include-freetype-headers-explicitly.patch +0 -5
@@ -18,8 +18,6 @@ Signed-off-by: Khem Raj <[email protected]> plugin/pango/gvtextlayout_pango.c | 4 ++++ 1 file changed, 4 insertions(+) -diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c -index d620b29..b0da11c 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -15,6 +15,10 @@
@@ -33,6 +31,3 @@ index d620b29..b0da11c 100644 #include "gvplugin_render.h" #include "agxbuf.h" #include "utils.h" --- -2.22.0 -
meta-oe/recipes-graphics/graphviz/graphviz_2.44.1.bb renamed from meta-oe/recipes-graphics/graphviz/graphviz_2.40.1.bb +4 -4
@@ -26,7 +26,8 @@ inherit autotools-brokensep pkgconfig gettext # get checksum errors. Fedora people seem to expect same so they use a versioned # source - see https://src.fedoraproject.org/cgit/rpms/graphviz.git/tree/graphviz.spec -SRC_URI = "https://gitlab.com/graphviz/graphviz/-/archive/stable_release_${PV}/graphviz-stable_release_${PV}.tar.gz \ +SRCREV = "771bc4dbff3e6f358fa75cdc7774a413ccacad51" +SRC_URI = "https://www2.graphviz.org/Packages/stable/portable_source/${BP}.tar.gz \ file://0001-plugin-pango-Include-freetype-headers-explicitly.patch \ " # Use native mkdefs
@@ -38,10 +39,9 @@ SRC_URI_append_class-nativesdk = "\ file://0001-Use-native-mkdefs.patch \ file://graphviz-setup.sh \ " -SRC_URI[md5sum] = "2acf30ca8e6cc8b001b0334db65fd072" -SRC_URI[sha256sum] = "e6c3f8dbfde1c4523055403927bef29f97f9fc12715c1042b5dcf648a2c1c62a" +SRC_URI[sha256sum] = "8e1b34763254935243ccdb83c6ce108f531876d7a5dfd443f255e6418b8ea313" -S = "${WORKDIR}/${BPN}-stable_release_${PV}" +EXTRA_OECONF_append = " PS2PDF=/bin/echo" EXTRA_OECONF_class-target = "\ --with-expatincludedir=${STAGING_INCDIR} \
Signature · 1 line
2.26.2