[asterisk-dev] [Code Review] 4580: Fix issue with Makefile that prevents use of ~/.asterisk.makeopts and /etc/asterisk.makeopts

Corey Farrell reviewboard at asterisk.org
Tue Apr 7 07:06:58 CDT 2015



> On April 6, 2015, 10:25 p.m., Matt Jordan wrote:
> > So, maybe I'm doing this wrong, but...
> > 
> > 1) Created .asterisk.makeopts in my home directory
> > 2) Ran make distclean
> > 3) Ran ./configure && make
> > 
> > Alas, menuselect was run with its 'standard' set of information, creating a new menuselect.makeopts and ignoring the .asterisk.makeopts in my home directory.
> > 
> > Maybe I'm missing how this should work..?

Very strange.  I just tried this again and it's working for me.

1) ./configure && make menuselect, disabled app_*.so and saved.
2) Copied menuselect.makeopts to ~/.asterisk.makeopts
3) make distclean; Verified no menuselect.makeopts was in the local dir.
4) ./configure && make

No apps were built during 'make', I ran 'make menuselect' after and all apps were still disabled.


- Corey


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4580/#review15082
-----------------------------------------------------------


On April 3, 2015, 3:03 p.m., Corey Farrell wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4580/
> -----------------------------------------------------------
> 
> (Updated April 3, 2015, 3:03 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-13271
>     https://issues.asterisk.org/jira/browse/ASTERISK-13271
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> The Makefile claims that you can set default menuselect options by creating ~/.asterisk.makeopts or /etc/asterisk.makeopts, but they are never read.  The rule for menuselect.makeopts is only allowed to run if the active target is 'menuselect', but the menuselect target doesn't depend on menuselect.makeopts.  A dot (wildcard character) was added so the rule will be active for the targets that cause it to run: nmenuselect, cmenuselect, and gmenuselect.
> 
> When I first enabled this it caused ~/.asterisk.makeopts to overwrite ./menuselect.makeopts every time I ran 'make menuselect', so I modified the Makefile to only consider the file in $HOME and /etc when ./menuselect.makeopts doesn't exist.
> 
> 
> Thoughts:
> * Having two files ($HOME and /etc) at the same time really doesn't make sense to me, seems like it would be better to use only the "most local" file.
> * As far as I can tell this has never worked in any currently supported version.  I see this as a "new for the second time feature", not a bug fix.  I'm thinking trunk only.  If anyone disagrees let me know.
> 
> 
> Diffs
> -----
> 
>   /trunk/Makefile 433966 
> 
> Diff: https://reviewboard.asterisk.org/r/4580/diff/
> 
> 
> Testing
> -------
> 
> Repeatedly ran 'make menuselect' with and without files in the 3 locations.  No one else has tested this.
> 
> 
> Thanks,
> 
> Corey Farrell
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150407/162a14d5/attachment-0001.html>


More information about the asterisk-dev mailing list