Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78575 - app-laptop/ibm-acpi: allow it to install despite 2.6.10+
Summary: app-laptop/ibm-acpi: allow it to install despite 2.6.10+
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 13:39 UTC by TGL
Modified: 2005-01-20 04:52 UTC (History)
0 users

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


Attachments
ibm-acpi-0.10.patch (ibm-acpi-0.10.patch,1.26 KB, patch)
2005-01-18 13:39 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2005-01-18 13:39:00 UTC
Ok, that may sound stupid, but i'd like to be able to install the ibm-acpi package despite i've built the module from the kernel sources tree (now that it's included in 2.6.10). I have two reasons for that:
 - i want the doc (example scripts), and the kernel sources won't give it.
 - i still use the module from the package on some kernels, thus still have it in my world, and i don't want an update of ibm-acpi to randomly interrupt a world update depending of what my /usr/src/linux symlink currently is.

I will attach a patch that uses the @CONFIG_FLAG:module_name syntax of linux-mod.eclass to make the module compilation optional.
Comment 1 TGL 2005-01-18 13:39:32 UTC
Created attachment 48883 [details, diff]
ibm-acpi-0.10.patch
Comment 2 Henrik Brix Andersen 2005-01-20 03:59:20 UTC
Since the ibm-acpi ebuilds contain no user-space utilities I see no reason to allow it to be installed when CONFIG_IBM_ACPI is enabled in the kernel.

The documentation is included in the kernel as Documentation/ibm-acpi.txt. The example acpi scripts wont help much as the in-kernel version might differ from the version available in portage.

The problem with using it on some but not all kernels is easily solved: 'emerge ibm-acpi && emerge -C ibm-acpi'. That will install the kernel module and, since /lib/modules/ is config protected, de-install everything but the kernel module again.
Comment 3 TGL 2005-01-20 04:42:16 UTC
> I see no reason to allow it to be installed when CONFIG_IBM_ACPI is enabled

Any reason to forbid it? I don't see what this change would break.

> The example acpi scripts wont help much as the in-kernel version might differ 
> from the version available in portage.

The worst that can happen is that the version in portage provides handlers for events that don't yet exist with the in-kernel version. But the other handlers are still perfectly useful.

> emerge ibm-acpi && emerge -C ibm-acpi

But then i loose the docs and don't know about updates. I would compile it out of portage if i didn't want the package to be in installed, or i would use --oneshot if i didn't want it registered in my world.
Comment 4 Henrik Brix Andersen 2005-01-20 04:49:12 UTC
It would break bug reports:

"I have problem foo with the ibm_acpi module"
"Which version of app-laptop/ibm-acpi do you have installed?"
Comment 5 TGL 2005-01-20 04:52:10 UTC
Ok, that makes perfect sense. 

Thanks for the explanation.