[Home]

Summary: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)
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2017-03-14 15:12:15Date Closed:2017-03-15 11:41:42
Priority:MajorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem Third-Party/pjproject
Versions:13.14.0 14.4.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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:

{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.
Comments:By: Friendly Automation (friendly-automation) 2017-03-15 11:41:43.116-0500

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

[https://gerrit.asterisk.org/5194|https://gerrit.asterisk.org/5194]

By: Friendly Automation (friendly-automation) 2017-03-15 12:46:29.012-0500

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

[https://gerrit.asterisk.org/5195|https://gerrit.asterisk.org/5195]

By: Friendly Automation (friendly-automation) 2017-03-15 13:02:24.144-0500

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

[https://gerrit.asterisk.org/5196|https://gerrit.asterisk.org/5196]