transforms/depends
author zihao.zhu@oracle.com <zihao.zhu@oracle.com>
Tue, 18 Oct 2016 14:50:09 -0700
changeset 7123 b650e07ff9f6
parent 7081 616e1d8621e7
permissions -rw-r--r--
24750381 python-ldap missing dependencies on pyasn1, pyasn1-modules

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#

#
# Dependency helpers for things pkgdepend(1) doesn't or can't handle
# These may be eventually replaced if/when the listed RFE's to handle
# them directly in pkgdepend are implemented.
#

#
# gsettings schema files
#   Bug 24416519 - pkgdepend could look for gsettings schema dependencies
#
# Finding these requires looking in source code for calls such as:
#   g_settings_new ("org.gnome.desktop.interface");
# When found, add an entry such as:
#   depend type=require fmri=__TBD \
#       pkg.tmp.gsettings-schema=org.gnome.desktop.interface
# You may also include pkg.debug.depend.reason=source-file.c as a reference
# for future updates to record what source file you found the call in.
#

<transform depend fmri=__TBD pkg.tmp.gsettings-schema=(.*) -> \
    default pkg.debug.depend.file %<1>.gschema.xml>
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    delete pkg.tmp.gsettings-schema .*>
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \
    add pkg.debug.depend.path usr/share/glib-2.0/schemas>

#
# gobject-introspection typelib files
#   Bug 24463417 - pkgdepend could look for pygobject dependencies
#   Bug 24463542 - pkgdepend could look for girepository dependencies
#
# These are used as binding layers between the C libraries and other languages
# such as Python and JavaScript.
#
# In python:
#  gi.require_version('Gtk', '3.0')
#  from gi.repository import Gtk
# In javascript:
#  imports.gi.versions.Gtk = '3.0';
#  const Gtk = imports.gi.Gtk;
#
# When found, add an entry such as:
#   depend type=require fmri=__TBD pkg.tmp.gi-typelib=Gtk-3.0
# If no version is specified for the import, the latest version should be used.
#
# You may also include pkg.debug.depend.reason=source-file.py as a reference
# for future updates to record what source file you found the call in.
#
# If you need to search application-specific directories for them, you can add
# an additional pkg.debug.depend.path attribute for each directory.
#

<transform depend fmri=__TBD pkg.tmp.gi-typelib=(.*) -> \
    default pkg.debug.depend.file %<1>.typelib>
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \
    delete pkg.tmp.gi-typelib .*>
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \
    add pkg.debug.depend.path usr/lib/$(MACH64)/girepository-1.0>