Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51542 - OpenAFS versions that support 2.6 kernel are available
Summary: OpenAFS versions that support 2.6 kernel are available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Stefaan De Roeck (RETIRED)
URL: http://www.openafs.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-20 01:21 UTC by Allen Parker
Modified: 2005-08-16 06:40 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for OpenAFS 1.3.74 (openafs-1.3.74.ebuild,3.35 KB, text/plain)
2004-11-11 22:54 UTC, AD Rutledge
Details
Fix for PIC issue in previous ebuild (openafs-1.3.74.patch,853 bytes, patch)
2004-11-11 23:15 UTC, AD Rutledge
Details | Diff
Final update to 1.3.74 ebuild (openafs-1.3.74.ebuild,3.55 KB, text/plain)
2004-11-13 19:41 UTC, AD Rutledge
Details
Accompanying file for files/ dir for 1.3.74 ebuild (01openafs,152 bytes, text/plain)
2004-11-13 19:45 UTC, AD Rutledge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Parker 2004-05-20 01:21:41 UTC
Latest is 1.3.64(>=2.5 kernel support added), latest stable is 1.2.11 (only <=2.4 kernels supported). Can we bump this? Last time it was touched was April 28th by agriffis.
Comment 1 Tamas Hauer 2004-06-15 02:09:57 UTC
I have just compiled successfully openafs-snap-2004-06-12 against the development-sources-2.6.6.

I am running client only but so far it has been working without a problem.

Did not seem to work with gentoo-dev-sources-2.6.5-r1 though
Comment 2 David M. Andersen 2004-10-09 08:38:23 UTC
Well I got openafs-1.3.71 to build with 2.6.8-gentoo-r3, but only without an ebuild.  It seems that portage exports the ARCH env var, which screws up one of the makefiles (using x86 instead of i386).  I don't know if it actually RUNS though (plus it does generate warnings).

I think I'll give it another shot.
Comment 3 David M. Andersen 2004-10-09 11:16:47 UTC
The initscripts don't seem to like the new versions.  You'll need to check for .ko vs. .o files and the ksyms thing.

I was able to get the client running with two commands (keep in mind I already had it configured from when I was using openafs 1.2.x and linux 2.4.x).

# insmod /usr/vice/etc/modload/libafs-2.6.8-gentoo-r3.ko
# afsd

That seems to load it.

# umount /afs
# rmmod libafs

That seems to unload it.

http://www.coe.uncc.edu/~danderse/www/openafs-1.3.71.ebuild

That's the ebuild I used.  I actually put it on that web site using openafs-1.3.71.

Some of the lines changed include:
env -u ARCH make CC="$(gcc-getCC)" MT_CC="$(gcc-getCC)" || die make

local sys_name=$(sed -n 's/s%@AFS_SYSNAME@%\(.*\)%g/\1/p' config.status) || die sys_name

env -u ARCH make dest || die dest

Failing to unset ARCH screws it up.

Comment 4 Brenden Matthews 2004-10-21 00:29:44 UTC
The ebuild above works for 1.3.73 also.
Comment 5 AD Rutledge 2004-11-11 22:54:59 UTC
Created attachment 43760 [details]
Ebuild for OpenAFS 1.3.74

This ebuild fixes OpenAFS's use flags, fixes all but pam_afs.krb.so.1 not being
built PIC, and actually builds OpenAFS on linux 2.6.  Unfortunately,
pam_afs.krb.so.1 pulls in archives from directories used to build executables
and I don't know whether the Gentoo policy on no PIC executables (unless PIEs
are needed for grsecurity and the like) overrides PIC libs in this case.  I
favored no PIC executables unless the user manually adds -fPIC to the CFLAGS in
this case.
Comment 6 AD Rutledge 2004-11-11 23:15:19 UTC
Created attachment 43762 [details, diff]
Fix for PIC issue in previous ebuild

Sorry about the quick update -- but after getting the PIC policy explained to
me, I realized that I should post an update on this one.  This makes everything
in OpenAFS get built with -fPIC.
Comment 7 AD Rutledge 2004-11-11 23:17:40 UTC
Also, to use this you will need to add =net-fs/openafs-1.3* to your /etc/portage/package.unmask until that gets removed from /usr/portage/profile/package.mask.
Comment 8 AD Rutledge 2004-11-13 19:41:54 UTC
Created attachment 43900 [details]
Final update to 1.3.74 ebuild

Well, thanks to some suggestions from SpanKY, there's a fix in here for an
absolute symlink that should have been absolute and the env.d file should now
be shipped as a ${FILESDIR} file instead of dynamically created.
Comment 9 AD Rutledge 2004-11-13 19:45:32 UTC
Created attachment 43901 [details]
Accompanying file for files/ dir for 1.3.74 ebuild
Comment 10 Kevin 2004-11-23 06:38:29 UTC
It's not clear based on the comments here whether this ebuild works on one or some or all architectures.  The ebuild itself has keywords indicating support for ppc, but my experience is that without some patches to the 1.3.74 sources, it won't compile for sysname ppc_linux26.  I assembled some diffs for doing that: http://www.gnosys.us/openafs-ppc_linux26.ebuild.tar.gz

HTH.

As a related comment/question, has anyone working on this issue done any work on getting MIT Kerberos 5 integrated with OpenAFS in Gentoo?  Code does exist for doing this (see ftp://ftp.cmf.nrl.navy.mil/pub/kerberos5/afs-krb5-2.0.tar.gz), but I'm having real difficulty building it.  I did it once for x86 architecture, but can't seem to reproduce those results on ppc right now.  It's worth noting that if anyone tries building those sources, I was only able to get aklog and asetkey to build.  The rest of the make failed (it's rather out of date I think).  But I think that aklog is all that's really needed; perhaps asetkey also.  aklog does the job of obtaining AFS tokens based upon pre-existing Kerberos tickets.

It would be really, REALLY nice if, just like I do for MIT Kerberos 5 on Gentoo, I could just emerge openafs AND some sort of mitkrb5-openafs ebuild that accomplished the integration.  I think pretty much everyone is moving or has moved away from OpenAFS as a source of authentication in favor of Kerberos (perhaps either MIT or Heimdal), and having an aklog executable is key for this.
Comment 11 Kevin 2004-11-23 06:42:21 UTC
It's not clear based on the comments here whether this ebuild works on one or some or all architectures.  The ebuild itself has keywords indicating support for ppc, but my experience is that without some patches to the 1.3.74 sources, it won't compile for sysname ppc_linux26.  I assembled some diffs for doing that: http://www.gnosys.us/openafs-ppc_linux26.ebuild.tar.gz

HTH.

As a related comment/question, has anyone working on this issue done any work on getting MIT Kerberos 5 integrated with OpenAFS in Gentoo?  Code does exist for doing this (see ftp://ftp.cmf.nrl.navy.mil/pub/kerberos5/afs-krb5-2.0.tar.gz), but I'm having real difficulty building it.  I did it once for x86 architecture, but can't seem to reproduce those results on ppc right now.  It's worth noting that if anyone tries building those sources, I was only able to get aklog and asetkey to build.  The rest of the make failed (it's rather out of date I think).  But I think that aklog is all that's really needed; perhaps asetkey also.  aklog does the job of obtaining AFS tokens based upon pre-existing Kerberos tickets.

It would be really, REALLY nice if, just like I do for MIT Kerberos 5 on Gentoo, I could just emerge openafs AND some sort of mitkrb5-openafs ebuild that accomplished the integration.  I think pretty much everyone is moving or has moved away from OpenAFS as a source of authentication in favor of Kerberos (perhaps either MIT or Heimdal), and having an aklog executable is key for this.
Comment 12 Kevin 2004-11-23 06:53:19 UTC
Sorry for the double-post.

Mike Frysinger says that AD Rutledge is the person to talk to about this stuff.  If you would like some help with this I'd be glad to be a part of it.  I've been administering MIT Kerberos on x86 (Linux and Windows) for about a year and a half as well as OpenAFS since February on x86 (SuSE and Gentoo) and just now started doing so with ppc_linux too.
Comment 13 alexander j pierce 2004-12-28 10:55:32 UTC
We just moved to openafs-1.3.77 on our Opteron SLES9 systems, and it is working likea charm.  We had issues with 1.3.74 on 64-bit platforms, but so far 1.3.77 has worked great for us.  Might want to give it a try (or check for newer... right before christmas they rolled 3 or 4 versions in a week)
Comment 14 Steven Jenkins 2005-01-13 21:33:36 UTC
This ebuild fails to compile with 2.6.10. The problem has been discussed on the openafs mailing list (https://lists.openafs.org/pipermail/openafs-info/2004-November/015448.html), but without resolution.
Comment 15 Anthony Gorecki 2005-01-18 18:29:05 UTC
Can we please get a time estimate on when this updated ebuild will be commited to Portage? It's quite frustrating to see OpenAFS sitting here in neglect; are more maintainers needed for this package?
Comment 16 Allen Parker 2005-03-24 02:49:33 UTC
bump
Comment 17 Anthony Gorecki 2005-03-24 02:56:45 UTC
See bug #82075
Comment 18 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-30 14:30:06 UTC
OpenAFS needs a developer to take up maintenance.
Comment 19 Martin Mokrejš 2005-07-15 12:47:54 UTC
Per question #11 from Kevin: afs-krb5 is for openafs + MIT KRB5 integrations.
There are some issues with aklog not working well. See openafs-devel list for
more info.

It's a lot easier to use heimdal with openafs. The kerberos5 support is fine and
kauth(1) available with heimdal is all one actually needs.
Comment 20 Martin Mokrejš 2005-07-25 17:07:04 UTC
Although the 1.3.74 openafs is too old and definitely uninterreting, I'd not
something about the ebuild 2004-11-13 19:41 PDT as it has some design problems:

	SHLIB_CFLAGS="-fPIC" econf \
		--prefix=/usr/afsws/ \
		--enable-transarc-paths \
		--enable-namei-fileserver \
		--enable-largefile-fileserver \
		$(use_enable pam) \
		$(use_enable debug) || die econf

./configure should be instead of econf because econf enforces --prefix
--with-info-path --with-man-path etc.

/usr/afsws was historically used _just_ as a repository of AFS binaries and
sources. It typically contained root.client/, root.server, include/, lib/, man/,
bin/ if I rememeber right. I would have to look into the original IBM AFS
documentation hanging at www.openafs.org. all theirs thick manual have somewhere
in the beginning description of the distribution layout.

What is important that /usr/afs/bin/bosserver is a better/faster replacement to
inetd daemon, used to control other afs related daemons (running on the AFS
server" machines). There are command switches of them to for example fetch AFS
logfiles from any remote AFS server (if you have the right afs token), you can
restart remotely those daemons, you can shutdown the daemons, run fsck on some
partition and fire the daemons up again ... you can upgrade afs binaries. Yes,
it reads the data from /usr/afsws and overwrites binaries on remote server.
Therefore, don't think you can shuffle binaries around and place whatever you
think under /usr/afsws.

openafs should be installed into the transarc paths (/usr/afs/, /usr/afsws,
/usr/vice) and that should not be an option, but imperative. Otherwise, expect
even bugreport like - I cannot fetch BosLog, SalvagerLog from remote server.


The trick with unsetting ARCH variable was recently still a must to get openafs
compiled under gentoo, so keep in mind this for future:

env -u ARCH make CC="$(gcc-getCC)" MT_CC="$(gcc-getCC)" || die make
Comment 21 Stefaan De Roeck (RETIRED) gentoo-dev 2005-07-28 09:18:47 UTC
New ebuilds for openafs 1.2.13 (stable) and 1.3.85 (experimental) are available
for testing.  According to openafs-ml, 1.3.85 is currently undergoing testing so
it can become 1.4rc.

The provided 1.3.85 ebuild is supposed to give the support for openafs on 2.6
kernels, as asked in this bug report.  It'd be great if this ebuild could be tested.
Comment 22 Stefaan De Roeck (RETIRED) gentoo-dev 2005-08-16 06:40:08 UTC
Testing ebuild that supports linux 2.6 on several architectures is now in
portage.  It will remain marked as "testing" until normal rules for keywording
as stable apply.