OK, now I get it...  This comment in openafs.spec.in explain it:

# Determine which elements of OpenAFS to build.  For non-x86 arches
# (subject to the ExclusiveArch setting, below), we build both userspace
# and modules.  For most x86 arches, we build just the kernel modules.  For
# i386, we build just the userspace.  If you're running an i386 kernel,
# you'll need to tweak that last bit.

At least it's not a mystery.  I simple need to define build_userspace and/or
build_modules to override the default decisions:

%ifarch %{ix86}
%define build_userspace 0
%define build_modules 1
%define build_authlibs 1
%endif

%ifarch i386
%define build_userspace 1
%define build_modules 0
%define build_authlibs 1
%endif

The CLI you showed was the hint.  Thanks...

On Thu, Oct 7, 2010 at 9:50 PM, Phillip Moore <[email protected]>wrote:

>
> Seems the --target i686 is a key here.
>
> I read the src/packaging/RedHat/openafs-README file, and it suggests
> setting that option as well, so I rebuilt with it.   Oddly, this time I got
> ONLY the kmod-openafs file:
>
> total 272
> -rw-r--r-- 1 efsops efsops 271437 Oct  7 18:29
> kmod-openafs-1.5.77-1.1.2.6.18_164.el5.i686.rpm
>
> That's it.   There must be a way to get the entire set of rpms built with
> one command.  Now I wonder why --target i686 doesn't build all the others.
>
> More digging....
>
> On Thu, Oct 7, 2010 at 9:44 PM, Andy Cobaugh <[email protected]> wrote:
>
>> On 2010-10-07 at 21:14, Phillip Moore ( [email protected] ) said:
>>
>>>
>>> Is there anything special that needs to be done to coerce the build of
>>> the
>>> kmod-openafs rpm on the 32 bit platform?
>>>
>>> I can't find the code/file/whatever that determines whether or not it
>>> gets
>>> built....
>>>
>>
>> Well, that's all handled by the logic in openafs.spec, in combination with
>> some kmod macros.
>>
>> Make sure you unset ARCH, or use mock to build. There's some logic
>> somewhere that goes wonky if ARCH is set at all in your environment.
>>
>> This is the command line I used (going back through IRC logs, I think it's
>> the right one):
>>
>> rpmbuild --rebuild --define 'kernvers 2.6.18-194.11.1.el5' --define
>> 'build_userspace 1' --define 'build_modules 1' --target i686
>> openafs-1.5.77-1.1.1.src.rpm
>>
>> Hope that works for you.
>>
>> --andy
>>
>
>

Reply via email to