diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:16:32 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 16:16:32 -0500 |
commit | 02dc85a95b228b7242b0d11ea35619faad96db03 (patch) | |
tree | e161ba877a0720bbdf7818bdec06eb239d8ad271 /ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff | |
parent | 6f2c7dc70e77d2f768d687838b6cc9f7632f609e (diff) | |
download | tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.tar.gz tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.zip |
Split precise from maverick
Diffstat (limited to 'ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff')
-rw-r--r-- | ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff b/ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff new file mode 100644 index 000000000..b4e71d35b --- /dev/null +++ b/ubuntu/precise/dependencies/qt3/debian/patches/72_dont_trust_uname-m_use_dpkg-arch_instead.diff @@ -0,0 +1,50 @@ +author: Sune Vuorela <debian@pusling.com> + +--- a/configure ++++ b/configure +@@ -34,7 +34,44 @@ SUPPORTED= + #------------------------------------------------------------------------------- + + # need that throughout the script +-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown ++DPKG_ARCH=`(dpkg-architecture -qDEB_HOST_ARCH) 2>/dev/null` || UNAME_MACHINE=unknown ++case $DPKG_ARCH in ++ amd64) ++ UNAME_MACHINE="x86_64" ++ ;; ++ arm) ++ UNAME_MACHINE="armv4l" ++ ;; ++ armel) ++ UNAME_MACHINE="armv5tel" ++ ;; ++ hppa) ++ UNAME_MACHINE="parisc64" ++ ;; ++ hurd-i386) ++ UNAME_MACHINE="i686-AT386" ++ ;; ++ i386) ++ UNAME_MACHINE="i686" ++ ;; ++ kfreebsd-amd64) ++ UNAME_MACHINE="x86_64" ++ ;; ++ kfreebsd-i386) ++ UNAME_MACHINE="i586" ++ ;; ++ mipsel) ++ UNAME_MACHINE="mips" ++ ;; ++ powerpc) ++ UNAME_MACHINE="ppc" ++ ;; ++ *) ++ UNAME_MACHINE="$DPKG_ARCH" ++ ;; ++ ++ ++esac + UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown + UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown + UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |