author  Petr Nyc <Petr.Nyc@Oracle.COM> 
Wed, 25 Mar 2015 11:17:41 +0100  
branch  s11u2sru8backport 
changeset 4022  cd9b5d6844f9 
parent 3862  0e46f6a07b7f 
permissions  rwrr 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

1 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

2 
# CDDL HEADER START 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

3 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

4 
# The contents of this file are subject to the terms of the 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

5 
# Common Development and Distribution License (the "License"). 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

6 
# You may not use this file except in compliance with the License. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

7 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

8 
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

9 
# or http://www.opensolaris.org/os/licensing. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

10 
# See the License for the specific language governing permissions 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

11 
# and limitations under the License. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

12 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

13 
# When distributing Covered Code, include this CDDL HEADER in each 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

14 
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

15 
# If applicable, add the following below this CDDL HEADER, with the 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

16 
# fields enclosed by brackets "[]" replaced with your own identifying 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

17 
# information: Portions Copyright [yyyy] [name of copyright owner] 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

18 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

19 
# CDDL HEADER END 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

20 
# 
2918
95ef60f60976
Close of build 32.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
2893
diff
changeset

21 
# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

22 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

23 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

24 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

25 
# The package branch version scheme is: 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

26 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

27 
# trunk_id.update.SRU.platform.buildid.nightlyid 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

28 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

29 
# where 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

30 
# trunk_id : build number for tip development gate, with leading 0 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

31 
# update : 0 for FCS, 1 for update 1, etc. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

32 
# SRU : SRU (support repository update) number for this update 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

33 
# platform : reserved for future use. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

34 
# buildid : the build number of the last nonzero element from above 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

35 
# nightlyid: nightly build identifier 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

36 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

37 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

38 
# For reference, Solaris 11 FCS is branchid 0.175.0.0.0.2.537 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

39 
# build 175, respin 2, workspace changeset 537 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

40 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

41 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

42 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

43 
# The Solaris Marketing release build number. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

44 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

45 
TRUNK_ID ?= 0.175 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

46 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

47 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

48 
# The Solaris Update number. This will be set by the gatekeepers. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

49 
# The value must match the update number of the release. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

50 
# 
2346
2f5801726dd0
7199027 Userland needs buildid updates for S11u2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
diff
changeset

51 
UPDATENUM ?= 2 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

52 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

53 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

54 
# Support Respository Update number. This is here to reserve space within the 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

55 
# version string. Typically it should not be set unless all the packages 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

56 
# are being delivered within an SRU. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

57 
# 
3825  58 
SRUNUM ?= 8 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

59 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

60 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

61 
# Platform number. This is here to reserve space within the version 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

62 
# string. It should not be set unless there is a specific need to 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

63 
# release a platform update while the Solaris Update is being built. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

64 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

65 
PLATNUM ?= 0 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

66 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

67 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

68 
# Build Identifier. Used to indicate which build (or respin for 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

69 
# the development build) of the Solaris Update is being built. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

70 
# This is set by the gatekeepers. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

71 
# 
4022  72 
BUILDID ?= 5 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

73 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

74 
# Each (nightly) build of the code that produces packages needs to 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

75 
# be uniquely identified so that packages produced by different 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

76 
# builds can't be mixed. Mixing packages from different builds can 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

77 
# easily result in broken global and nonglobal zones. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

78 
# 
2346
2f5801726dd0
7199027 Userland needs buildid updates for S11u2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
diff
changeset

79 
#NIGHTLYID ?= $(shell hg tip template '{rev}\n') 
3192
b9a078e64012
18789242 Userland needs SRU branch for 11.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3184
diff
changeset

80 
NIGHTLYID ?= 0 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

81 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

82 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

83 
# Branch Identifier. Used in the version section of the package name to 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

84 
# identify the operating system branch that the package was produced for. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

85 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

86 
BRANCHID ?= \ 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

87 
$(TRUNK_ID).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID) 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

88 

d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

89 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

90 
# Build Version. Used in the version section of the package name to identify 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

91 
# the operating system version and branch that the package was produced for. 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

92 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

93 
BUILD_VERSION ?= $(OS_VERSION)$(BRANCHID) 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

94 

591
d3cce09912d0
7114186 Can't publish components in s11sru branch
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
556
diff
changeset

95 
# Set a default reference repository against which pkglint is run, in case it 
d3cce09912d0
7114186 Can't publish components in s11sru branch
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
556
diff
changeset

96 
# hasn't been set in the environment. 
3192
b9a078e64012
18789242 Userland needs SRU branch for 11.2
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3184
diff
changeset

97 
CANONICAL_REPO ?= http://ipkg.us.oracle.com/solaris11/release/ 
591
d3cce09912d0
7114186 Can't publish components in s11sru branch
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
556
diff
changeset

98 