[OpenAFS-devel] Building binary rpms for 1.5.77

Phillip Moore w.phillip.moore@gmail.com
Thu, 7 Oct 2010 17:18:36 -0400


--00163630f0f1eb1ac804920d6f6c
Content-Type: text/plain; charset=ISO-8859-1

OK, I guessed on the .version file, and it appears I guessed wrong.

First, I looked at that tag in the trunk:

PWD = ~/dev/openafs/trunk]
pmoore@Renegade$ git describe --abbrev=4 HEAD
BP--openafs-stable-1_6_x-174-g50920

Just for giggles, I tried this:

echo openafs-devel-1_5_77 > .version

and then I was able to at least build the srpm.  However, when rebuilding
the srpm to get binary rpms:

+ /usr/bin/bzip2 -dc /var/tmp/rpm-root/SOURCES/openafs-UNKNOWN-doc.tar.bz2
+ tar -xf -
tar: Read 6144 bytes from -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd openafs-UNKNOWN
/var/tmp/rpm-tmp.73321: line 51: cd: openafs-UNKNOWN: No such file or
directory
error: Bad exit status from /var/tmp/rpm-tmp.73321 (%prep)

Working backwards, I see where the UNKNOWN comes from.  When building the
srpm (which builds without errors):

    efsops@madefsd01$ ./makesrpm.pl ../../../../openafs-1.5.77-src.tar.bz2
../../../../openafs-1.5.77-doc.tar.bz2
    Building version UNKNOWN

So, I don't think my .version hack worked.  What should have been the
contents of that file for the openefs-1.5.77-src.tar.* files that were
published?  I guessed wrong... :-(

On Thu, Oct 7, 2010 at 2:15 PM, Derrick Brashear <shadow@gmail.com> wrote:

> On Thu, Oct 7, 2010 at 1:57 PM, Phillip Moore <w.phillip.moore@gmail.com>
> wrote:
> > Where does this .version file belong, and what should the contents be?
> > I thought that if I just went ahead and ran makesrpm.pl, it would be
> > obvious, but it's not.  After installing all the prerequisite rpms, I get
> > the following:
> > WARNING: No release notes provided. Using empty file
> > WARNING: No changelog provided. Using empty file
> > /bin/ls: /lib/modules/*/build/include/linux/version.h: No such file or
> > directory
> > unable to determine kernel version
> > sh: line 0: [: =: unary operator expected
> > /bin/ls: /lib/modules/*/build/include/linux/version.h: No such file or
> > directory
>
> you need to install the kernel-devel rpm for your kernel.
>
> > unable to determine kernel version
> > Now, this may very well be related to the missing .version, if I can find
> > out where that shell snippet is, but I'm not sure yet.
>
> it's not related.
>
> you need a file ".version" in the top level srcdir, same directory as
> e.g. configure.ac
> it should look like output from
> git describe --abbrev=4 HEAD
>
> e.g.
> openafs-devel-1_5_77
> at a tag point.
>
> > On Thu, Oct 7, 2010 at 1:15 PM, Andy Cobaugh <phalenor@gmail.com> wrote:
> >>
> >> On 2010-10-07 at 13:07, Derrick Brashear ( shadow@gmail.com ) said:
> >>>
> >>> On Thu, Oct 7, 2010 at 1:05 PM, Phillip Moore <
> w.phillip.moore@gmail.com>
> >>> wrote:
> >>>>
> >>>> I managed to automate setting up a multi-cell environment for testing
> >>>> purposes, but I'm using the binary RPMs for 1.4.12 which are available
> >>>> on
> >>>> openafs.org.  There are numerous features in 1.5.* that want to use,
> so
> >>>> now
> >>>> I'm looking to rebuild all of this with 1.5.77, for which of course no
> >>>> binary rpms have been published yet.
> >>>> I figured that those aren't being put together entirely by hand, so I
> >>>> tried
> >>>> to find out how that are built.  This documentation:
> >>>> http://wiki.openafs.org/AFSLore/HowToBuildOpenAFSFromSource/
> >>>> seems out of date, since it discusses cvs instead of git.  It also
> only
> >>>> discusses creating a source rpm, and I'm looking to build the same set
> >>>> of
> >>>> binary rpms that are available for 1.4.12.
> >>>> Can anyone give me some more pointers on how the 1.4.12 rpms were put
> >>>> together?
> >>>
> >>> there's a makesrpm perl file we ship in src/packaging/RedHat. it takes
> >>> a few arguments, which include the src and doc tarballs for the
> >>> version you want, and will spit out an srpm. you then
> >>> rpmbuild -ba it. not much fuss.
> >>
> >> Should be noted that the current src tarball for 1.5.77 is missing the
> >> .version file. Should be obvious after looking at makesrpm.pl how this
> is
> >> used. We just extracted the src tarball, created the missing .version
> file,
> >> then tar'd it back up.
> >>
> >> On a related note: Will there be RPMs provided for 1.5.78 when it's
> >> released? Many of us that are wanting to help test 1.5 and get
> experience
> >> with it don't always have the time to build RPMs ourselves. Even SRPMs
> would
> >> be helpful.
> >>
> >> --andy
> >
>
>
>
> --
> Derrick
>

--00163630f0f1eb1ac804920d6f6c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><br></div>OK, I guessed on the .version file, and it appears I guessed=
 wrong.<div><br></div><div>First, I looked at that tag in the trunk:</div><=
div><br></div><div><div>PWD =3D ~/dev/openafs/trunk]</div><div>pmoore@Reneg=
ade$ git describe --abbrev=3D4 HEAD</div>
<div>BP--openafs-stable-1_6_x-174-g50920</div><div><br></div><div>Just for =
giggles, I tried this:</div><div><br></div><div>echo=A0openafs-devel-1_5_77=
 &gt; .version</div><div><br></div><div>and then I was able to at least bui=
