Bug 3418

Summary: empty file Module.symvers always left behind in root filesystem
Product: Mageia Reporter: Dick Gevers <dvgevers>
Component: RPM PackagesAssignee: Pascal Terjan <pterjan>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Low CC: pterjan
Version: CauldronKeywords: Triaged
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://qa.mandriva.com/show_bug.cgi?id=52624
Whiteboard:
Source RPM: dkms CVE:
Status comment:

Description Dick Gevers 2011-11-22 21:11:18 CET
I regularly use dkms to build & install fglrx for new Cauldron kernels.

Each time it leaves behind a zero byte file in "/" with the name:
Module.symvers.

Maybe line 1384 of /usr/sbin/dkms does this.

It seems to me it would be better left in /tmp, for example.


Version-Release number of selected component (if applicable):


How reproducible: always

This bug was sort of cloned from the bug shown at the URL
Comment 1 Manuel Hiebel 2011-11-22 22:45:46 CET
> I regularly use dkms to build & install fglrx for new Cauldron kernels.

Automatically or manuals ?

> Each time it leaves behind a zero byte file in "/" with the name:
> Module.symvers.

Here the file is about 36Ko (automatically and in mga1 )
Comment 2 Dick Gevers 2011-11-22 23:57:41 CET
Both auto & manual.
Comment 3 Manuel Hiebel 2011-11-24 18:33:52 CET
Assigned to the package maintainer.

Keywords: (none) => Triaged
Assignee: bugsquad => doktor5000
Source RPM: dkms-minimal-2.0.19-24.mga1 => dkms

Comment 4 Florian Hubold 2011-11-25 12:40:45 CET
(In reply to comment #1)
> 
> > Each time it leaves behind a zero byte file in "/" with the name:
> > Module.symvers.
> 
> Here the file is about 36Ko (automatically and in mga1 )
Here it's also zero byte, and i regularly use it for nvidia and virtualbox. Will look into it.

Status: NEW => ASSIGNED

Comment 5 Florian Hubold 2011-11-25 12:56:15 CET
For references, this seems to come from one of our patches, not dkms itself:
http://svnweb.mageia.org/packages/updates/1/dkms/current/SOURCES/dkms-symvers.patch?view=markup
Seems it was an oversight to not check/remove the leftover file.
Comment 6 Pascal Terjan 2011-11-25 13:02:58 CET
It should be created in the build directory, I guess this function changed to no longer be run from there.
I'll update the patch to create it at the right place.

CC: (none) => pterjan
Assignee: doktor5000 => pterjan

Comment 7 Pascal Terjan 2011-11-27 00:19:28 CET
OK, actually the error  was a bit further when creating one for each module to be built.

It was created in "${built_module_location[$count]}/Module.symvers" but built_module_location can be empty if the module is built at the root of the sources.

I fixed it in dkms-2.0.19-25.mga2.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED