Author Topic: dkms-2.2.0.3-1kjpetrie.src.rpm for testing  (Read 650 times)

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« on: April 28, 2012, 04:31:11 PM »
DKMS is supposed to identify the system it's on and selct the right procedures to prepare to build modules, but it doesn't know about pclos, so it tends to make the wrong decision and run make mrproper in the kernel source or headers directory instead of make clean. This nukes all the files it needs to build modules.

This was previously worked round by patching the kernel to disable mrproper in the Makefile, so the damage couldn't be done. However, the latest test kernels don't do that, and DKMS can do a lot of damage! (The kernel-devel needs to be reinstalled for prebuilt kernels, and custom built kernels need to be rebuilt.)

DKMS packaged for pclos does not need to work on any other system, so I have patched it (still a bit of a bodge, I know) to replace all calls to mrproper with clean, so it will use the right command whatever it identifies pclos as.

I also took the opportunity to upgrade it to the current stable version and offer it for testing in Dropbox. It should work on both old and new kernels alike.
« Last Edit: April 28, 2012, 04:38:24 PM by kjpetrie »
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #1 on: April 28, 2012, 11:57:18 PM »
Offered on dropbox? Where? I've seen no SRPM from you? Or do you mean that you want testers to install an RPM from your dropbox?     

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #2 on: April 29, 2012, 04:54:50 AM »
Dropbox/Pack/32-64bitSRPMS/test-please/

If it's not syncing I'll have to look into it.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #3 on: April 29, 2012, 08:32:03 AM »
DKMS is supposed to identify the system it's on and selct the right procedures to prepare to build modules, but it doesn't know about pclos, so it tends to make the wrong decision and run make mrproper in the kernel source or headers directory instead of make clean. This nukes all the files it needs to build modules.

This was previously worked round by patching the kernel to disable mrproper in the Makefile, so the damage couldn't be done.
This should still be true, as a disable-mrproper patch is still in place ... I will look into details within a couple of days ...

AS

Quote
However, the latest test kernels don't do that, and DKMS can do a lot of damage! (The kernel-devel needs to be reinstalled for prebuilt kernels, and custom built kernels need to be rebuilt.)

DKMS packaged for pclos does not need to work on any other system, so I have patched it (still a bit of a bodge, I know) to replace all calls to mrproper with clean, so it will use the right command whatever it identifies pclos as.

I also took the opportunity to upgrade it to the current stable version and offer it for testing in Dropbox. It should work on both old and new kernels alike.


Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #4 on: April 29, 2012, 09:06:52 AM »
The Makefile in the kernel-source I installed didn't have the patch applied.

However, it can't hurt to correct the behaviour of DKMS - belt and braces!
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #5 on: April 29, 2012, 11:52:55 AM »
kjpetrie,     
Please read ~/Dropbox/Pack/To_All_Packagers.     
That subfolder has gone bye-bye. ;)     

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #6 on: April 29, 2012, 06:53:28 PM »
Thanks, I had read it before I submitted, but I thought "test-please" looked like the official place to put things needing testing. It even had a polite please in the name. I gather it wasn't an official folder after all.

Which brings me to a second point: how are we to know who a folder belongs to, as they don't seem to have ownership metadata, so how can we distinguish your folders from those others have created which we shouldn't trespass in without their permission?
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #7 on: April 29, 2012, 11:30:17 PM »
Reread that file, please. Some changes were made.
Mostly, you should use the 3 main folders, 32-64bitSRPMS, 32bitSRPMS and 64bitSRPMS and add a note with your package. This is the preferred method.     
The subfolders may be accessed and the files there checked to see if you can determine who owns it. If you can not determine the owner, leave a note in the main folder that contains the subfolder.     

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #8 on: May 06, 2012, 08:13:01 AM »
I didn't had time to test this update so far ... adding this link because it could be related:

http://www.pclinuxos.com/forum/index.php/topic,105186.0.html

AS

Online kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: dkms-2.2.0.3-1kjpetrie.src.rpm for testing
« Reply #9 on: May 06, 2012, 09:52:25 AM »
Thanks, not clear how it relates, but will keep watching.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf