Bug 103430 - sys-cluster/mpich-1.2.6-r2 depends on /usr/afsws/
Bug#: 103430 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: hp-cluster@gentoo.org Reported By: mmokrejs@ribosome.natur.cuni.cz
Component: Applications
URL: 
Summary: sys-cluster/mpich-1.2.6-r2 depends on /usr/afsws/
Keywords:  
Status Whiteboard: 
Opened: 2005-08-23 03:15 0000
Description:   Opened: 2005-08-23 03:15 0000
configure output contains:

checking for Kerberos (/usr/kerberos)... checking for AFS (/usr/afsws)...
checking for afs/kauth.h... no
checking for afs/kautils.h... no
checking for afs/auth.h... no
no

------- Comment #1 From Stefaan De Roeck 2005-08-23 16:33:32 0000 -------
Judging from your configure output, you have the /usr/afsws directory in place,
and do not have /usr/include/afs/{kauth.h,kautils.h,auth.h}.  

On my system, I get:
checking for Kerberos (/usr/kerberos)... checking for AFS (/usr/afsws)...
checking for afs/kauth.h... yes
checking for afs/kautils.h... yes
checking for afs/auth.h... yes
yes

I think:
- it compiles without AFS-support on installations with old (non-FHS-compliant)
openafs installations
- it compiles with AFS-support whenever someone with a new (FHS-compliant)
openafs installation also creates the directory /usr/afsws (hence the output
above).  Suggestion: remove this check
- the ebuild itself is currently totally AFS-unaware

------- Comment #2 From Martin Mokrejš 2005-08-24 12:17:44 0000 -------
No, I do have /usr/afsws as it contains the binaries I use to distribute within
the cell. I just wanted to make you aware of yet another dependency on afs. But
am in contact with developers of mpich and mpich2 and some fixes will appear
shortly.


anyway, this I get with mpich-1.2.7:

configure:1423: checking for Kerberos (/usr/kerberos)
configure:1495: checking for AFS (/usr/afsws)
configure:1503: checking for afs/kauth.h
configure:1513: icc -E  conftest.c >/dev/null 2>conftest.out
configure(1509): catastrophic error: could not open source file "afs/kauth.h"
  #include <afs/kauth.h>
                        ^
configure: failed program was:
#line 1508 "configure"
#include "confdefs.h"
#include <afs/kauth.h>
configure:1537: checking for afs/kautils.h
configure:1547: icc -E  conftest.c >/dev/null 2>conftest.out
configure(1543): catastrophic error: could not open source file "afs/kautils.h"
  #include <afs/kautils.h>
                          ^
configure: failed program was:
#line 1542 "configure"
#include "confdefs.h"
#include <afs/kautils.h>
configure:1571: checking for afs/auth.h
configure:1581: icc -E  conftest.c >/dev/null 2>conftest.out
configure(1577): catastrophic error: could not open source file "afs/auth.h"
  #include <afs/auth.h>
                       ^
configure: failed program was:
#line 1576 "configure"
#include "confdefs.h"
#include <afs/auth.h>


It's clear that I have to pass -I/usr/afsws/include in CPPFLAGS. ;)

------- Comment #3 From Stefaan De Roeck 2005-08-25 07:03:33 0000 -------
Come on.  We're talking Gentoo here.  You know perfectly well that
Gentoo chooses to put OpenAFS in FHS locations.  Therefore the only
thing that needs to be adapted to get this thing working properly, is
to remove the requirement that /usr/afsws exists, just as I said in my
previous comment.  Yes, I did test this myself.  You can pass all the
-I/usr/afsws/include in CPPFLAGS that you want on your own system, but
please, your last remark is just here to confuse any developer that
would need to check up on this later.

So now to get this straight: when using one of the newer openafs
ebuilds (>=1.2.13) that will be promoted to stable, the include files
required will be in /usr/include/afs/...  The checking for /usr/afsws
is for Transarc-paths, which aren't used on Gentoo and will therefore
not be found, thus this check should be omitted if AFS-support is
wanted.

------- Comment #4 From Martin Mokrejš 2005-08-25 09:52:15 0000 -------
So follow-up for comment #3: yes, so someone has to patch configure so it finds
the headers in FHS. ;-)

------- Comment #5 From Donnie Berkholz 2006-09-24 21:27:24 0000 -------
Fixed in CVS, sorry for the delay.