Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2006_04_23.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
11
12    <title>Status for Andrew DeFaria: April 23, 2006 - April 29, 2006 Archives</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/week_2006_04_16.html" title="April 16, 2006 - April 22, 2006" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2006_04_30.html" title="April 30, 2006 - May  6, 2006" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2006_04_16.html">&laquo; April 16, 2006 - April 22, 2006</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2006_04_30.html">April 30, 2006 - May  6, 2006 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">April 27, 2006</h2>
44                      <a id="a000548"></a>
45                      <div class="entry" id="entry-548">
46                         <h3 class="entry-header">Building salira2</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50   <li>Exposed salira2 vob</li>
51
52   <li>Set up multisite schedule for sons-sc-cc to mimic sons-clearcase. Before this sync receives were only performed once! Things started backing up in the storage bays. All cleared out now.</li>
53
54   <li>Attempted to build 4.0. Had problems in dynamic view</li>
55
56   <li>Managed to build in 4.0 snapshot view.</li>
57
58   <li>Figured out that certain exe's were missing execute permission in Clearcase Element Properties. Seems Clearcase 2003.06.00 is a bit more picky about those than Clearcase 2002.05.00! Build now works in dynamic view as well</li>
59 </ul>
60
61 <p><b>TIme Spent:</b> 2 hours</p>
62                               
63                               <p>Simon Zhu wrote:</p>
64
65 <blockquote type="cite">
66   Similar to sc_3.1_dev, I made config spec sc_4.0_dev. It does not make any difference since I could not find “cenopon” under salira2 when I load the view. It seems to me that the VOB was not fully replicated. You may take a look. Thanks.
67 </blockquote>
68
69 <P>The szhu_view4.0 has a config spec of:</p>
70
71 <div class=code><pre>
72 #element * CHECKEDOUT
73 #element * /main/LATEST
74 include //sons-sc-cc/views/official/salira/neopon/cs/sc_4.0_dev
75 #load \salira\neopon
76 load \salira2
77 </pre></div>
78
79 <p>And the following lines appeared in sc_4.0_dev:</p>
80
81 <div class=code><pre>
82 # Now pickup any new elements created at the other site
83 element * .../rel_<b><font color="#3333ff">3.1</font></b>/LATEST -mkbranch sc_4.0
84 element * .../china_4.0/LATEST -mkbranch sc_4.0
85 </pre></div>
86
87 <p>This should be:</p>
88
89 <div class=code><pre>
90 # Now pickup any new elements created at the other site
91 element * .../rel_<b><font color="#ff0000">4.0</font></b>/LATEST -mkbranch sc_4.0<br>
92 element * .../china_4.0/LATEST -mkbranch sc_4.0
93 </pre></div>
94
95 <p>We can see this in the version tree for the root folder \salira2 :</p>
96
97 <blockquote>
98   <img alt="" src="/blogs/images/4.0.jpg" height="373" width="413">
99 </blockquote>
100
101 <p>Prior to fixing the config spec the "eye" pointed to /main/0, which, of course is empty.</p>
102
103 <p>Next I attempted simply a make. Most of it worked! Except:</p>
104
105 <div class=code><pre>
106 [LINKING]      vxWorks_st.elf 
107 Converting to bin...
108 /bin/bash: maketools/convert: Permission denied
109 make: *** [scs.bin] Error 126
110 [ccadmin] sons-sc-cc:ls maketools
111 </pre></div>
112
113 <p>I don't know why I get permission denied when attempting to run maketools/convert. This is only happening in a dynamic view. I created a 4.0_snap view and the build worked fine.</p>
114
115 <p>Ah ah! It appears that the execute bit on the Properties of the Element for maketools/convert.exe was not set, even on sons-clearcase. However it also appears that Clearcase 2002.05.00 didn't care about that but the new Clearcase 2003.06.00 does. I toggled the execute bits on for convert.exe (and other .exe's in maketools) and all is fine.</p>
116
117 <p>Since your view is a snapshot view you'll need to simply do a ct setcs -current.</p>
118
119                               
120                               <p class="entry-footer">
121                                  <span class="post-footers">Posted by  at 10:39 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000548.html">Permalink</a>
122                                  
123                                  
124                               </p>
125                            </div>
126                         </div>
127                      </div>
128                      
129                      
130
131                      <h2 class="date-header">April 24, 2006</h2>
132                      <a id="a000547"></a>
133                      <div class="entry" id="entry-547">
134                         <h3 class="entry-header">XAM Build</h3>
135                         <div class="entry-content">
136                            <div class="entry-body">
137                               <ul>
138   <li>Got XAM ant build to work. Test build almost working</li>
139
140   <li>Ported Build.pl for use in XAM</li>
141 </ul>
142                               
143                               <p>I assume you mean the state of XAM. Here's what I've done:</p>
144
145 <ul>
146   <li>Moved .../platform/L3/platform/src/com/hp/platform/fcas -> .../platform/XAM/server/src/com/hp/platform/fcas</li>
147
148   <li>Moved .../platform/L3/platform/src/test/com/hp/platform/fcas -> .../platform/XAM/server/src/test/com/hp/platform/fcas</li>
149
150   <li>Moved .../riss/W2/xam/client -> .../platform/XAM/client/c</li>
151 </ul>
152
153 <p>By "moved" I mean that I copied those areas from the old place to the new place, added them to source control and rmnamed the old areas. This is as per Rational's recommendation for moving things in a UCM environment.</p>
154
155 <p>Next I attempted to build fcas in the new area. It became quickly apparent that we need to port over the buildTools directory with its build_common.xml if we wish to replicate the build environment of L3.</p>
156
157 <p>With Rahul's help I managed to build the server component in XAM. I have not tackled the client component nor test at this time. I've checked in the buildTools/build_common.xml and the build.xml under the server area.</p>
158
159 <p>Here's how you can build XAM:</p>
160
161 <ul>
162   <li>If necessary rebase your RISS15_xam substream or create view from RISS15_xam</li>
163
164   <li>Change directory to .../platform/XAM/server/src/com/hp/platform/fcas</li>
165
166   <li>type "ant -Dbase_dir=/vobs/platform/XAM -DviewBase=/vobs"</li>
167 </ul>
168
169 <p>Note: viewBase would be different if you are using a snapshot view.</p>
170
171 <p>Since XAM will be separated from L3 the question is: How are dependencies handled? For example, this XAM "depends on" or "imports" code from L3's core and csfr. To address this we added:</p>
172
173 <div class="code"><pre>
174 &lt;pathelement path="${viewBase}/platform/L3/code"/&gt;
175 </pre></div>
176
177 <p>to the ext.classpath in build_common.xml even though the comment for this states:</p>
178
179 <div class="code"><pre>
180 &lt;!--
181     Class path element for Build. Don't add libraries here Libraries
182     should go under devenv/buildenv/lib those libs will be
183     automatically picked up by the following element
184 --&gt;
185 </pre></div>
186
187 <p>You see we now have two different types of libraries, ext.classpath libraries that are built elsewhere and just deposited into devenv/buildenv/lib and our own libraries that are built in another component (in this case the L3 component).</p>
188
189 <p>Also, the above ${viewBase}/platform/L3/code assumes that that directory exists and contains compiled class files. It assume that L3 was built before XAM is built. This introduces the notion of dependencies between components.</p>
190
191 <p>Finally you'll note that we don't build from the /vobs/platform/XAM level, rather we descend down into the /vobs/platform/XAM/server/src/com/hp/platform/fcas level to do our ant build. Questions:</p>
192
193 <ul>
194   <li>Do we need a Build.pl to sit in /vobs/platform/XAM to build everything underneath it?</li>
195
196   <li>Can't ant do recursive ants like make does recursive makes?</li>
197 </ul>
198                               
199                               <p class="entry-footer">
200                                  <span class="post-footers">Posted by  at  7:15 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000547.html">Permalink</a>
201                                  
202                                  
203                               </p>
204                            </div>
205                         </div>
206                      </div>
207                      
208                   </div>
209                </div>
210             </div>
211          </div>
212       </div>
213    </div>
214 </body>
215 </html>