Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600 - kernel version detection in alsa-driver ebuild
Summary: kernel version detection in alsa-driver ebuild
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
Depends on: 599
  Show dependency tree
Reported: 2002-02-08 00:48 UTC by Arcady Genkin
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Arcady Genkin 2002-02-08 00:48:17 UTC
The kernel version detection in alsa-driver ebuild uses shell commands outside
of a function.  For argumentation on not doing it this way, please refer to
comment 4 to bug 517 by Daniel Robbins.

This bug depends on the resolution of bug 599.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-02-08 10:59:54 UTC
see media-video/nvidia-kernel for an example of how we need to do it.
Comment 2 Brian Raymond 2002-03-02 12:18:08 UTC
The ebuild currently uses the symlink of /usr/src/linux to figure out what set
of kernel files to use. It also uses that symlink to determine where to move the
modules after they are built (assumption). This will cause problems if they are
not the same. I suggest using include/linux/version.h "UTS_RELEASE: definition
or something similar to determine where to put them.

Comment 3 Arcady Genkin (RETIRED) gentoo-dev 2002-03-02 19:56:37 UTC
IMO it's even more probable to have linux headers from a version of kernel,
older than the one currently running.  [There is an idea that the kernel headers
should be the same as the ones, against which libc was compiled.]

As another idea, perhaps we should let the user easily override the automatic
kernel version detection by, say, setting an environment variable at build time.
Comment 4 Bart Verwilst 2002-03-18 11:11:12 UTC
I don't have alsa on my system or USE flag, because i use arts/kde... So i'm of 
little use for this bug.