author | Danek Duvall <danek.duvall@oracle.com> |
Tue, 18 Oct 2016 14:50:56 -0700 | |
changeset 7124 | 3e0b5da5d4d1 |
parent 7081 | 616e1d8621e7 |
permissions | -rw-r--r-- |
6609
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
21 |
|
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
25 |
|
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
26 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
27 |
# Dependency helpers for things pkgdepend(1) doesn't or can't handle |
7081
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
28 |
# These may be eventually replaced if/when the listed RFE's to handle |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
29 |
# them directly in pkgdepend are implemented. |
6609
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
30 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
31 |
|
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
32 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
33 |
# gsettings schema files |
7081
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
34 |
# Bug 24416519 - pkgdepend could look for gsettings schema dependencies |
6609
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
35 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
36 |
# Finding these requires looking in source code for calls such as: |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
37 |
# g_settings_new ("org.gnome.desktop.interface"); |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
38 |
# When found, add an entry such as: |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
39 |
# depend type=require fmri=__TBD \ |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
40 |
# pkg.tmp.gsettings-schema=org.gnome.desktop.interface |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
41 |
# You may also include pkg.debug.depend.reason=source-file.c as a reference |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
42 |
# for future updates to record what source file you found the call in. |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
43 |
# |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
44 |
|
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
45 |
<transform depend fmri=__TBD pkg.tmp.gsettings-schema=(.*) -> \ |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
46 |
default pkg.debug.depend.file %<1>.gschema.xml> |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
47 |
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \ |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
48 |
delete pkg.tmp.gsettings-schema .*> |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
49 |
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.gschema\.xml$ -> \ |
489da5c0d3c5
24429749 improve gnome3 settings dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff
changeset
|
50 |
add pkg.debug.depend.path usr/share/glib-2.0/schemas> |
7081
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
51 |
|
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
52 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
53 |
# gobject-introspection typelib files |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
54 |
# Bug 24463417 - pkgdepend could look for pygobject dependencies |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
55 |
# Bug 24463542 - pkgdepend could look for girepository dependencies |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
56 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
57 |
# These are used as binding layers between the C libraries and other languages |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
58 |
# such as Python and JavaScript. |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
59 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
60 |
# In python: |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
61 |
# gi.require_version('Gtk', '3.0') |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
62 |
# from gi.repository import Gtk |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
63 |
# In javascript: |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
64 |
# imports.gi.versions.Gtk = '3.0'; |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
65 |
# const Gtk = imports.gi.Gtk; |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
66 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
67 |
# When found, add an entry such as: |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
68 |
# depend type=require fmri=__TBD pkg.tmp.gi-typelib=Gtk-3.0 |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
69 |
# If no version is specified for the import, the latest version should be used. |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
70 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
71 |
# You may also include pkg.debug.depend.reason=source-file.py as a reference |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
72 |
# for future updates to record what source file you found the call in. |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
73 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
74 |
# If you need to search application-specific directories for them, you can add |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
75 |
# an additional pkg.debug.depend.path attribute for each directory. |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
76 |
# |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
77 |
|
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
78 |
<transform depend fmri=__TBD pkg.tmp.gi-typelib=(.*) -> \ |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
79 |
default pkg.debug.depend.file %<1>.typelib> |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
80 |
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \ |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
81 |
delete pkg.tmp.gi-typelib .*> |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
82 |
<transform depend fmri=__TBD pkg.debug.depend.file=.*\.typelib$ -> \ |
616e1d8621e7
24824653 improve gobject-introspection typelib dependency tracking
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
6609
diff
changeset
|
83 |
add pkg.debug.depend.path usr/lib/$(MACH64)/girepository-1.0> |