mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 05:03:03 +01:00
galculator hasn't been touched for a decade now[1] and fails to compile under GCC 15. Switch to building libhandy, which is the GTK+3 precursor to libadwaita in the Gnome stack. Whilst this is in low-maintainence mode, will be updated if it breaks. [1] https://github.com/galculator/galculator/ (From OE-Core rev: ff6fa71eb0511d8594c4416a37d75a85470ff9c6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
41 lines
1.4 KiB
Python
41 lines
1.4 KiB
Python
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
import os
|
|
import subprocess
|
|
import tempfile
|
|
|
|
from oeqa.sdk.cases.meson import MesonTestBase
|
|
|
|
from oeqa.utils.subprocesstweak import errors_have_output
|
|
errors_have_output()
|
|
|
|
class GTK3Test(MesonTestBase):
|
|
|
|
def setUp(self):
|
|
super().setUp()
|
|
self.ensure_target_package("gtk+3", "libgtk-3.0", recipe="gtk+3")
|
|
self.ensure_host_package("glib-2.0-utils", "libglib-2.0-utils", recipe="glib-2.0")
|
|
|
|
"""
|
|
Test that autotools and GTK+ 3 compiles correctly.
|
|
"""
|
|
def test_libhandy(self):
|
|
with tempfile.TemporaryDirectory(prefix="libhandy", dir=self.tc.sdk_dir) as testdir:
|
|
tarball = self.fetch(testdir, self.td["DL_DIR"], "https://download.gnome.org/sources/libhandy/1.8/libhandy-1.8.3.tar.xz")
|
|
|
|
sourcedir = os.path.join(testdir, "libhandy-1.8.3")
|
|
builddir = os.path.join(testdir, "build")
|
|
installdir = os.path.join(testdir, "install")
|
|
|
|
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
|
self.assertTrue(os.path.isdir(sourcedir))
|
|
os.makedirs(builddir)
|
|
|
|
self.build_meson(sourcedir, builddir, installdir, "-Dglade_catalog=disabled -Dintrospection=disabled -Dvapi=false")
|
|
self.assertTrue(os.path.isdir(installdir))
|
|
self.check_elf(os.path.join(installdir, "usr", "local", "lib", "libhandy-1.so"))
|