Just been trying to build the Linaro toolchain from source on RHEL 6.5. The ABE 
configure script fails to detect the packaging system on RHEL as it looks like 
RPM will only be detected if it's running on a Fedora system. This patch will 
instead detect RPM if the rpm binary is available (and it's not Debian/Ubuntu), 
like the test for Arch/pacman.

diff --git a/configure b/configure
index 42f787e..52ddd42 100755
--- a/configure
+++ b/configure
@@ -3639,7 +3639,6 @@ fi
 # Figure out which packaging system is in use. Since it's possible to
 # install both on a system.
-rpm="`uname -a | grep -ic '\.fc[0-9].\.'`"
 deb="`uname -a | grep -ic 'ubuntu'`"
 deb=$(($deb + `uname -a | grep -ic 'debian'`))
@@ -3672,7 +3671,9 @@ $as_echo "yes" >&6; }
 ### RPM Packages ###
-if test ${rpm} -eq 1; then
+rpm="`which rpm 2> /dev/null`"
+if test ${result} -eq 0; then
     packages="${packages} ncurses-devel python-devel"
     for i in ${packages}; do
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i is installed" >


linaro-toolchain mailing list

Reply via email to