Skip to content
Snippets Groups Projects
  1. Jan 14, 2016
    • Corey Farrell's avatar
      Remove *.gcna / *.gcno files from added module sources. · c7caee6c
      Corey Farrell authored
      Asterisk uses a Makefile macro to associate additional sources with a
      module.  This macro is responsible for creating clean targets but
      previously left behind *.gcna and *.gcno files.
      
      ASTERISK-25683 #close
      Reported by yaron nahum
      
      Change-Id: Idc0823fe80a25c42cefae901fde875e9fc38d8ea
      c7caee6c
  2. Jul 04, 2015
    • Matt Jordan's avatar
      Makefile: Remove coverage files on 'make clean' · 2c17515f
      Matt Jordan authored
      This patch updates a variety of Makefiles in Asterisk's build system to
      remove .gcda and .gcno files when 'make clean' is executed. These files
      are generated when '--enable-coverage' is passed to the Asterisk
      configure script.
      
      Change-Id: Ib70b41eea2ee2908885bff02e80faf9f40c84602
      2c17515f
  3. May 05, 2015
    • Corey Farrell's avatar
      Modules: Make ast_module_info->self available to auxiliary sources. · a8bfa9e1
      Corey Farrell authored
      ast_module_info->self is often needed to register items with the core.  Many
      modules have ad-hoc code to make this pointer available to auxiliary sources.
      This change updates the module build process to make the needed information
      available to all sources in a module.
      
      ASTERISK-25056 #close
      Reported by: Corey Farrell
      
      Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
      a8bfa9e1
  4. Apr 30, 2015
    • Corey Farrell's avatar
      Build System: Fix issue with addons moduleinfo. · 47fa2ad1
      Corey Farrell authored
      The build system now scans additional sources when generating
      moduleinfo for menuselect.  Unfortunately the extra sources
      for format_mp3 only exist if downloaded.
      
      Use the Makefile macro 'wildcard' to allow moduleinfo generator
      to ignore sources that do not exist.
      
      Change-Id: I596604713b7345ce994f32197f8f6bfd9bcf4170
      47fa2ad1
  5. Apr 29, 2015
    • Corey Farrell's avatar
      ARI: Fix missing dependencies. · f226bd6f
      Corey Farrell authored
      ARI modules that are generated by 'make ari-stubs' are all dependent on
      res_ari_model.  Additionally some of the same modules depend on one or more
      res_stasis_* modules.
      
      ASTERISK-25027 #close
      Reported by: Corey Farrell
      
      Change-Id: I8e07fe7e81fedacb87232f2b6f8b5f47927b4153
      f226bd6f
  6. Apr 14, 2015
    • Corey Farrell's avatar
      Build System: Create Makefile macro MOD_ADD_SOURCE. · 62508d68
      Corey Farrell authored
      This new macro allows a single line to add all additional
      sources to a module.  This helps prevent modules from
      missing steps, and makes future changes easier since
      they can be made in a single place.
      
      ASTERISK-24960 #close
      Reported by: Corey Farrell
      
      Change-Id: I38f12d8b72c5e7bb37a879b2fb51761a2855eb4b
      62508d68
  7. Oct 18, 2012
  8. Jan 30, 2012
    • Kevin P. Fleming's avatar
      Address OpenSSL initialization issues when using third-party libraries. · 92ef8a6f
      Kevin P. Fleming authored
      When Asterisk is used with various third-party libraries (CURL, PostgresSQL,
      many others) that have the ability themselves to use OpenSSL, it is possible
      for conflicts to arise in how the OpenSSL libraries are initialized and
      shutdown. This patch addresses these conflicts by 'wrapping' the important
      functions from the OpenSSL libraries in a new shared library that is part
      of Asterisk itself, and is loaded in such a way as to ensure that *all*
      calls to these functions will be dispatched through the Asterisk wrapper
      functions, not the native functions.
      
      This new library is optional, but enabled by default. See the CHANGES file
      for documentation on how to disable it.
      
      Along the way, this patch also makes a few other minor changes:
      
      * Changes MODULES_DIR to ASTMODDIR throughout the build system, in order to
        more closely match what is used during run-time configuration.
      
      * Corrects some errors in the configure script where AC_CHECK_TOOLS was used
        instead of AC_PATH_PROG.
      
      * Adds a new variable for linker flags in the build system (DYLINK), used for
        producing true shared libraries (as opposed to the dynamically loadable
        modules that the build system produces for 'regular' Asterisk modules).
      
      * Moves the Makefile bits that handle installation and uninstallation of the
        main Asterisk binary into main/Makefile from the top-level Makefile.
      
      * Moves a couple of useful preprocessor macros from optional_api.h to
        asterisk.h.
      
      Review: https://reviewboard.asterisk.org/r/1006/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@353317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      92ef8a6f
  9. Oct 14, 2011
  10. Aug 17, 2011
  11. Jul 27, 2011
  12. Jul 19, 2011
    • Kevin P. Fleming's avatar
      Merged revisions 328879 via svnmerge from · 6855bb87
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/2.0
      
      ................
        r328879 | kpfleming | 2011-07-19 16:31:16 -0500 (Tue, 19 Jul 2011) | 23 lines
        
        Merged revisions 328878 via svnmerge from 
        https://origsvn.digium.com/svn/asterisk/branches/1.8
        
        ........
          r328878 | kpfleming | 2011-07-19 16:29:07 -0500 (Tue, 19 Jul 2011) | 17 lines
          
          Revert partial attempt at handling pathnames with spaces.
          
          Revision 299794 attempted to improve the build system to be able to handle
          pathnames (primarily DESTDIR) with spaces in them, since this is common on
          some platforms (including Mac OSX). Unfortunately, the changes were incomplete
          and did not actually provide the desired behavior, and as a side effect the
          functionality that ensured that stale headers in the Asterisk 'include' directory
          were removed got broken. In addition, the check for stale (and possibly
          incompatible) modules in the Asterisk 'modules' directory also got broken, and
          would never report any stale modules. Users upgrading to this version or later
          versions would then see unexpected module load errors.
          
          Since there are few users who actually want to install Asterisk into paths
          that contain spaces, and a proper fix for the build system would take many hours,
          the best solution for now is to just revert the partial solution.
        ........
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@328881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6855bb87
  13. Dec 27, 2010
  14. Apr 02, 2010
  15. Mar 23, 2010
    • Kevin P. Fleming's avatar
      Change per-file debug and verbose levels to be per-module, the way · ae6008ef
      Kevin P. Fleming authored
      users expect them to work.
      
      'core set debug' and 'core set verbose' can optionally change the
      level for a specific filename; however, this is actually for a
      specific source file name, not the module that source file is included
      in. With examples like chan_sip, chan_iax2, chan_misdn and others
      consisting of multiple source files, this will not lead to the
      behavior that users expect. If they want to set the debug level for
      chan_sip, they want it set for all of chan_sip, and not to have to
      also set it for reqresp_parser and other files that comprise the
      chan_sip module.
      
      This patch changes this functionality to be module-name based instead
      of file-name based.
      
      To make this work, some Makefile modifications were required to ensure
      that the AST_MODULE definition is present in each object file produced
      for each module as well.
      
      Review: https://reviewboard.asterisk.org/r/574/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ae6008ef
  16. Jul 21, 2009
    • Kevin P. Fleming's avatar
      Merged revisions 207647 via svnmerge from · 96e4e31e
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r207647 | kpfleming | 2009-07-21 08:04:44 -0500 (Tue, 21 Jul 2009) | 12 lines
        
        Ensure that user-provided CFLAGS and LDFLAGS are honored.
        
        This commit changes the build system so that user-provided flags (in ASTCFLAGS
        and ASTLDFLAGS) are supplied to the compiler/linker *after* all flags provided
        by the build system itself, so that the user can effectively override the
        build system's flags if desired. In addition, ASTCFLAGS and ASTLDFLAGS can now
        be provided *either* in the environment before running 'make', or as variable
        assignments on the 'make' command line. As a result, the use of COPTS and LDOPTS
        is no longer necessary, so they are no longer documented, but are still supported
        so as not to break existing build systems that supply them when building Asterisk.
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207680 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      96e4e31e
  17. Jun 30, 2009
  18. Nov 26, 2008
  19. Nov 20, 2008
    • Kevin P. Fleming's avatar
      Merged revisions 157859 via svnmerge from · 8d5deb31
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r157859 | kpfleming | 2008-11-19 15:34:47 -0600 (Wed, 19 Nov 2008) | 7 lines
        
        the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.
        
        with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course).
        
        while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8d5deb31
  20. Nov 15, 2008
  21. Sep 27, 2008
    • Kevin P. Fleming's avatar
      Merged revisions 144924-144925 via svnmerge from · 629861a7
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r144924 | kpfleming | 2008-09-27 10:00:48 -0500 (Sat, 27 Sep 2008) | 6 lines
        
        improve header inclusion process in a few small ways:
        
          - it is no longer necessary to forcibly include asterisk/autoconfig.h; every module already includes asterisk.h as its first header (even before system headers), which serves the same purpose
          - astmm.h is now included by asterisk.h when needed, instead of being forced by the Makefile; this means external modules will build properly against installed headers with MALLOC_DEBUG enabled
          - simplify the usage of some of these headers in the AEL-related stuff in the utils directory
      ........
        r144925 | kpfleming | 2008-09-27 10:13:30 -0500 (Sat, 27 Sep 2008) | 2 lines
        
        fix some minor issues with rev 144924
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@144949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      629861a7
  22. Dec 18, 2007
  23. Dec 17, 2007
    • Kevin P. Fleming's avatar
      Merged revisions 93180 via svnmerge from · 100ef27a
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r93180 | kpfleming | 2007-12-16 22:44:51 -0800 (Sun, 16 Dec 2007) | 23 lines
      
      In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
      rizzo brought up some issues related to the way that the metadata required
      for menuselect and the rest of the build system is extracted from the source
      files. Since I had a few hours to kill on an airplane today, I decided to
      improve this situation... so now the system caches the extracted metadata
      and uses it to build the menuselect 'tree' as much as it can. The result
      of this is that when a single source file is changed, only the metadata for
      that file needs to be extracted again, and the rest is used from the cache
      files. I also reduced the number of forked processes required to do the
      metadata extraction; it was actually possible to do most of what we needed
      in the Makefiles themselves without using any shell scripts at all! On my
      laptop, these changes resulted in an 80% decrease in the time required
      for the 'menuselect.makeopts' automatic check to occur after editing a single
      source file.
      
      While doing this work I also cleaned up a few minor things in the Makefiles,
      adding a check for 'awk' to the configure script and changed all remaining
      places we use 'grep' or 'awk' to use the ones found by the configure script,
      and changed the 'prep_tarball' script to build the menuselect metadata so
      that tarballs of Asterisk will include it and won't require the user to
      wait while it is extracted after unpacking.
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      100ef27a
  24. Dec 10, 2007
  25. Dec 09, 2007
  26. Nov 20, 2007
  27. Nov 17, 2007
  28. Nov 05, 2007
  29. Oct 29, 2007
  30. Apr 06, 2007
    • Russell Bryant's avatar
      Merged revisions 60603 via svnmerge from · 0a9750ef
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r60603 | russell | 2007-04-06 15:58:43 -0500 (Fri, 06 Apr 2007) | 13 lines
      
      To be able to achieve the things that we would like to achieve with the
      Asterisk GUI project, we need a fully functional HTTP interface with access
      to the Asterisk manager interface.  One of the things that was intended to be
      a part of this system, but was never actually implemented, was the ability for
      the GUI to be able to upload files to Asterisk.  So, this commit adds this in
      the most minimally invasive way that we could come up with.
      
      A lot of work on minimime was done by Steve Murphy.  He fixed a lot of bugs in
      the parser, and updated it to be thread-safe.  The ability to check
      permissions of active manager sessions was added by Dwayne Hubbard.  Then,
      hacking this all together and do doing the modifications necessary to the HTTP
      interface was done by me.
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      0a9750ef
  31. Feb 22, 2007
  32. Dec 16, 2006
  33. Sep 29, 2006
  34. Sep 18, 2006
Loading