# # 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) 2010, Oracle and/or its affiliates. All rights reserved. # # # This set of transforms is intended to be used to convert a set of actions # generated by "pkgsend generate ..." into a more generic set of actions with # most attributes removed and paths converted to use strategically placed # macros to remove plartform or version specifics. # # convert the "pkgsend generate" file "hash" to a common value set action.hash 'NOHASH'> # drop extra attribute data that "pkgsend generate" might have added delete timestamp .*> delete pkg.size .*> delete owner .*> delete group .*> delete mode .*> # preserve mode for illumos-closed files delete mode .*> # edit value "@[^ \t\n\r\f\v]*" "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)"> \ edit path "/(sparcv9|amd64)$" "/$!(MACH64)"> \ edit path "/(sparcv9|amd64)/" "/$!(MACH64)/"> \ edit path "/(sparcv7|i86)$" "/$!(MACH32)"> \ edit path "/(sparcv7|i86)/" "/$!(MACH32)/"> \ edit path "/(sparc|i386)$" "/$!(MACH)"> \ edit path "/(sparc|i386)/" "/$!(MACH)/"> # perl support \ edit path "^(usr/perl5/.*/)i86pc-solaris-(64int|thread-multi-64)/" "\1$!(PERL_ARCH)/"> \ edit path "^(usr/perl5/(vendor_perl/)?)5\.[^/]*" "\1$!(PERLVER)"> drop> drop> # Python support drop> drop> drop> # Drop backports/__init__.py because all supported Python versions are PEP 420 # compliant so this file is no longer needed. # See https://github.com/jaraco/backports.entry_points_selectable/issues/5 drop> # PEP 627 made the RECORD file optional. Since we do not need the file and it # could contain inaccurate info we simply drop it. drop> # Replace Python version by $(PYV) \ edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+\.cpython-)3\d+\.so$" "\1$!(PYV).so"> # Replace Python version by $(PYVER) default tmp.fmri "$(COMPONENT_FMRI)"> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)"> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)"> delete tmp.fmri .*> \ edit path "^(usr/lib/python3\.\d+/vendor-packages/[^/]+-py)3\.\d+(\.egg-info(/.*)?)$" "\1$!(PYVER)\2"> \ edit path "^(usr/lib/python3\.\d+/vendor-packages/[^/]+-py)3\.\d+(-nspkg\.pth)$" "\1$!(PYVER)\2"> \ edit path "^(usr/lib/python)3\.\d+(/.*)?$" "\1$!(PYVER)\2"> \ edit path "^(usr/include/python)3\.\d+(/.*)?$" "\1$!(PYVER)\2"> # GCC support \ edit path "^(usr\/gcc\/)\d+\/" "\1$!(GCCVER)/"> \ edit target "(^|/)(sparcv9|amd64)(/|$)" "\1$!(MACH64)\3"> \ edit target "(^|/)(sparcv7|i86)(/|$)" "\1$!(MACH32)\3"> \ edit target "(^|/)(sparc|i386)(/|$)" "\1$!(MACH)\3"> # \ # edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)"> # \ # edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)"> \ edit path "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)"> \ edit target "$(HUMAN_VERSION_RE)" "$!(HUMAN_VERSION)"> \ edit path "$(COMPONENT_RE_VERSION)" "$!(COMPONENT_VERSION)"> \ edit target "$(COMPONENT_RE_VERSION)" "$!(COMPONENT_VERSION)"> \ edit path "$(IPS_COMPONENT_RE_VERSION)" "$!(IPS_COMPONENT_VERSION)"> \ edit target "$(IPS_COMPONENT_RE_VERSION)" "$!(IPS_COMPONENT_VERSION)"> # Clang support (must be after HUMAN_VERSION transforms) \ edit path "(lib[^/]+\.so\.)\d+" "\1$!(CLANGVER)"> \ edit target "(lib[^/]+\.so\.)\d+" "\1$!(CLANGVER)"> \ edit path "^(usr/clang/[^/]+/lib/clang/)\d+/" "\1$!(CLANGVER)/"> \ edit path "^(usr/clang/)\d+/" "\1$!(CLANGVER)/"> # convert temporary macro names to their real name \ edit value "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> drop> # drop all dirs except for illumos-closed drop>