author  Vladimir Marek <Vladimir.Marek@oracle.com> 
Mon, 04 Mar 2013 21:41:55 +0100  
branch  s11u1sru 
changeset 2511  4a3540719f56 
parent 2449  edc24aa37142 
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 
# 
644  21 
# Copyright (c) 2010, 2012, 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 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

51 
UPDATENUM ?= 1 
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 
# 
2345
350128731b62
7197720 Userland needs a home for S11u1 SRU fixes.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
diff
changeset

58 
SRUNUM ?= 1 
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 
# 
2345
350128731b62
7197720 Userland needs a home for S11u1 SRU fixes.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
diff
changeset

72 
BUILDID ?= 0 
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 
# 
2345
350128731b62
7197720 Userland needs a home for S11u1 SRU fixes.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
diff
changeset

79 
#NIGHTLYID ?= $(shell hg tip template '{rev}\n') 
350128731b62
7197720 Userland needs a home for S11u1 SRU fixes.
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
2337
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. 
2449
edc24aa37142
16004617 15943465 updated CANONICAL REPO to point to support vs release
Melynda Hunter <melynda.hunter@Oracle.COM>
parents:
2445
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 