Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem emerging openafs-kernel-1.6.2_pre3 with kernel 3.8.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
n00berry
n00b
n00b


Joined: 25 Feb 2013
Posts: 19

PostPosted: Mon Feb 25, 2013 10:54 pm    Post subject: Problem emerging openafs-kernel-1.6.2_pre3 with kernel 3.8.0 Reply with quote

I'm new to Gentoo, and I was hoping I could get some expert help with a problem I'm having.

I am having trouble emerging openafs-kernel-1.6.2_pre3 with kernel 3.8.0. Specifically, the build fails with the following message:
Code:
In file included from /var/tmp/portage/net-fs/openafs-kernel-1.6.2_pre3/work/openafs-1.6.2pre3/src/libafs/MODLOAD-3.8.0-gentoo-MP/rx_kmutex.c:24:0:
/var/tmp/portage/net-fs/openafs-kernel-1.6.2_pre3/work/openafs-1.6.2pre3/src/afs/LINUX/osi_compat.h: In function ‘afs_linux_search_keyring’:
/var/tmp/portage/net-fs/openafs-kernel-1.6.2_pre3/work/openafs-1.6.2pre3/src/afs/LINUX/osi_compat.h:194:13: error: ‘afs_ucred_t’ has no member named ‘tgcred’
/var/tmp/portage/net-fs/openafs-kernel-1.6.2_pre3/work/openafs-1.6.2pre3/src/afs/LINUX/osi_compat.h:196:26: error: ‘afs_ucred_t’ has no member named ‘tgcred’


From this page, I suspect that I need to apply a patch to openafs-kernel:
https://aur.archlinux.org/packages/openafs/

I think the patches I need to apply are somehow contained on these pages:
http://gerrit.openafs.org/#change,8941
http://gerrit.openafs.org/#change,8942
http://gerrit.openafs.org/#change,8948

I think I need to use those pages to make a .patch file that I can stick into the directory:
/etc/portage/patches/net-fs/openafs-kernel/

Does anyone have a recipe or a suggestion for how to make such a .patch file? Thanks for any insight!

More information follows below.

My build log is here:
http://pastebin.com/xVuXD1au

The output of "emerge --info '=net-fs/openafs-kernel-1.6.2_pre3'" is here:
http://pastebin.com/Rq3vHrum

The following is the output of "emerge -pqv '=net-fs/openafs-kernel-1.6.2_pre3'"
Code:
[ebuild  N    ] net-fs/openafs-kernel-1.6.2_pre3
Back to top
View user's profile Send private message
n00berry
n00b
n00b


Joined: 25 Feb 2013
Posts: 19

PostPosted: Tue Feb 26, 2013 1:45 pm    Post subject: Reply with quote

I was able to get net-fs/openafs-1.6.2_pre3 to compile. Here is my recipe, for anyone who had the same problem.

I visited this web page:
https://aur.archlinux.org/packages/openafs/

I downloaded this ARCH linux package, linked from the above page, which apparently compiles with kernel 3.8.0:
https://bitbucket.org/Bewahn/openafs-archlinux-package/get/1.6.1.tar.bz2

I unzipped the .bz2 file and extracted the file "fix-linux-3_8.patch"

I made the following folder:
/etc/portage/patches/net-fs/openafs-kernel/

I moved the patch file into that folder:
/etc/portage/patches/net-fs/openafs-kernel/fix-linux-3_8.patch

I edited the file:
/etc/portage/bashrc

So that it contained the lines:
Code:
 post_src_unpack() {
   if type epatch_user >& /dev/null; then
      cd "${S}"
      epatch_user
   fi
}


Then I emerged openafs without an issue:
Code:
emerge -av openafs


Hooray!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum