[OpenAFS] openafs 1.2.10 on fedora core 1.0

Derek Atkins warlord@MIT.EDU
Wed, 12 Nov 2003 14:31:38 -0500


Hi,

David Botsch <dwb7@ccmr.cornell.edu> writes:

> Sure. See attached.

Thanks.  I've got a few questions...

>  # Set 'krb5support' to 1 if you want to build the openafs-krb5 package
>  # to distribute aklog and asetkey
> -%define krb5support 1
> +%define krb5support 0

Why did you set krb5 support to 0 if you also (later) modify the
aklog build?

> -config_opts="--enable-redhat-buildsys \
> -%if %{enable_bitmap_later}
> -	--enable-bitmap-later \
> -%endif

First, why do you disable the "--enable-redhat-buildsys"?  What
exactly is failing when this remains in the build?  Note that this
could be why you're failing to get properly-named modules.  It's also
possible that the SPEC doesn't deal with overriding the /boot/kernel.h
file, or that Red Hat has removed support for older platforms like
i386 and/or i586.  However, removing this is the wrong answer, and
WILL cause the SPEC to fail in a number of other ways, in particular
when trying to build for a kernel on a different processor-type.

It would be much better if you could help me figure out why the
"redhat-buildsys" is failing.

> -%if %{enable_bos_restricted_mode}
> -	--enable-bos-restricted-mode \
> -%endif
> -%if %{enable_fast_restart}
> -	--enable-fast-restart \
> -%endif
> -	--enable-transarc-paths"
> +#config_opts="--enable-redhat-buildsys \
> +#%if %{enable_bitmap_later}
> +#	--enable-bitmap-later \
> +#%endif
> +#%if %{enable_bos_restricted_mode}
> +#	--enable-bos-restricted-mode \
> +#%endif
> +#%if %{enable_fast_restart}
> +#	--enable-fast-restart \
> +#%endif
> +config_opts="--enable-transarc-paths"

Another question is why you disable the ability to enable fast
restart, bitmap-later, bos-restricted-mode, and fast-restart?

> @@ -447,10 +447,11 @@
>  %if %{krb5support}
>  # Now build aklog/asetkey
>  (cd afs-krb5/src &&
>  	./configure --prefix=/usr --with-krb5=/usr/kerberos \
>  	    --with-afs=`pwd`/../../${sysname}/dest/ && \
> +	perl -i -pe 's/-lkrb524//' Makefile && \
>  	make all PROGS="asetkey aklog ka-forwarder" && \
>  	touch afs2k5db && touch fakeka && \
>  	make install PROGS="asetkey aklog ka-forwarder" \
>  	    DESTDIR=`pwd`/../../${sysname}/dest/ INSTALL_BIN=/bin \
>  	    INSTALL_SBIN=/etc) || exit 1

Why do you do this if you've disabled krb5 support?  Actually a better
way to deal with this is to change the afs-krb5 patch, or to add
another patch that performs the same operation.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available