Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74396 - [TRACKER] ebuild conversion to linux-info / linux-mod
Summary: [TRACKER] ebuild conversion to linux-info / linux-mod
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: Tracker
Depends on: 68224 73472 74397 74399 74417 74420 74520 74525 83798 98563 121960 121961 121962 121963 121964 121965 141629
Blocks:
  Show dependency tree
 
Reported: 2004-12-14 09:19 UTC by Daniel Drake (RETIRED)
Modified: 2006-11-17 16:04 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Drake (RETIRED) gentoo-dev 2004-12-14 09:19:21 UTC
Tracker to follow all ebuild conversions to linux-info / linux-mod

Currently, portage provides the ${KV} variable for the kernel version. This is going away. Any ebuilds relying on this should inherit linux-info and use ${KV_FULL}.

Any kernel module (or other) ebuilds using kernel-mod or kmod should be migrated to linux-mod. For sample ebuilds see nvidia-kernel and alsa-driver.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-12-15 22:54:47 UTC
for consideration:

add a function to provide for adding device nodes regardless of devfs, udev or no device management methods.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2004-12-27 12:43:08 UTC
for consideration:

add a function similar to kernel_is that test kernel version as follows:

kernel_is_ge()
{
...
   if [ -n "$1" ]; then
      [ ${KV_MAJOR} -lt $1 ] && return 1
      [ ${KV_MAJOR} -gt $1 ] && return 0
      RESULT=1
   fi
...
   return ${RESULT}
}
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2004-12-28 11:52:40 UTC
as of my next commit, kernel_is will allow ge/gt/le/lt arguments.
for example:

kernel_is ge 2 6 6
will be true if kernel in KERNEL_DIR is greater than, or equal to 2.6.6

if kernel_is 2 6 6 gets passed, it defaults to -eq so unless the kernel running is 2.6.6 it fails.

Obviously, kernel_is 2 6, still works as normal.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2004-12-29 02:43:51 UTC
gt and lt operators does not perform as expected.
for instance, if kernel version is 2.6.9, kernel_is gt 2.6.8 will return false.

my 2 cents: these operators should not be implemented. what would you return in case of kernel_is gt 2 6? either you force all version parts to be passed to kernel_is function or don't implement gt/lt at all.
Comment 5 John Mylchreest (RETIRED) gentoo-dev 2004-12-29 03:10:30 UTC
the gt/lt aren't great. they're only going to work on KV_MAJOR, or the smallest delimeter without me changing the logic some.

It isnt really that useful right now, but bare with me till after this evening.
I comitted as is for ge/le really.
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2004-12-29 06:38:51 UTC
ok, fixed in cvs.
gt/lt should now work as expected.
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2004-12-29 14:56:34 UTC
ummm.. no, it is not ok. try to compare 2.11.2 with 2.1.12 ;)

you cannot resume to a single comparision unless you decide that every parts of version number will never have more than n digits and you precede these numbers with zeros (excepting KV_MAJOR of course - or else bash will believe it is an octal number).

Your previous solution (comment #3) was the good one, but without lt/gt operators.
They are useless anyway.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2004-12-31 01:26:41 UTC
I've corrected the function.

Hope I didn't pissed you off. You're not arround at this time and that function was broken.
Comment 9 Daniel Black (RETIRED) gentoo-dev 2005-01-02 02:33:25 UTC
btw I'm doing bestcrypt now. Thoughts on comment #1?
Comment 10 Daniel Black (RETIRED) gentoo-dev 2005-01-02 20:30:07 UTC
bestcrypt-1.5_p9 is linux-mod now. If I've done anything bad let me know.
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2005-04-01 12:33:04 UTC
fyi: nearly all dependancies have been fixed, except bug #74420
Comment 12 Henrik Brix Andersen 2005-06-17 04:16:12 UTC
Here's a list of ebuilds using kernel-mod.eclass:

sci-misc/comedi-0.7.68
sci-misc/comedi-0.7.67
net-firewall/tuxfrw-2.58-r1
media-libs/svgalib-1.9.19-r3
sys-apps/realtime-lsm-0.8.2_pre20041022
sys-apps/realtime-lsm-0.8.3
sys-apps/realtime-lsm-0.8.5
net-misc/cisco-vpnclient-3des-4.6.02.0030
net-misc/cisco-vpnclient-3des-4.0.5
net-misc/cisco-vpnclient-3des-4.6.00.0045-r1
net-misc/cisco-vpnclient-3des-4.0.3b-r4
net-misc/cisco-vpnclient-3des-4.0.1a-r1
net-misc/zaptel-1.0.3
net-misc/zaptel-1.0.0
net-misc/zaptel-1.0.2
net-misc/zaptel-1.0.1
app-laptop/acerhk-0.5.18
net-wireless/hostap-driver-0.2.5-r1
sys-fs/cryptsetup-0.1
media-sound/emu10k1-0.20a-r7
media-sound/emu10k1-0.20a-r6
media-sound/emu10k1-0.20a-r5
media-sound/alsa-driver-1.0.3
media-video/mplayer-1.0_pre7
media-video/mplayer-1.0_pre6-r4
media-video/mplayer-1.0_pre6-r6
media-video/mplayer-1.0_pre6-r5
media-tv/linuxtv-dvb-1.1.1-r1
media-tv/rivatv-0.8.5-r2
Comment 13 Leandro Dorileo (RETIRED) gentoo-dev 2005-07-16 08:41:35 UTC
I'm going to convert the following ebuilds to linux-mod:

media-tv/rivatv 
net-misc/zaptel 
sci-misc/comedi 
sys-apps/realtime-lsm
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2005-08-27 14:51:07 UTC
Please convert your ebuilds to linux-mod/-info:
You can get help in the #gentoo-kernel IRC channel

sci-misc/comedi/comedi-0.7.68.ebuild:
  herd:  no-herd
  dev:   caleb
media-video/mplayer/mplayer-1.0_pre7.ebuild:
  herd:  video
net-firewall/tuxfrw/tuxfrw-2.58-r1.ebuild:
  herd:  netmon
  dev:   angusyoung
Comment 15 Otavio Piske (RETIRED) gentoo-dev 2005-09-25 05:54:43 UTC
net-firewall/tuxfrw should be ok now.
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2005-09-29 01:11:05 UTC
tuxfrw-2.58-r1.ebuild? Doesn't look like it to me, checks should be done in
pkg_setup, and you should use the linux-info functions for checking kernel version
Comment 17 Otavio Piske (RETIRED) gentoo-dev 2005-10-04 11:26:55 UTC
Daniel, 

I just committed tuxfrw-2.61 today and I'm already requesting 2.58-r1 to be
removed from other archs. It should be better now.
Comment 18 Stefan Schweizer (RETIRED) gentoo-dev 2005-10-15 06:18:38 UTC
mplayer does not use kernel-mod/linux-mod in the latest version

The only ebuild missing is:

sci-misc/comedi/comedi-0.7.68.ebuild:
  herd:  no-herd
  dev:   caleb
caleb or Leandro, please fix it.
Comment 19 Henrik Brix Andersen 2006-02-07 04:14:42 UTC
I have removed the versions of the unmaintained sys-apps/realtime-lsm ebuild which used the deprecated kernel-mod.eclass.
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2006-04-11 05:12:35 UTC
qc-usb uses linux-mod but not in a sane way. We need to fix that at some point.
Comment 21 Daniel Drake (RETIRED) gentoo-dev 2006-07-24 15:28:02 UTC
qc-usb is fine now, thanks to whoever fixed it
Comment 22 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-17 16:04:00 UTC
finally this is done :)

Thanks for your patience