author  Mike Sullivan <Mike.Sullivan@Oracle.COM> 
Mon, 11 Nov 2013 13:23:43 0800  
changeset 1547  14b811e3f0f5 
parent 1530  cb37eb583eb9 
child 1573  06b6abfdf78a 
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 
# 
1098
156f5ea4d9c2
Close of build 13.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1093
diff
changeset

21 
# Copyright (c) 2010, 2013, 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 
# 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

27 
# release_major.release_minor.update.SRU.platform.buildid.nightlyid 
538
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 
# 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

31 
# 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

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

33 
# buildid : the build number of the last nonzero element from above 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

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

35 
# 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

36 
# This scheme is used below. 
538
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 

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

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

40 
# 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

41 
# 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

42 
# 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

43 
UPDATENUM ?= 0 
538
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 
# 
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

46 
# 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

47 
# 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

48 
# 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

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

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

51 

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 
# 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

54 
# 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

55 
# 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

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

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

58 

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 
# 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

61 
# 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

62 
# 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

63 
# 
1547
14b811e3f0f5
Close of build 35.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1530
diff
changeset

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

65 

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

66 
# 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

67 
# 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

68 
# builds can't be mixed. Mixing packages from different builds can 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

69 
# easily result in broken global and nonglobal zones. Or at least 
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

70 
# that's the case in ON, which this is copied from. We keep it simple, 
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

71 
# though you could use something like this if you want: 
538
d8d7345db00f
7104397 Userland should split out package BUILD_VERSION information
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

72 
# 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

73 
#NIGHTLYID ?= $(shell hg tip template '{rev}\n') 
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

74 
# 
1383
41b331c5dc97
Close of build 26.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1374
diff
changeset

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

76 

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

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

78 
# 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

79 
# 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

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

81 
BRANCHID ?= \ 
944
457586ba0add
7190084 Userland needs to update its IPS schema for S12
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
936
diff
changeset

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

83 

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

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

85 
# 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

86 
# 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

87 
# 
957
255465c5756f
Close of build 04.
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
944
diff
changeset

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

89 

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

90 
# 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

91 
# hasn't been set in the environment. 
979
5e64c807d737
7198959 default pkglint repo should be s12 now
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
972
diff
changeset

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

93 