Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440532 - app-emulation/virtualbox-modules-4.1.22: some elog messages should only be shown when upgrading from an old enough package.
Summary: app-emulation/virtualbox-modules-4.1.22: some elog messages should only be sh...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
Depends on:
Blocks: first-time-messages
  Show dependency tree
Reported: 2012-10-31 11:29 UTC by poletti.marco
Modified: 2017-08-31 17:48 UTC (History)
5 users (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 poletti.marco 2012-10-31 11:29:11 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package app-emulation/virtualbox-modules-4.1.22, the following elog messages are displayed:

 * Starting with the 3.x release new kernel modules were added,
 * be sure to load all the needed modules.
 * Please add "vboxdrv", "vboxnetflt" and "vboxnetadp" to:
 * /etc/conf.d/modules

Such messages should only be displayed when the package is upgraded from an old enough package (and possibly for new installs).
These situations can be checked in the ebuild as follows:

if has_version '<app-emulation/virtualbox-modules-1.0'; then

Or, if the message should also be displayed for new installs:

if !has_version 'app-emulation/virtualbox-modules' || has_version '<app-emulation/virtualbox-modules-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Pacho Ramos gentoo-dev 2014-05-02 11:55:32 UTC
I can migrate this to readme.gentoo.eclass if you want