ld the srpm. =A0However, when rebuilding the srpm to get binary rpms:</div>
<div><br></div><div><div>+ /usr/bin/bzip2 -dc /var/tmp/rpm-root/SOURCES/ope=
nafs-UNKNOWN-doc.tar.bz2</div><div>+ tar -xf -</div><div>tar: Read 6144 byt=
es from -</div><div>+ STATUS=3D0</div><div>+ &#39;[&#39; 0 -ne 0 &#39;]&#39=
;</div>
<div>+ cd openafs-UNKNOWN</div><div>/var/tmp/rpm-tmp.73321: line 51: cd: op=
enafs-UNKNOWN: No such file or directory</div><div>error: Bad exit status f=
rom /var/tmp/rpm-tmp.73321 (%prep)</div><div><br></div></div><div>Working b=
ackwards, I see where the UNKNOWN comes from. =A0When building the srpm (wh=
ich builds without errors):</div>
<div><br></div><div><div>=A0=A0 =A0efsops@madefsd01$ ./<a href=3D"http://ma=
kesrpm.pl">makesrpm.pl</a> ../../../../openafs-1.5.77-src.tar.bz2 ../../../=
../openafs-1.5.77-doc.tar.bz2=A0</div><div>=A0=A0 =A0Building version UNKNO=
WN</div></div>
<div><br></div><div>So, I don&#39;t think my .version hack worked. =A0What =
should have been the contents of that file for the openefs-1.5.77-src.tar.*=
 files that were published? =A0I guessed wrong... :-(</div><br><div class=
=3D"gmail_quote">
On Thu, Oct 7, 2010 at 2:15 PM, Derrick Brashear <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:shadow@gmail.com">shadow@gmail.com</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex;">
<div class=3D"im">On Thu, Oct 7, 2010 at 1:57 PM, Phillip Moore &lt;<a href=
=3D"mailto:w.phillip.moore@gmail.com">w.phillip.moore@gmail.com</a>&gt; wro=
te:<br>
&gt; Where does this .version file belong, and what should the contents be?=
<br>
&gt; I thought that if I just went ahead and ran <a href=3D"http://makesrpm=
.pl" target=3D"_blank">makesrpm.pl</a>, it would be<br>
&gt; obvious, but it&#39;s not. =A0After installing all the prerequisite rp=
ms, I get<br>
&gt; the following:<br>
&gt; WARNING: No release notes provided. Using empty file<br>
&gt; WARNING: No changelog provided. Using empty file<br>
&gt; /bin/ls: /lib/modules/*/build/include/linux/version.h: No such file or=
<br>
&gt; directory<br>
&gt; unable to determine kernel version<br>
&gt; sh: line 0: [: =3D: unary operator expected<br>
&gt; /bin/ls: /lib/modules/*/build/include/linux/version.h: No such file or=
<br>
&gt; directory<br>
<br>
</div>you need to install the kernel-devel rpm for your kernel.<br>
<div class=3D"im"><br>
&gt; unable to determine kernel version<br>
&gt; Now, this may very well be related to the missing .version, if I can f=
ind<br>
&gt; out where that shell snippet is, but I&#39;m not sure yet.<br>
<br>
</div>it&#39;s not related.<br>
<br>
you need a file &quot;.version&quot; in the top level srcdir, same director=
y as<br>
e.g. <a href=3D"http://configure.ac" target=3D"_blank">configure.ac</a><br>
it should look like output from<br>
git describe --abbrev=3D4 HEAD<br>
<br>
e.g.<br>
openafs-devel-1_5_77<br>
at a tag point.<br>
<div><div></div><div class=3D"h5"><br>
&gt; On Thu, Oct 7, 2010 at 1:15 PM, Andy Cobaugh &lt;<a href=3D"mailto:pha=
lenor@gmail.com">phalenor@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 2010-10-07 at 13:07, Derrick Brashear ( <a href=3D"mailto:shado=
w@gmail.com">shadow@gmail.com</a> ) said:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, Oct 7, 2010 at 1:05 PM, Phillip Moore &lt;<a href=3D"m=
ailto:w.phillip.moore@gmail.com">w.phillip.moore@gmail.com</a>&gt;<br>
&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I managed to automate setting up a multi-cell environment =
for testing<br>
&gt;&gt;&gt;&gt; purposes, but I&#39;m using the binary RPMs for 1.4.12 whi=
ch are available<br>
&gt;&gt;&gt;&gt; on<br>
&gt;&gt;&gt;&gt; <a href=3D"http://openafs.org" target=3D"_blank">openafs.o=
rg</a>. =A0There are numerous features in 1.5.* that want to use, so<br>
&gt;&gt;&gt;&gt; now<br>
&gt;&gt;&gt;&gt; I&#39;m looking to rebuild all of this with 1.5.77, for wh=
ich of course no<br>
&gt;&gt;&gt;&gt; binary rpms have been published yet.<br>
&gt;&gt;&gt;&gt; I figured that those aren&#39;t being put together entirel=
y by hand, so I<br>
&gt;&gt;&gt;&gt; tried<br>
&gt;&gt;&gt;&gt; to find out how that are built. =A0This documentation:<br>
&gt;&gt;&gt;&gt; <a href=3D"http://wiki.openafs.org/AFSLore/HowToBuildOpenA=
FSFromSource/" target=3D"_blank">http://wiki.openafs.org/AFSLore/HowToBuild=
OpenAFSFromSource/</a><br>
&gt;&gt;&gt;&gt; seems out of date, since it discusses cvs instead of git. =
=A0It also only<br>
&gt;&gt;&gt;&gt; discusses creating a source rpm, and I&#39;m looking to bu=
ild the same set<br>
&gt;&gt;&gt;&gt; of<br>
&gt;&gt;&gt;&gt; binary rpms that are available for 1.4.12.<br>
&gt;&gt;&gt;&gt; Can anyone give me some more pointers on how the 1.4.12 rp=
ms were put<br>
&gt;&gt;&gt;&gt; together?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; there&#39;s a makesrpm perl file we ship in src/packaging/RedH=
at. it takes<br>
&gt;&gt;&gt; a few arguments, which include the src and doc tarballs for th=
e<br>
&gt;&gt;&gt; version you want, and will spit out an srpm. you then<br>
&gt;&gt;&gt; rpmbuild -ba it. not much fuss.<br>
&gt;&gt;<br>
&gt;&gt; Should be noted that the current src tarball for 1.5.77 is missing=
 the<br>
&gt;&gt; .version file. Should be obvious after looking at <a href=3D"http:=
//makesrpm.pl" target=3D"_blank">makesrpm.pl</a> how this is<br>
&gt;&gt; used. We just extracted the src tarball, created the missing .vers=
ion file,<br>
&gt;&gt; then tar&#39;d it back up.<br>
&gt;&gt;<br>
&gt;&gt; On a related note: Will there be RPMs provided for 1.5.78 when it&=
#39;s<br>
&gt;&gt; released? Many of us that are wanting to help test 1.5 and get exp=
erience<br>
&gt;&gt; with it don&#39;t always have the time to build RPMs ourselves. Ev=
en SRPMs would<br>
&gt;&gt; be helpful.<br>
&gt;&gt;<br>
&gt;&gt; --andy<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<font color=3D"#888888">Derrick<br>
</font></blockquote></div><br></div>

--00163630f0f1eb1ac804920d6f6c--