[OpenAFS-win32-devel] AFS + git + Windows
Mickey Lane
mickeylane33540@gmail.com
Fri, 10 Jul 2009 16:44:05 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01CA017D.A48CC870
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
I would like to start a dialog about building AFS 1.5.60+ for Windows from
the new git repository.
I would also like to thank Simon (plus others?) for the page at
http://www.dementia.org/twiki/bin/view/AFSLore/GitDevelopers.
For whatever reason, I am having a really hard time grasping the basics of
git. Couple that with the fact that all the available material on git plus
the tool environment use the Unix syntax and I'm feeling pretty lost here.
I have the cygwin package with pretty much everything installed. The git
components were updated this AM.
I have a root directory of 'C:\OpenAFS'. Below that, I manually created the
empty directory 'Git'.
I opened the cygwin console, navigated to C:\OpenAFS\Git' and did (with the
noise removed):
$ git clone git://git.openafs.org/openafs.git c:\OpenAFS\Git
Initialized empty Git repository in /cygdrive/c/OpenAFS/Git/OpenAFSGit/.git/
remote: Counting objects: 109525, done.
remote: Compressing objects: 100% (21959/21959), done.
remote: Total 109525 (delta 88082), reused 108078 (delta 86710)
Receiving objects: 100% (109525/109525), 57.55 MiB | 600 KiB/s, done.
Resolving deltas: 100% (88082/88082), done.
Checking out files: 100% (4830/4830), done.
$ git config --global user.name "Mickey Lane"
$ git config --global user.email "mlane@sinenomine.net"
$ cd OpenAFSGit
(now in C:\OpenAFS\Git\OpenAFSGit)
$ git branch -r
origin/HEAD
origin/disconnected
origin/instrumentation
origin/master
origin/openafs-1_3_82-macos-10_4
origin/openafs-devel-1_5_3x
origin/openafs-devel-1_5_x
origin/openafs-devel-autoconf
origin/openafs-prototypes-1_3_x
origin/openafs-rx-enhancements
origin/openafs-rxkad-krb5
origin/openafs-rxkad-krb5-lha
origin/openafs-stable-1_0_x
origin/openafs-stable-1_1_x
origin/openafs-stable-1_2_2x
origin/openafs-stable-1_2_9a
origin/openafs-stable-1_2_x
origin/openafs-stable-1_3_85-linux-oldinode
origin/openafs-stable-1_4_0-branch
origin/openafs-stable-1_4_10_1-branch
origin/openafs-stable-1_4_6-branch
origin/openafs-stable-1_4_7pre5+
origin/openafs-stable-1_4_9-branch
origin/openafs-stable-1_4_x
origin/openafs-windows-kdfs-ifs-branch
origin/prdb-extensions
origin/rxk5
origin/rxk5-devel-1_5_57
origin/rxk5-devel-1_5_x
origin/rxtcp
$ cd ..
I want to make a separate directory tree to do my build in because I add my
own stuff to it (My stuff = my own build batch files + a Visual Studio
Solution) and I don't want to corrupt the original files from openafs.org.
(now in C:\OpenAFS\Git)
$ git clone -l --no-hardlinks --origin mygit
file:///cygdrive/c/OpenAFS/Git/OpenAFSGit MyGit
Initialized empty Git repository in /cygdrive/c/OpenAFS/Git/MyGit/.git/
remote: Counting objects: 109311, done.
remote: Compressing objects: 100% (20578/20578), done.
remote: Total 109311 (delta 87905), reused 109271 (delta 87877)
Receiving objects: 100% (109311/109311), 57.51 MiB | 12490 KiB/s, done.
Resolving deltas: 100% (87905/87905), done.
Checking out files: 100% (4830/4830), done.
This added a directory named 'MyGit' as a peer of the one containing the
openafs.org files. I added my stuff to 'MyGit' and tried to build. Didn't
work and the error is not at all obvious: "config target does not exist"
I repeated the clone process above after doing 'git checkout
origin/openafs-devel-1_5_x' and got the same result.
So my very very basic questions are:
#1 What exactly is 'checkout'? What does it do?
#2 Is making my own directory tree wrong? Should I have done a checkout with
'git checkout -b mygit origin/openafs-devel-1_5_x'?
#3 If I do #2 and then add my directories and files to the
C:\OpenAFS\Git\OpenAFSGit tree, do they go away if I checkout something
else?
#4 When I cloned all the files from openafs.org, did I establish a
relationship between that repository and the one on my machine? If I deleted
everything and started over, would there be a broken link/status/etc
somewhere? (e.g. I can check the same thing out of CVS 10 times without
causing harm.)
Any comments greatly appreciated.
Mickey.
------=_NextPart_000_0007_01CA017D.A48CC870
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal>I would like to start a dialog about building AFS =
1.5.60+
for Windows from the new git repository. <o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I would also like to thank Simon (plus others?) for =
the page
at =
http://www.dementia.org/twiki/bin/view/AFSLore/GitDevelopers.<o:p></o:p><=
/p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>For whatever reason, I am having a really hard time =
grasping
the basics of git. Couple that with the fact that all the available =
material on
git plus the tool environment use the Unix syntax and I'm feeling pretty =
lost
here.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I have the cygwin package with pretty much =
everything
installed. The git components were updated this AM.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I have a root directory of 'C:\OpenAFS'. Below =
that, I manually
created the empty directory 'Git'.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I opened the cygwin console, navigated to =
C:\OpenAFS\Git'
and did (with the noise removed):<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>$ git clone git://git.openafs.org/openafs.git =
c:\OpenAFS\Git<o:p></o:p></p>
<p class=3DMsoNormal>Initialized empty Git repository in
/cygdrive/c/OpenAFS/Git/OpenAFSGit/.git/<o:p></o:p></p>
<p class=3DMsoNormal>remote: Counting objects: 109525, =
done.<o:p></o:p></p>
<p class=3DMsoNormal>remote: Compressing objects: 100% (21959/21959), =
done.<o:p></o:p></p>
<p class=3DMsoNormal>remote: Total 109525 (delta 88082), reused 108078 =
(delta
86710)<o:p></o:p></p>
<p class=3DMsoNormal>Receiving objects: 100% (109525/109525), 57.55 MiB =
| 600
KiB/s, done.<o:p></o:p></p>
<p class=3DMsoNormal>Resolving deltas: 100% (88082/88082), =
done.<o:p></o:p></p>
<p class=3DMsoNormal>Checking out files: 100% (4830/4830), =
done.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>$ git config --global user.name "Mickey =
Lane"<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>$ git config --global user.email
"mlane@sinenomine.net"<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>$ cd OpenAFSGit<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>(now in C:\OpenAFS\Git\OpenAFSGit)<o:p></o:p></p>
<p class=3DMsoNormal>$ git branch -r<o:p></o:p></p>
<p class=3DMsoNormal> origin/HEAD<o:p></o:p></p>
<p class=3DMsoNormal> origin/disconnected<o:p></o:p></p>
<p class=3DMsoNormal> origin/instrumentation<o:p></o:p></p>
<p class=3DMsoNormal> origin/master<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-1_3_82-macos-10_4<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-devel-1_5_3x<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-devel-1_5_x<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-devel-autoconf<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-prototypes-1_3_x<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-rx-enhancements<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-rxkad-krb5<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-rxkad-krb5-lha<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_0_x<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_1_x<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_2_2x<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_2_9a<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_2_x<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_3_85-linux-oldinode<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_4_0-branch<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_4_10_1-branch<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_4_6-branch<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_4_7pre5+<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-stable-1_4_9-branch<o:p></o:p></p>
<p class=3DMsoNormal> origin/openafs-stable-1_4_x<o:p></o:p></p>
<p class=3DMsoNormal> =
origin/openafs-windows-kdfs-ifs-branch<o:p></o:p></p>
<p class=3DMsoNormal> origin/prdb-extensions<o:p></o:p></p>
<p class=3DMsoNormal> origin/rxk5<o:p></o:p></p>
<p class=3DMsoNormal> origin/rxk5-devel-1_5_57<o:p></o:p></p>
<p class=3DMsoNormal> origin/rxk5-devel-1_5_x<o:p></o:p></p>
<p class=3DMsoNormal> origin/rxtcp<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>$ cd ..<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I want to make a separate directory tree to do my =
build in
because I add my own stuff to it (My stuff =3D my own build batch files =
+ a
Visual Studio Solution) and I don't want to corrupt the original files =
from
openafs.org.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>(now in C:\OpenAFS\Git)<o:p></o:p></p>
<p class=3DMsoNormal>$ git clone -l --no-hardlinks --origin mygit
file:///cygdrive/c/OpenAFS/Git/OpenAFSGit MyGit<o:p></o:p></p>
<p class=3DMsoNormal>Initialized empty Git repository in
/cygdrive/c/OpenAFS/Git/MyGit/.git/<o:p></o:p></p>
<p class=3DMsoNormal>remote: Counting objects: 109311, =
done.<o:p></o:p></p>
<p class=3DMsoNormal>remote: Compressing objects: 100% (20578/20578), =
done.<o:p></o:p></p>
<p class=3DMsoNormal>remote: Total 109311 (delta 87905), reused 109271 =
(delta
87877)<o:p></o:p></p>
<p class=3DMsoNormal>Receiving objects: 100% (109311/109311), 57.51 MiB =
| 12490
KiB/s, done.<o:p></o:p></p>
<p class=3DMsoNormal>Resolving deltas: 100% (87905/87905), =
done.<o:p></o:p></p>
<p class=3DMsoNormal>Checking out files: 100% (4830/4830), =
done.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>This added a directory named 'MyGit' as a peer of =
the one
containing the openafs.org files. I added my stuff to 'MyGit' and tried =
to
build. Didn't work and the error is not at all obvious: "config =
target
does not exist"<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I repeated the clone process above after doing 'git =
checkout
origin/openafs-devel-1_5_x' and got the same result.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>So my very very basic questions are:<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>#1 What exactly is 'checkout'? What does it =
do?<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>#2 Is making my own directory tree wrong? Should I =
have done
a checkout with 'git checkout -b mygit =
origin/openafs-devel-1_5_x'?<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>#3 If I do #2 and then add my directories and files =
to the
C:\OpenAFS\Git\OpenAFSGit tree, do they go away if I checkout something =
else?<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>#4 When I cloned all the files from openafs.org, =
did I
establish a relationship between that repository and the one on my =
machine? If
I deleted everything and started over, would there be a broken =
link/status/etc
somewhere? (e.g. I can check the same thing out of CVS 10 times without =
causing
harm…)<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Any comments greatly appreciated.<o:p></o:p></p>
<p class=3DMsoNormal>Mickey.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
------=_NextPart_000_0007_01CA017D.A48CC870--