Ebuild for sys-fs/fuse4bsd-0.3.0 and changes in fuse-2.6.0_pre2 required by it.
Created attachment 86891 [details, diff] fuse-2.6.0_pre2.ebuild_patch
Created attachment 86892 [details] fuse4bsd-0.3.0.ebuild
There's no conditional inherit, especially use in global scope can't be used at all. I suppose the only way to fix this is to split fuse's module from fuse's libraries that are cross-platforms. Stefan what you think, is it feasible to have a new version of fuse with only the userland, and one with only the module? This would also follow how things are done with other packages (and minimise the need of rebuild after a kernel update).
johnm I am putting you on CC here to ok the linux-mod patch, includes bsd-dep and linux-postinst-conditional-depmod: http://genstef.homelinux.org/linux-mod-postinst-and-linux-only.diff ok flameeyes, the problem with splitting out the module is that I want users to be able to emerge fuse and have it working (and that includes a kernel module). A fuse->fuse-module DEPEND is not possible, because portage doe snot allow kernel-config-confitional DEPENDs whcih would be needed to cover all cases. However fixing the fuse module in conjunction with the above linux-mod patch is pretty easy: http://genstef.homelinux.org/fuse-bsd.patch My patches are a modified version of arachnist's and have been tested by him. Thanks arachnist!
Assuming its been tested, (and im sure it has been) this all looks fine. My availability over the past week or so has been a little stodgy at best, so please feel free to commit this direct to the tree. Regards, John
ok, I added both my patches to the tree. Leaving it to the bsd team to add fuse4bsd and the keyword to fuse. Thanks all :)
Ebuild and keywords added, thanks Robert, Stefan and John :)