[ltp] ANNOUNCE: ibm-acpi package for Debian -- patch

John A Chaves linux-thinkpad@linux-thinkpad.org
Wed, 24 Nov 2004 01:20:16 -0600


On Monday 15 November 2004 04:10 am, David Schweikert wrote:
> I packaged ibm-acpi 0.8 for Debian.
> 
> Put the following in your /etc/apt/sources.list if you want to use it:
> 
> deb http://debian.isg.ee.ethz.ch/public sarge ibm-acpi

Thanks for providing this.  One small problem though. When doing make_kpkg
on the ibm-acpi-source, the module always gets put in /lib/modules/`uname -r`/...
(i.e. the location for the running kernel version, not the intended one)

This results from debian/rules setting "KVERS" when the upstream Makefile
expects "KVER".  The following patch fixes this.

John


--- ibm-acpi-0.8/debian/ibm-acpi-modules.d/rules        2004-11-24 00:58:07.000000000 -0600
+++ ibm-acpi-0.8x/debian/ibm-acpi-modules.d/rules       2004-11-22 16:03:07.000000000 -0600
@@ -73,7 +73,7 @@
 configure-modules: debian/control

 build-modules:
-       $(MAKE) DESTDIR=$(DEB) KVERS=$(KVERS) KDIR=$(KSRC)
+       $(MAKE) DESTDIR=$(DEB) KVER=$(KVERS) KDIR=$(KSRC)

 # so that the wlan led on the thinkpad works:
 export COPTS+="-DSOFTLED"
@@ -82,7 +82,7 @@
        dh_testdir
        dh_testroot
        install -d $(DEB)/lib/modules/$(KVERS)/acpi
-       $(MAKE) DESTDIR=$(DEB) KVERS=$(KVERS) KDIR=$(KSRC) install
+       $(MAKE) DESTDIR=$(DEB) KVER=$(KVERS) KDIR=$(KSRC) install
        dh_installdocs
        dh_installchangelogs
        dh_link
@@ -98,7 +98,7 @@
 clean-modules:
        dh_testdir
        dh_clean
-       $(MAKE) DESTDIR=$(DEB) KVERS=$(KVERS) KDIR=$(KSRC) clean
+       $(MAKE) DESTDIR=$(DEB) KVER=$(KVERS) KDIR=$(KSRC) clean
        rm -f debian/control

 kdist_image: configure-modules build-modules