docs/jds-rules.html
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 6213 116f2673981f
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5808
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     1
<h2>JDS Rules</h2>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     2
5809
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
     3
<style>
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
     4
li {padding:3px;}
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
     5
</style>
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
     6
5808
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     7
<p>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     8
The following rules apply for hacking on the JDS sources -
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     9
<p>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    10
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    11
<ul>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    12
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    13
	All patches that are not branding or vendor specific configuration
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    14
	<b>MUST</b> be submitted upstream to the original community of the
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    15
	component.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    16
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    17
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    18
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    19
	Patches that are rejected by the upstream community are considered
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    20
	<b>broken</b> and should be reworked where possible. Each patch
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    21
	that remains locally increases the maintenance burden for any
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    22
	future work with that component.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    23
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    24
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    25
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    26
	<b>FIXIT@THESOURCE</b>: Find the root cause of the problem and 
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    27
	either fix it yourself, or collaborate to get it fixed. You should
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    28
	not apply a workaround if at all possible. Temporary workarounds are
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    29
	appropriate in some cases, although not something that should be 
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    30
	done long term.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    31
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    32
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    33
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    34
	Patches should be applied within the Linux spec files and <b>MUST</b>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    35
	work on <b>both</b> Linux and Solaris.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    36
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    37
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    38
  <li>
6213
116f2673981f misc changes.
gman
parents: 5809
diff changeset
    39
	Avoid using <b>%ifos</b>
5808
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    40
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    41
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    42
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    43
	If a patch requires images or other binary files, put those in 
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    44
	ext-sources. Remember to use the -kb CVS option when adding
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    45
	binaries. Where possible other files should be merged into
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    46
	a patch.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    47
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    48
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    49
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    50
	Update %changelog in the spec file for <b>ALL</b> non-trivial 
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    51
	changes and make sure you have a ChangeLog entry to accompany
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    52
	this. There is a ChangeLog in the top level directory, and a
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    53
	ChangeLog in the Solaris directory. Use them as appropriate.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    54
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    55
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    56
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    57
	The commit log message should be the same as what is in the
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    58
	ChangeLog entry. When you go to commit, do not use the -m
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    59
	CVS option, instead wait for the prompt, and cut and paste
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    60
	your ChangeLog entry in it.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    61
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    62
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    63
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    64
	Follow the spec file templates -
5809
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
    65
	<blockquote>
5808
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    66
	<dl>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    67
	  <dt>docs/template.spec</dt>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    68
          <dd>Linux spec file template</dd>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    69
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    70
	  <dt>docs/SUNWtemplate.spec</dt>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    71
          <dd>Solaris spec file template</dd>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    72
	</dl>
5809
6c5ea9330f7b 2005-09-12 Glynn Foster <[email protected]>
gman
parents: 5808
diff changeset
    73
	</blockquote>
5808
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    74
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    75
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    76
  <li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    77
	Avoid patching patches.
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    78
  </li>
04cd7e6bacf2 2005-09-12 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    79
</ul>