summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-01-20 02:39:46 +0000
committerMatthew Jordan <mjordan@digium.com>2015-01-20 02:39:46 +0000
commit072db5e1b9201b3d7219a12ed559a9e856d535b6 (patch)
tree64607d69d600b30032a5f75023cea925ae304c90 /contrib
parente659b3e53d63287e486f1f4224b8f05d3475dc3f (diff)
contrib/scripts/install_prereq: Don't install 32-bit packages on 64-bit hosts
On Debian based systems, the install_prereq tool uses a search command on Debian that results in selecting both 64-bit and 32-bit packages. Besides the waste of disk space, this can actually cause aptitude use 100% of memory on a VM with 1GB of RAM as it tried to work out all of the 32-bit package dependencies. This patch filters out the 32-bit packages on a 64-bit machine, and leaves 32-bit machines alone. ASTERISK-24048 #close Reported by: Ben Klang Tested by: Ben Klang, Matt Jordan patches: install_prereq_64-bit_compat.patch uploaded by Ben Klang (License 5876) ........ Merged revisions 430798 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/install_prereq3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 80345ed4e..ca02b75dc 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -71,7 +71,8 @@ check_installed_debs() {
tocheck="${tocheck} ^${pack}$"
done
aptitude -F '%c %p' search ${tocheck} 2>/dev/null \
- | awk '/^p/{print $2}'
+ | awk '/^p/{print $2}' \
+ | grep -v ':i386$'
}
# parsing the output of yum is close to impossible.