Asterisk
  1. Asterisk
  2. ASTERISK-26872

Bundled pjproject fails to build when tarball downloaded with curl due to md5 verification failure in Docker containers (or when there is no terminal)

    Details

      Description

      Upon updated to 14.3.0, Docker could no longer build Asterisk with bundled pjproject due to a md5 verification failure with the download. Upon debugging, the size of the pjproject tarball was larger than what was expected, which accounted for the md5 failure.

      In previous versions, the Makefile would toss out garbage that had been appended to the tarball:

      [pjproject]  Downloading http://www.pjsip.org/release/2.5.5/pjproject-2.5.5.tar.bz2 to /tmp/pjproject-2.5.5.tar.bz2
      ######################################################################## 100.0%
      [pjproject]  Unpacking /tmp/pjproject-2.5.5.tar.bz2
      
      bzip2: (stdin): trailing garbage after EOF ignored
      

      This garbage was being appended due to the progress bar being used with curl:

      DOWNLOAD_TO_STDOUT="${CURL} -L --progress-bar"
      

      Removing the progress bar and setting curl to use silent mode (-s) resolves the issue.

        Activity

        Hide
        Friendly Automation added a comment -

        Change 5194 merged by Joshua Colp:
        configure: Don't use the progress bar with curl when downloading to stdout

        https://gerrit.asterisk.org/5194

        Show
        Friendly Automation added a comment - Change 5194 merged by Joshua Colp: configure: Don't use the progress bar with curl when downloading to stdout https://gerrit.asterisk.org/5194
        Hide
        Friendly Automation added a comment -

        Change 5195 merged by zuul:
        configure: Don't use the progress bar with curl when downloading to stdout

        https://gerrit.asterisk.org/5195

        Show
        Friendly Automation added a comment - Change 5195 merged by zuul: configure: Don't use the progress bar with curl when downloading to stdout https://gerrit.asterisk.org/5195
        Hide
        Friendly Automation added a comment -

        Change 5196 merged by Joshua Colp:
        configure: Don't use the progress bar with curl when downloading to stdout

        https://gerrit.asterisk.org/5196

        Show
        Friendly Automation added a comment - Change 5196 merged by Joshua Colp: configure: Don't use the progress bar with curl when downloading to stdout https://gerrit.asterisk.org/5196

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development