python27: use absolute path to dtrace(8)
[unleashed-userland.git] / transforms / comparison-cleanup
blob7e4444ba7c6610d35a6ae69929165183efabdfd6
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
25 # These transforms drop the information that we don't really care about when
26 # comparing manifests for change.
29 # drop actions that don't apply to the architecture we are on
30 #<transform dir file link hardlink variant.arch=(?!$(ARCH)) -> drop>
32 # drop the license actions from the manifests, we aren't going to compare them
33 <transform license -> drop>
35 # remove the version information from the dependency actions
36 <transform depend -> edit fmri "@[^ \t\n\r\f\v]*" "">
38 # normalize the pkg.fmri for the current build
39 <transform set name=pkg.fmri -> \
40         edit value "@[^ \t\n\r\f\v]*" \
41                    "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)">
43 # convert temporary macro names to their real name
44 <transform set -> edit value "\$!\((.*)\)" "$(\1)">
45 <transform set -> edit value "\$!\((.*)\)" "$(\1)">
47 # standardize the file hashes
48 <transform file -> set action.hash 'NOHASH'>
50 # drop extra attribute data that we don't want to compare
51 <transform dir file link hardlink -> delete timestamp .*>
52 <transform dir file link hardlink -> delete pkg.csize .*>
53 <transform dir file link hardlink -> delete pkg.chash .*>
54 <transform dir file link hardlink -> delete chash .*>
55 <transform dir file link hardlink -> delete pkg.size .*>
56 <transform dir file link hardlink -> delete elfarch .*>
57 <transform dir file link hardlink -> delete elfbits .*>
58 <transform dir file link hardlink -> delete elfhash .*>
59 <transform dir file link hardlink -> delete owner .*>
60 <transform dir file link hardlink -> delete group .*>
61 <transform dir file link hardlink -> delete mode .*>
62 <transform dir file link hardlink -> delete variant.arch .*>
63 <transform dir file link hardlink -> delete preserve .*>
64 <transform dir file link hardlink -> delete original_name .*>