fix -Werror=poison-system-directories in g-ir-scanner
CMake's pkg_check_modules stores the bare INCLUDEDIR variable (/usr/include)
on imported targets' INTERFACE_INCLUDE_DIRECTORIES. WebKit's FindGI.cmake
forwards every interface include dir to g-ir-scanner as -I, so the
introspection compile is invoked with -I/usr/include. With a GCC configured
with --enable-poison-system-directories=error (as in OpenEmbedded cross gcc):
cc1: error: include location "/usr/include" is unsafe for cross-compilation
[-Werror=poison-system-directories]
g-ir-scanner only extracts -D/-I/-U from CFLAGS (not -Wno-error flags), so the
warning cannot be relaxed via the recipe CFLAGS. Filter the bare host system
include directories (/usr/include, /usr/local/include) out of the scanner flags
in FindGI.cmake instead; the sysroot include path is added automatically.
filter bare system include dirs from gir generator expr
The FindGI g-ir-scanner fix only filtered /usr/include from the dependency
loop that builds scanner_flags. The include dirs also reach the scanner via
the per-target INTERFACE_INCLUDE_DIRECTORIES generator expression that is
joined into -I flags on the g-ir-scanner command line, which was left
unfiltered.
JavaScriptCore-4.1.gir happens to carry no bare /usr/include on its target
so it succeeded, but WebKit2/WebKitGTK does, so the WebKitGTK introspection
still failed under the OpenEmbedded cross compiler:
cc1: error: include location "/usr/include" is unsafe for cross-compilation
[-Werror=poison-system-directories]
Filter /usr/include and /usr/local/include out of the target_inc generator
expression with $<FILTER:...,EXCLUDE,...> too.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
zile 2.6.x was rewritten in Vala and now needs glib-2.0, libgee and the
Vala toolchain, plus autoconf-archive (AX_REQUIRE_DEFINED) for autoreconf.
Add the dependencies, inherit vala, build in-tree (the Vala build writes
generated sources back into the tree) with CLEANBROKEN, and drop the
obsolete --enable-acl PACKAGECONFIG (removed upstream).
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Refresh the remaining patches and drop the ones now upstreamed. libxml2
2.15 removed the tree-debug module (LIBXML_DEBUG_ENABLED off), so guard
the xmlDebugDumpDocument() call that otherwise fails to compile the
transform-helpers unit test.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
poppler now sets CMAKE_CXX_STANDARD 23, which enables clang-scan-deps,
absent in the native sysroot. poppler has no module units, so disable
scanning with -DCMAKE_CXX_SCAN_FOR_MODULES=OFF.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Do not package the upstream test suite: the tests under datadir/lcov/tests
are not needed at runtime and pull fatal file-rdeps on /bin/bash,
/usr/bin/bash and /bin/env, so remove them in do_install.
Pass DESTDIR separately to fix buildpaths QA. The recipe ran
'oe_runmake install PREFIX=${D}${prefix}', folding the destdir into PREFIX;
lcov's Makefile bakes the runtime --bindir/--libdir into the installed perl
modules and manpages, so the build path leaked into the package:
do_package_qa: QA Issue: File /usr/lib/lcov/lcovutil.pm ... contains
reference to TMPDIR / the build host HOME directory [buildpaths]
Use PREFIX=${prefix} DESTDIR=${D} (and CFG_DIR=${sysconfdir}) so the baked
paths are the runtime ones.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Refresh the cross-compile configure.ac patch for 4.0.0. Its configure.ac
now requires the xcursor pkg-config module in the core PKG_CHECK_MODULES,
which the recipe never depended on, so do_configure fails:
checking for fontconfig xrender xcomposite xcursor xdamage xfixes xext x11... no
configure: error: Package requirements (...) were not met:
Package 'xcursor' not found
Add libxcursor to DEPENDS.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
License-Update: copyright year updated 2000 -> 2020
Update the dmalloc.c license md5 for 5.6.5 and regenerate the patches so
they apply without fuzz (a fatal QA error). Regenerate 150-use_DESTDIR.patch
so DESTDIR also covers the install/installdocs targets; the dmalloc utility
was otherwise installed to the host /usr/bin and failed with permission
denied.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Disable the new default-on impstats-push feature, which needs protoc-c,
libprotobuf-c and snappy that are not wired up in this recipe.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Regenerate 0001-hiredis-use-default-CC and
0004-src-Do-not-reset-FINAL_LIBS so they apply without fuzz (patch-fuzz
is a fatal QA error).
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Regenerate configure.patch, which hardcoded version 3.25.8 and had stale
context, so it applies without fuzz.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Drop the no-longer-needed 0001-Fix-parallel-build-problems.patch,
0002-fix-reproducibility.patch and
0001-Fix-a-lot-of-Werror-format-security.patch.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
libabigail 2.10 requires libxxhash >= 0.8.0, so add xxhash to DEPENDS.
Drop 0001-Check-for-correct-fts-module.patch, which is merged in 2.10.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Mercurial 7.x reworked its Makefile to install via pip. Use a
DESTDIR-aware setup.py install instead, add python3-setuptools-scm-native
and pin the version via SETUPTOOLS_SCM_PRETEND_VERSION, and fix the
PYTHON Makefile sed.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>