transforms/publish-cleanup
author Melynda Hunter <melynda.hunter@oracle.com>
Tue, 18 Sep 2012 14:01:42 -0700
branchs11-sru
changeset 2347 03af34f1e7e2
parent 2300 11762b8a16cb
permissions -rw-r--r--
Added tag S11SRU12_03 for changeset ad299cbe60ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     1
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     3
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     7
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    12
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    18
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    20
#
2300
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    21
# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
26
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    22
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    23
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    24
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    25
# These transforms drop the information that we don't really care about when
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    26
# comparing manifests for change.
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    27
#
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    28
27
4daa72fdac4c work around "Bug 16570 - pkgmogrify(1) drops quoting"
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 26
diff changeset
    29
<transform set -> edit value "\s$" "">
4daa72fdac4c work around "Bug 16570 - pkgmogrify(1) drops quoting"
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 26
diff changeset
    30
<transform set value="^\s*$" -> drop>
38
cd00ea74156e package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 27
diff changeset
    31
<transform set name=info.classification value=".+:\s*$" -> drop>
26
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    32
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    33
# drop the license actions from the manifests, we aren't going to compare them
48
1bb7f3eccdd6 a2ps license needs to match
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 38
diff changeset
    34
#<transform license -> drop>
26
8a9f4e791832 packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    35
2300
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    36
#
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    37
# Workaround for http://defect.opensolaris.org/bz/show_bug.cgi?id=19009
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    38
# By default disable gcc45. This can be overriden by setting pkg.gcc3 to false.
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    39
#
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    40
<transform file -> default pkg.gcc3 true>
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    41
<transform file pkg.gcc3=true -> add pkg.depend.bypass-generate usr/gcc/4.*>
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    42
<transform file pkg.gcc3=true -> add pkg.depend.bypass-generate usr/lib(.*)/libgcc_s.so.1>
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    43
<transform file pkg.gcc3=true -> add pkg.depend.bypass-generate usr/lib(.*)/libstdc\\+\\+.so.*>
11762b8a16cb 7176659 SRU Userland branch should build just fine with gcc 4.5 on system
tomas.jedlicka <tomas.jedlicka@oracle.com>
parents: 48
diff changeset
    44
<transform file pkg.gcc3=.* -> delete pkg.gcc3 .*>