Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179669

Summary: kernel.eselect module improvement for FreeBSD
Product: Gentoo/Alt Reporter: Pierre Guinoiseau <geekounet>
Component: FreeBSDAssignee: Gentoo eselect Team <eselect>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: bsd+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kernel.eselect.diff

Description Pierre Guinoiseau 2007-05-24 19:26:13 UTC
Hi,
here is a patch which improves the kernel.eselect module in order to work with the freebsd kernel. It can even be easily modified in order to work with others kernels.
Comment 1 Pierre Guinoiseau 2007-05-24 19:27:04 UTC
Created attachment 120214 [details, diff]
kernel.eselect.diff
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 10:33:42 UTC
eselect team, it's your call; I have some doubts with a cross-ROOT environment, but, well, it's your call.
Comment 3 Ulrich Müller gentoo-dev 2009-06-05 15:17:28 UTC
+case `uname -s` in
+	FreeBSD) KERNEL="sys";;
+	*) KERNEL="linux";;
+esac

Eselect doesn't allow running commands in global scope, so we cannot apply this patch. At least the uname call should be moved into a function.

Apart from this, I think it would be better to have a new and differently named module for BSD.
Comment 4 Ulrich Müller gentoo-dev 2012-06-23 20:40:50 UTC
No reply since three years, therefore closing.

Feel free to reopen with a new patch.