[Home]

Summary:ASTERISK-17028: [patch] install_prereq script needs subversion package on Debian
Reporter:Fossard Florent (ffossard)Labels:
Date Opened:2010-11-25 17:53:43.000-0600Date Closed:2011-06-07 14:04:51
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Addons/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20101126_installprereq-debian-svn.diff
Description:The install_prereq script uses svn to install "unpackaged requirements". Subversion is not present on Debian 5 clean install.

This patch adds "subversion" Debian package on a new line:

# cat 20101126_installprereq-svn.diff
--- ./asterisk-1.8.0/contrib/scripts/install_prereq     2010-07-20 20:11:08.000000000 +0200
+++ ./asterisk-1.8.0/contrib/scripts/install_prereq_new 2010-11-26 00:11:34.000000000 +0100
@@ -27,6 +27,8 @@
PACKAGES_DEBIAN="$PACKAGES_DEBIAN libpq-dev unixodbc-dev libsqlite0-dev libsqlite3-dev libmysqlclient15-dev libneon27-dev libgmime-2.0-2-dev libusb-dev liblua5.1-0-dev lua5.1"
PACKAGES_DEBIAN="$PACKAGES_DEBIAN libopenh323-dev libvpb-dev libgtk2.0-dev libmysqlclient-dev libbluetooth-dev libradiusclient-ng-dev freetds-dev"
PACKAGES_DEBIAN="$PACKAGES_DEBIAN libsnmp-dev libiksemel-dev libopenais-dev libnewt-dev libpopt-dev libical-dev libspandsp-dev libjack-dev"
+# Asterisk: for unpackaged requirements:
+PACKAGES_DEBIAN="$PACKAGES_DEBIAN subversion"

PACKAGES_RH="gcc gcc-c++ ncurses-devel openssl-devel mysql-devel"



****** STEPS TO REPRODUCE ******

#/usr/src/asterisk-1.8.0/contrib/scripts/install_prereq install-unpackaged
*** Installing NBS (Network Broadcast Sound) ***
./asterisk-1.8.0/contrib/scripts/install_prereq: line 95: svn: command not found
#


****** ADDITIONAL INFORMATION ******

#cat contrib/scripts/install_prereq
...
install_unpackaged() {
       echo "*** Installing NBS (Network Broadcast Sound) ***"
       svn co http://svn.digium.com/svn/nbs/trunk nbs-trunk
       cd nbs-trunk
       make && make install
       cd ..

       echo "*** Installing libresample ***"
       svn co http://svn.digium.com/svn/thirdparty/libresample/trunk libresample-trunk
       cd libresample-trunk
       ./configure && make && make install
       cd ..
}
...
Comments:By: Fossard Florent (ffossard) 2010-11-25 18:18:53.000-0600

Please note that adding the package "subversion" in the script will also install "python-subversion" and "subversion-tools"

"subversion" is a simple name and function check_installed_debs() search all packages containing the specified argument:
check_installed_debs() {
       aptitude -F '%c %p' search "$@" 2>/dev/null \
       | awk '/^p/{print $2}'
}

#aptitude -F '%c %p' search "subversion" 2>/dev/null | awk '/^p/{print $2}'
python-subversion
subversion
subversion-tools


We can do this, but, hum.. maybe not pretty:
# Asterisk: for unpackaged requirements:
PACKAGES_DEBIAN="$PACKAGES_DEBIAN ^subversion$"

By: Fossard Florent (ffossard) 2010-11-28 08:43:12.000-0600

=> Please, you can cancel this bug report.

"Subversion" is labeled "automatic", not visible as dependencie of package list, not visible with apt-rdepends subversion, and I had the problem twice, strange...

By: Paul Belanger (pabelanger) 2010-11-30 21:43:24.000-0600

Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support