4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
430b4c467020edf2445feb0c21db01c88b86243aGordon Ross# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/GLib/
4bff34e37def8a90f9194d81bc345c52ba20086athurlow sha256:b1cee83469ae7d80f17c267c37f090414e93960bd62d2b254a5a96fbc5baacb4
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# No need to build for older versions.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Necessary to ensure patches applied to configure.ac take effect.
4bff34e37def8a90f9194d81bc345c52ba20086athurlowCOMPONENT_PREP_ACTION += ( cd $(@D); NOCONFIGURE=1 $(CONFIG_SHELL) autogen.sh );
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# using the setting from shared-macros.mk results in 23665701
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# overriding it here till we can get gdm rebuilt
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Disabled by default (temporarily disabled here because it significantly
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# increases build time).
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Building dtrace probes doesn't work correctly (results in undefined symbols
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# in programs), disable until we can figure out how to fix.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# The build process modifies the shebang line to use the version of Python
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# automatically found; to avoid using the current system default, one is
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# explicitly specified here.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Configure doesn't find this since it's not in $PATH
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCONFIGURE_OPTIONS += DBUS_DAEMON=/usr/lib/dbus-daemon
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# configure sets this to gcc's -fvisibility=hidden, replace with correct
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# flag for Studio builds
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_BUILD_ARGS.studio += GLIB_HIDDEN_VISIBILITY_CFLAGS='-xldscope=hidden'
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_BUILD_ARGS += $(COMPONENT_BUILD_ARGS.$(COMPILER))
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Assumes GNU msgfmt in PATH.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Need to include /usr/sbin so configure can find dtrace
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossCOMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH):/usr/sbin"
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Make sure SMF manifests are valid
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross$(BUILD_DIR)/.validated-smf-manifests-$(MACH): $(BUILD_DIR)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossvalidate-smf: $(BUILD_DIR)/.validated-smf-manifests-$(MACH)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossbuild: $(BUILD_DIR)/.validated-smf-manifests-$(MACH)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Needed for "gmake test" to work successfully.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# If SHELLOPTS is exported (as it is by the userland makefiles),
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# then all shell options get exported to child invocations of bash,
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# which results in test failures due to nounset and xtrace being
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# set unexpectedly, and errors such as "$1: unbound variable" and
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# diffs failing due to script tracing in output files.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Strip random seeds from glib tests that use different values each run
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross '-e "s/seed:[0-9]*/seed:/"'
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Strip filenames that are reported in different order between runs
4bff34e37def8a90f9194d81bc345c52ba20086athurlow '-e "s%/bookmarks/parse/.*%%"' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow '-e "s%/markup/parse/.*%%"' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Standard automake test framework results transform
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross '-e "/TOTAL/p" ' \
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross '-e "/SKIP/p" ' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow '-e "/PASS/p" ' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow '-e "/FAIL/p" ' \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow '-e "/ERROR/p" '
4bff34e37def8a90f9194d81bc345c52ba20086athurlowREQUIRED_PACKAGES += developer/documentation-tool/gtk-doc