[asterisk-bugs] [Asterisk 0013388]: [patch] Prompt for immediate removal of modules not installed by current version of Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 27 18:52:18 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13388 
====================================================================== 
Reported By:                putnopvut
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13388
Category:                   Core/BuildSystem
Reproducibility:            N/A
Severity:                   feature
Priority:                   low
Status:                     confirmed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 140299 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-27 17:06 CDT
Last Modified:              2008-08-27 18:52 CDT
====================================================================== 
Summary:                    [patch] Prompt for immediate removal of modules not
installed by current version of Asterisk
Description: 
When switching versions of Asterisk, you will likely have old modules built
from a previous installation. I typically will just blow away my modules
directory and then re-run `make install` after.

seanbright on #asterisk-dev brought up the idea of prompting for removal
of modules at installation time, so I made a slight change to the Makefile
to do this.

Since my shell-scripting skills don't even come near my C skills, I am
putting this on the bugtracker for review and suggestions for
improvements.

Here are some of the design decisions explained:
 * No input indicates to remove the modules. I did this since it is the
most
   likely choice.
 * [yY]* is the only other input that will remove modules. As qwell
pointed out
   to me, this way, if someone accidentally types 'm' instead of 'n' to
indicate
   they don't wish to delete the modules, then it won't cause a problem.
Of
   course, this also means that inputs like "yellow" and "YOW" will cause
   removal of files
 * I used the -i flag for rm so that a user could choose to keep certain
modules
   available, such as valid third-party modules.
====================================================================== 

---------------------------------------------------------------------- 
 (0091846) jsmith (manager) - 2008-08-27 18:52
 http://bugs.digium.com/view.php?id=13388#c91846 
---------------------------------------------------------------------- 
My only concern here is that it has the potential of breaking automated
build systems... we already warn the user about modules that weren't built
as part of this build -- do we really need to hold their hand and prompt
them to delete them?  Should this only be for dev-mode? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-27 18:52 jsmith         Note Added: 0091846                          
======================================================================




More information about the asterisk-bugs mailing list