[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: #298152: checkinstall: incorrectly sets Arch:x86_64 for .deb under amd64



Kurt Roeckx @ 2005-06-12 (Sunday), 23:05 (+0200)
> You should be using something like dpkg --print-architecture or
> dpkg-architecture instead.

Would this patch do the trick?
--
/Martin
diff -ur checkinstall-1.5.3/checkinstall checkinstall-patched-1.5.3/checkinstall
--- checkinstall-1.5.3/checkinstall	2005-11-06 14:03:59.302390154 +0100
+++ checkinstall-patched-1.5.3/checkinstall	2005-11-06 14:10:20.886160966 +0100
@@ -1146,8 +1146,8 @@
 
    # Fix the PowerPC architecture description if we're on Debian
    
-   if [ "$CK_DEBIAN" = "1" ] && [ "$ARCHITECTURE" = "ppc" ]; then
-      ARCHITECTURE="powerpc"
+   if [ "$CK_DEBIAN" = "1" ] then
+      ARCHITECTURE=`dpkg-architecture -qDEB_HOST_ARCH`
    fi
       
 

Reply to: