Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140861 - app-laptop/lt_hotswap-0.3.6.ebuild (New Package)
Summary: app-laptop/lt_hotswap-0.3.6.ebuild (New Package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
: 177346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-17 19:07 UTC by Jason Morawski
Modified: 2008-11-11 22:19 UTC (History)
4 users (show)

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


Attachments
app-laptop/lt_hotswap-0.3.6 (lt_hotswap-0.3.6.ebuild,1.44 KB, text/plain)
2006-07-17 19:10 UTC, Jason Morawski
Details
lt_hotswap-0.3.6-acpi-action-fix.patch (lt_hotswap-0.3.6-acpi-action-fix.patch,158 bytes, patch)
2006-07-17 19:11 UTC, Jason Morawski
Details | Diff
lt_hotswap-0.3.6.ebuild (lt_hotswap-0.3.6.ebuild,1.49 KB, text/plain)
2007-05-22 22:47 UTC, juggler885
Details
lt_hotswap-0.3.6-kernel-2.6.20.patch (lt_hotswap-0.3.6-kernel-2.6.20.patch,313 bytes, patch)
2007-05-22 22:50 UTC, juggler885
Details | Diff
hotswap-0.4.0.ebuild (hotswap-0.4.0.ebuild,751 bytes, text/plain)
2008-02-15 21:00 UTC, marco
Details
app-laptop/hotswap-0.5.0. (hotswap-0.5.0.ebuild,814 bytes, text/plain)
2008-11-11 22:19 UTC, Jeff Simpson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Morawski 2006-07-17 19:07:20 UTC
Hi!

Please find attached lt_hotswap-0.3.6.ebuild and a patch so that it will 
work with acpi action scripts.

lt_hotswap is an ACPI kernel driver to support hot-swapping of common 'bay' type peripherals on laptops. It is particularly useful for supporting Ultrabay drives on IBM Thinkpad models.

Jason Morawski
Comment 1 Jason Morawski 2006-07-17 19:10:04 UTC
Created attachment 92039 [details]
app-laptop/lt_hotswap-0.3.6
Comment 2 Jason Morawski 2006-07-17 19:11:53 UTC
Created attachment 92040 [details, diff]
lt_hotswap-0.3.6-acpi-action-fix.patch
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-06 20:07:16 UTC
*** Bug 177346 has been marked as a duplicate of this bug. ***
Comment 4 juggler885 2007-05-18 22:27:23 UTC
I have made an overlay in paludis to use this ebuild. However, I get an error when I try to install it (using kernel 2.6.20-gentoo-r7):

 * Preparing lt_hotswap module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KDIR= default
make -C  SUBDIRS=/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/work/lt_hotswap-0.3.6 modules
make: *** SUBDIRS=/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/work/lt_hotswap-0.3.6: No such file or directory.  Stop.
make: *** [default] Error 2

!!! ERROR in app-laptop/lt_hotswap-0.3.6:
!!! In linux-mod_src_compile at line 3306
!!! Unable to make  KDIR= default.

!!! Call stack:
!!!    * linux-mod_src_compile (/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/temp/loadsaveenv:3306)
!!!    * src_compile (/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/temp/loadsaveenv:4039)
!!!    * ebuild_f_compile (/usr/libexec/paludis/src_compile.bash:51)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:363)
!!!    * main (/usr/libexec/paludis/ebuild.bash:381)
Comment 5 Jason Morawski 2007-05-22 00:24:59 UTC
(In reply to comment #4)
> I have made an overlay in paludis to use this ebuild. However, I get an error
> when I try to install it (using kernel 2.6.20-gentoo-r7):
> 
>  * Preparing lt_hotswap module
> make -j2 HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= KDIR=
> default
> make -C 
> SUBDIRS=/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/work/lt_hotswap-0.3.6
> modules
> make: ***
> SUBDIRS=/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/work/lt_hotswap-0.3.6: No
> such file or directory.  Stop.
> make: *** [default] Error 2
> 
> !!! ERROR in app-laptop/lt_hotswap-0.3.6:
> !!! In linux-mod_src_compile at line 3306
> !!! Unable to make  KDIR= default.
> 
> !!! Call stack:
> !!!    * linux-mod_src_compile
> (/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/temp/loadsaveenv:3306)
> !!!    * src_compile
> (/var/tmp/paludis/app-laptop/lt_hotswap-0.3.6/temp/loadsaveenv:4039)
> !!!    * ebuild_f_compile (/usr/libexec/paludis/src_compile.bash:51)
> !!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:363)
> !!!    * main (/usr/libexec/paludis/ebuild.bash:381)
> 

It seems that your kernel directory is not setup properly. The KDIR variable is empty meaning that the linux-mod eclass cannot locate your kernel source directory. I am not sure how this is happening on your machine. When I remove /usr/src/linux and try to emerge, the ebuild throws an error indicating that the directory is missing. You should have gotten the same error.
Comment 6 juggler885 2007-05-22 22:47:05 UTC
Created attachment 120034 [details]
lt_hotswap-0.3.6.ebuild

This ebuild fixes the problem I was having with the KDIR= default
Comment 7 juggler885 2007-05-22 22:50:27 UTC
Created attachment 120036 [details, diff]
lt_hotswap-0.3.6-kernel-2.6.20.patch

This patch is required for kernels >= 2.6.20. In lt_hotswap.c it was including linux/config.h. The patch changes that to include linux/autoconf.h
Comment 8 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-05-22 23:03:04 UTC
(In reply to comment #5)
> > !!! ERROR in app-laptop/lt_hotswap-0.3.6:
> > !!! In linux-mod_src_compile at line 3306
> > !!! Unable to make  KDIR= default.
[...]
> It seems that your kernel directory is not setup properly.

The problem is that it uses the variable KV_DIR in global space when it is only set by linux-mod_pkg_setup in pkg_setup().
Comment 9 marco 2008-02-15 20:59:39 UTC
added hotswap 0.4.0 ebuild
Comment 10 marco 2008-02-15 21:00:45 UTC
Created attachment 143593 [details]
hotswap-0.4.0.ebuild

ebuild for hotswap 0.4.0
Comment 11 Jeff Simpson 2008-11-11 22:19:30 UTC
Created attachment 171471 [details]
app-laptop/hotswap-0.5.0.

hotswap 0.5.0 ebuild.

gnome panel app works with gnome use flag
kde use flag does not seem to work (didn't work in 0.4.0, either)

dependencies need work, of course.

This application works marvelously on a Dell D600.