<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19170">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">install_prereq: Add support for Arch systems.<br><br>ASTERISK-30218<br><br>Change-Id: I5266940fe3c7152bed519945fe6f93f49572c47e<br>---<br>M contrib/scripts/install_prereq<br>1 file changed, 38 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/70/19170/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq</span><br><span>index 4fc4ebc..c5b9099 100755</span><br><span>--- a/contrib/scripts/install_prereq</span><br><span>+++ b/contrib/scripts/install_prereq</span><br><span>@@ -30,6 +30,15 @@</span><br><span> # Sipp requirements</span><br><span> PACKAGES_RH="$PACKAGES_RH libpcap-devel openssl-devel lksctp-tools-devel"</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+# Basic build system:</span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGES_ARCH="git gcc"</span><br><span style="color: hsl(120, 100%, 40%);">+# Python tools</span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGES_ARCH="$PACKAGES_ARCH python python-pip python-setuptools"</span><br><span style="color: hsl(120, 100%, 40%);">+# Testsuite: basic requirements:</span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGES_ARCH="$PACKAGES_ARCH lua51 gdb"</span><br><span style="color: hsl(120, 100%, 40%);">+# Sipp requirements</span><br><span style="color: hsl(120, 100%, 40%);">+PACKAGES_ARCH="$PACKAGES_ARCH libpcap openssl lksctp-tools"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> LIBDIR=/usr/lib$(getconf LONG_BIT | fgrep 64)</span><br><span> [ ! -d $LIBDIR ] && LIBDIR=/usr/lib</span><br><span> </span><br><span>@@ -82,6 +91,15 @@</span><br><span> done</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+check_installed_pacman() {</span><br><span style="color: hsl(120, 100%, 40%);">+ for pack in "$@"</span><br><span style="color: hsl(120, 100%, 40%);">+ do</span><br><span style="color: hsl(120, 100%, 40%);">+ if ! pacman -Q --explicit $pack >/dev/null 2>/dev/null</span><br><span style="color: hsl(120, 100%, 40%);">+ then echo $pack</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+ done</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> install_debian() {</span><br><span> if ! [ -x "$(command -v aptitude)" ]; then</span><br><span> if in_test_mode; then</span><br><span>@@ -105,6 +123,13 @@</span><br><span> fi</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+install_arch() {</span><br><span style="color: hsl(120, 100%, 40%);">+ extra_packs=`check_installed_pacman $PACKAGES_ARCH`</span><br><span style="color: hsl(120, 100%, 40%);">+ if [ x"$extra_packs" != "x" ] ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ $testcmd pacman -S --asexplicit --noconfirm $extra_packs</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> OS=`uname -s`</span><br><span> </span><br><span> # A number of distributions we don't (yet?) support.</span><br><span>@@ -136,6 +161,8 @@</span><br><span> install_packages=install_debian</span><br><span> elif [ -r /etc/redhat-release ]; then</span><br><span> install_packages=install_rh</span><br><span style="color: hsl(120, 100%, 40%);">+elif [ -r /etc/arch-release ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+ install_packages=install_arch</span><br><span> else</span><br><span> echo >&2 "$0: Your distribution is currently not supported. Aborting."</span><br><span> exit 1</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19170">change 19170</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/testsuite/+/19170"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I5266940fe3c7152bed519945fe6f93f49572c47e </div>
<div style="display:none"> Gerrit-Change-Number: 19170 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>