Summary:ASTERISK-26091: [patch] ar cru creates warning, instead use ar cr
Reporter:Alexander Traud (traud)Labels:
Date Opened:2016-06-07 02:25:12Date Closed:2016-06-08 21:51:21
Versions:11.22.0 13.9.1 Frequency of
Environment:Ubuntu 16.04 LTSAttachments:( 0) archive_modifier_u.patch
Description:While linking the following warning message appears:
{{/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')}}

*Steps to reproduce* on Ubuntu 16.04 LTS
{noformat}wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar zxf asterisk-1*.tar.gz
sudo apt install libssl-dev libncurses-dev libnewt-dev libxml2-dev libsqlite3-dev uuid-dev libjansson-dev libblocksruntime-dev

{{sudo apt install libedit-dev}} avoids the build of the Asterisk included editline project and therefore this message, see ASTERISK-18725, [Reviewboard|https://reviewboard.asterisk.org/r/1528/], and its [Commit|https://github.com/asterisk/asterisk/commit/7d4ccea736c1ce325de00c23dee28c61de47e638].
Comments:By: Alexander Traud (traud) 2016-06-07 02:30:43.197-0500

The attached patch fixes this for the internal projects editline and ooh323c. No impact of this patch is known. Four other internal projects use just {{ar cr}} already. On platforms which do not use D as default, it is assumed that the additional overhead (without u) is neglectable for such small projects. The affected scripts were found via a search with the regular expression {noformat}\$\(AR\) {noformat}