author | Stefan Teleman <stefan.teleman@oracle.com> |
Thu, 07 May 2015 10:31:56 -0700 | |
branch | s11-update |
changeset 4259 | 03635257972b |
parent 3378 | 8c7eb3630145 |
permissions | -rw-r--r-- |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
23 |
# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
# This set of transforms helps us take a package that's parameterized on a |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
# platform's versions and emit a package that conditionally depends on those |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
# versioned packages, predicated on the platform version packages being |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
# present. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
# For instance, for a package "mako-generic", we want to create a package |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
# "mako", which brings in "mako-26" if "python-26" is present, and "mako-27" if |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
# "python-27" is present. |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
# |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
# We do this by grabbing just the set actions from "mako-generic", and emitting |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
# those conditional depend actions. We require that the parameterized package |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
37 |
# name end in "-###PYV###" (typically by setting a pkgmogrify variable to |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
38 |
# "###PYV###"), which we also remove here. This works in conjunction with a set |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
39 |
# of rules in make-rules/ips.mk which create and use another transform file |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
40 |
# that actually emit the conditional dependencies. |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
<transform file dir link hardlink license user group driver legacy signature -> drop> |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
<transform depend -> default nodrop false> |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
<transform depend nodrop=false -> drop> |
3378
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
45 |
<transform set name=pkg.fmri value=(?:pkg:/)?(.+)-###PYV###@(.*) -> \ |
8c7eb3630145
PSARC/2014/275 Hiera 1.3.4
Kristina Tripp <Kristina.Tripp@oracle.com>
parents:
2576
diff
changeset
|
46 |
edit value -###PYV### ""> |
2576
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
<transform set name=pkg.fmri value=(?:pkg:/)?(.+)-###@(.*) -> \ |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
edit value -### ""> |
f1b6ecbb2d1e
16433531 Update Nose to 1.2.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
<transform depend nodrop=true -> delete nodrop true> |