56 lines
2.1 KiB
Bash
56 lines
2.1 KiB
Bash
# Template file for 'glib-bootstrap'
|
|
# keep in sync with glib
|
|
#
|
|
# This aloing with gobject-introspection-bootstrap is unfortunately necessary as a part of the
|
|
# libgirepository-1.0 to libgirepository-2.0 migration.
|
|
pkgname=glib-bootstrap
|
|
version=2.84.0
|
|
revision=1
|
|
build_style=meson
|
|
# static version is necessary for qemu-user
|
|
# also disable LTO, otherwise there are multiple failures when linking qemu
|
|
configure_args="-Dman=true -Dselinux=disabled
|
|
--default-library=both -Db_lto=false -Dintrospection=disabled"
|
|
hostmakedepends="gettext pkg-config libxslt docbook-xsl python3-packaging python3-docutils"
|
|
makedepends="zlib-devel pcre2-devel libffi-devel dbus-devel elfutils-devel libmount-devel"
|
|
depends="${makedepends}"
|
|
checkdepends="desktop-file-utils shared-mime-info dbus python3-pytest"
|
|
short_desc="GNU library of C routines"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GLib"
|
|
changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-82/NEWS"
|
|
#changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
|
|
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
|
|
checksum=f8823600cb85425e2815cfad82ea20fdaa538482ab74e7293d58b3f64a5aff6a
|
|
python_version=3
|
|
make_check_pre="dbus-run-session"
|
|
|
|
repository=bootstrap
|
|
conflicts="glib libglib-devel glib-devel"
|
|
provides="glib-${version}_${revision}"
|
|
|
|
post_patch() {
|
|
# Timer test is flaky on 32 bit (does float comparisons)
|
|
if [ "${XBPS_TARGET_WORDSIZE}" = "32" ]; then
|
|
vsed -e "s/'timer' : {},//" -i glib/tests/meson.build
|
|
fi
|
|
# Test fails in CI
|
|
vsed -e '/test_cleanup_handles_errors)/d' -i glib/tests/utils-isolated.c
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
# musl 1.1.x's implementation of faccessat is broken (doesn't behave correctly with AT_SYMLINK_NOFOLLOW)
|
|
# https://git.musl-libc.org/cgit/musl/commit/?id=55fb9a177316aa46c639d93dd0323d9a9a8c160c
|
|
vsed -e "s/'faccessat',//g" -i meson.build
|
|
fi
|
|
}
|
|
|
|
pre_check() {
|
|
# machine-id is a random, non-zero value
|
|
echo 'dcb30309cd6c8b7cc20383d85a5c7012' > /etc/machine-id
|
|
}
|
|
|
|
post_check() {
|
|
rm /etc/machine-id
|
|
}
|