File: 01-build-arch.patch

package info (click to toggle)
virtualbox 7.2.0-dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 625,108 kB
  • sloc: ansic: 2,413,049; cpp: 2,363,105; asm: 409,517; python: 231,920; xml: 89,593; sh: 26,537; javascript: 17,131; java: 9,807; makefile: 8,168; perl: 5,697; cs: 4,872; pascal: 2,254; objc: 1,131; lex: 931; sed: 921; php: 906; yacc: 707
file content (14 lines) | stat: -rw-r--r-- 416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Correctly check build architecture.
Author: Michael Meskes <meskes@debian.org>

--- a/configure
+++ b/configure
@@ -390,7 +390,7 @@ test_execute_path()
 check_environment()
 {
   test_header environment
-  BUILD_CPU=`uname -m`
+  BUILD_CPU=`dpkg-architecture -qDEB_HOST_GNU_CPU`
   [ "$OS" = "solaris" ] && BUILD_CPU=`isainfo | cut -f 1 -d ' '`
   case "$BUILD_CPU" in
     i[3456789]86|x86|i86pc|BePC)