[asterisk-bugs] [DAHDI-linux 0014862]: When using DESTDIR, depmod is run on the host, not on the staging directory

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 13 07:22:22 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14862 
====================================================================== 
Reported By:                davidw
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14862
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-04-08 13:17 CDT
Last Modified:              2009-04-13 07:22 CDT
====================================================================== 
Summary:                    When using DESTDIR, depmod is run on the host, not
on the staging directory
Description: 
If you set DESTDIR, in order to install into a tree other than the real OS
tree, the Makefile still runs depmod without the -b option.

There are two subcases:

1) one is building a complete OS image in a staging directory - no
modules.dep will be created for dahdi unless a later make install does it
properly;

2) you are making a selective binary archive of just what is needed to
install Asterisk (our case) - the depmod is redundant, and potentially
dangerous if the system were to go down when it was running.

Because of case (2), it might be safer not to run it at all if DESTDIR is
set.

Also, in case (2), testing for udev/rules.d in the staging directory is
not useful.  Because of case (1) and cross builds, there may be cases where
using the host one is the wrong strategy, so maybe we just have to fudge
that one.
====================================================================== 

---------------------------------------------------------------------- 
 (0103132) tzafrir (manager) - 2009-04-13 07:22
 http://bugs.digium.com/view.php?id=14862#c103132 
---------------------------------------------------------------------- 
Why is there a need to run an explicit depmod? Doesn't modules_install run
depmod? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-13 07:22 tzafrir        Note Added: 0103132                          
======================================================================




More information about the asterisk-bugs mailing list