[OpenAFS-devel] [PATCH] change OpenAFS-1.2.10 SRPM to work better with RedHat

Derrick J Brashear shadow@dementia.org
Sun, 17 Aug 2003 03:17:53 -0400 (EDT)


One more thing:

On Fri, 15 Aug 2003, David Howells wrote:

>   (9) All lines including <net/if.h> or "net/if.h" in the module now include
>       <linux/if.h> instead.

I dealt with this for 1.2.10 another way everywhere I found that it
mattered. I'm guessing you did this patch for an earlier version and
ported it forward without checking what you needed, because:
+--- openafs-orig/src/afs/afs_analyze.c 2003-06-24 16:51:35 +0100
++++ openafs-1.2.9/src/afs/afs_analyze.c        2003-06-24 16:51:39 +0100
+@@ -20,7 +20,7 @@
+
+ #ifndef UKERNEL
+ #if !defined(AFS_LINUX20_ENV) && !defined(AFS_FBSD_ENV)
+-#include <net/if.h>
++#include <linux/if.h>
+ #include <netinet/in.h>
+ #endif
+

AFS_LINUX20_ENV should be defined on every version of Linux we build for.

Remove this part (the linux/if.h change), and retry. It should still work.

That really only leaves the other question: can we, after these changes,
still build for other than just the most recent kernel version whose
source is installed?

Well, that and the inevitable person who I'm betting will grump that they
want the repository of modules and the "picker" script, but hopefully
they'll tell us why no other answer could work (if that's true) and not
just spew.