[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-devel
Subject:    [patch] 1.2.5: Don't use `uname' when cross-compiling
From:       "Maciej W. Rozycki" <macro () linux-mips ! org>
Date:       2004-08-02 12:05:41
Message-ID: Pine.LNX.4.58L.0408021351520.14529 () blysk ! ds ! pg ! gda ! pl
[Download RAW message or body]

Hello,

 Using `uname' to retrieve information about the host system makes no
sense when cross-compiling as the command provides information about the
build system which is different in this case.  Here is a fix.

2004-08-02  Maciej W. Rozycki  <macro@linux-mips.org>

	* configure.ac: Don't call `uname' when cross-compiling.
	* configure: Regenerate.

 Please apply,

  Maciej

gnupg-1.2.4-cross.patch
diff -up --recursive --new-file gnupg-1.2.4.macro/configure.ac gnupg-1.2.4/configure.ac
--- gnupg-1.2.4.macro/configure.ac	2003-12-23 19:20:58.000000000 +0000
+++ gnupg-1.2.4/configure.ac	2004-06-10 21:10:02.000000000 +0000
@@ -468,7 +468,10 @@ case "${target}" in
         PRINTABLE_OS_NAME="GNU/Linux"
         ;;
     *)
-        PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
+	PRINTABLE_OS_NAME="Unknown"
+	if test "$cross_compiling" = no; then
+		PRINTABLE_OS_NAME=`uname -s 2>/dev/null || echo "Unknown"`
+	fi
         test "$PRINTABLE_OS_NAME" = "Linux" && PRINTABLE_OS_NAME="GNU/Linux"
         ;;
 esac

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic