[asterisk-bugs] [JIRA] (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)

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Mar 14 15:13:10 CDT 2017


Matt Jordan created ASTERISK-26872:
--------------------------------------

             Summary: Bundled pjproject fails to build when tarball downloaded with curl due to md5 verification failure in Docker containers (or when there is no terminal)
                 Key: ASTERISK-26872
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26872
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 13.14.0, 14.4.0
            Reporter: Matt Jordan


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:

{noformat}
[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
{noformat}

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

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

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




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list