[OpenAFS-devel] Building binary rpms for 1.5.77

Derrick Brashear shadow@gmail.com
Thu, 7 Oct 2010 14:15:55 -0400


On Thu, Oct 7, 2010 at 1:57 PM, Phillip Moore <w.phillip.moore@gmail.com> w=
rote:
> 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. =A0After installing all the prerequisite rpms, I g=
et
> 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: [: =3D: 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=3D4 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.co=
m>
>>> 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. =A0There 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. =A0This documentation:
>>>> http://wiki.openafs.org/AFSLore/HowToBuildOpenAFSFromSource/
>>>> seems out of date, since it discusses cvs instead of git. =A0It also o=
nly
>>>> 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 i=
s
>> used. We just extracted the src tarball, created the missing .version fi=
le,
>> 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 experienc=
e
>> with it don't always have the time to build RPMs ourselves. Even SRPMs w=
ould
>> be helpful.
>>
>> --andy
>



--=20
Derrick