[Home]

Summary:ASTERISK-05298: [patch] Depmod failure while installing on different kernel version
Reporter:Arcadiy Ivanov (arcivanov)Labels:
Date Opened:2005-10-15 12:04:27Date Closed:2008-06-07 11:05:35
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) Makefile.patch
Description:Problem:

There is a bug in Makefile which will prevent depmod from completing its task if installing on the kernel different from one currently running.

Explanation:

If KVERS is defined outside of Makefile and differs from "shell uname -r", then depmod will fail since it is called on line 369 as:
     [ `id -u` = 0 ] && /sbin/depmod -a || :
as opposed to
     [ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :

Patch to fix this is attached to the bug.

****** ADDITIONAL INFORMATION ******

man depmod specifies the following format:

depmod [-b basedir]  [-e]  [-F System.map]  [-n]  [-v]  [version]  [-A     ]
    If a [version] is provided, then that kernel version's module directory is used, rather than the current kernel version (as returned by "uname -r").
Comments:By: Jason Parker (jparker) 2005-10-16 01:01:35

This should probably be directly related to ASTERISK-5299, right?

By: Arcadiy Ivanov (arcivanov) 2005-10-16 08:39:21

Yes, you can say they are. Alas, there is no such functionality in v1-0, thus there is no such problem in v1-0. If the patch in the bug 0005446 is applied against v1-0 and patch in this bug is applied to the HEAD, then the functionality will be exactly the same.

By: Mark Spencer (markster) 2005-10-16 12:13:49

Fixed in CVS head, thanks.

By: Digium Subversion (svnbot) 2008-06-07 11:05:35

Repository: dahdi
Revision: 795

U   trunk/Makefile

------------------------------------------------------------------------
r795 | markster | 2008-06-07 11:05:34 -0500 (Sat, 07 Jun 2008) | 2 lines

Fix depmods for cross builds (bug ASTERISK-5298)

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=795